mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Added all block hardness
This commit is contained in:
@ -32,30 +32,13 @@ class Redstone extends Transparent{
|
||||
}
|
||||
|
||||
public function getHardness(){
|
||||
return 30;
|
||||
return 5;
|
||||
}
|
||||
|
||||
public function getName(){
|
||||
return "Redstone Block";
|
||||
}
|
||||
|
||||
public function getBreakTime(Item $item){
|
||||
switch($item->isPickaxe()){
|
||||
case 5:
|
||||
return 0.95;
|
||||
case 4:
|
||||
return 1.25;
|
||||
case 3:
|
||||
return 1.9;
|
||||
case 2:
|
||||
return 0.65;
|
||||
case 1:
|
||||
return 3.75;
|
||||
default:
|
||||
return 25;
|
||||
}
|
||||
}
|
||||
|
||||
public function getDrops(Item $item){
|
||||
if($item->isPickaxe() >= 1){
|
||||
return [
|
||||
|
Reference in New Issue
Block a user