mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Added all block hardness
This commit is contained in:
@ -34,7 +34,7 @@ class Slab extends Transparent{
|
||||
}
|
||||
|
||||
public function getHardness(){
|
||||
return 30;
|
||||
return 2;
|
||||
}
|
||||
|
||||
public function getName(){
|
||||
@ -123,24 +123,6 @@ class Slab extends Transparent{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function getBreakTime(Item $item){
|
||||
|
||||
switch($item->isPickaxe()){
|
||||
case 5:
|
||||
return 0.4;
|
||||
case 4:
|
||||
return 0.5;
|
||||
case 3:
|
||||
return 0.75;
|
||||
case 2:
|
||||
return 0.25;
|
||||
case 1:
|
||||
return 1.5;
|
||||
default:
|
||||
return 10;
|
||||
}
|
||||
}
|
||||
|
||||
public function getDrops(Item $item){
|
||||
if($item->isPickaxe() >= 1){
|
||||
return [
|
||||
|
Reference in New Issue
Block a user