Added all block hardness

This commit is contained in:
Shoghi Cervantes
2015-05-31 17:25:02 +02:00
parent f3c46b12c5
commit 26c9eed82e
86 changed files with 131 additions and 676 deletions

View File

@ -32,7 +32,7 @@ class Sandstone extends Solid{
}
public function getHardness(){
return 4;
return 0.8;
}
public function getName(){
@ -45,24 +45,6 @@ class Sandstone extends Solid{
return $names[$this->meta & 0x03];
}
public function getBreakTime(Item $item){
switch($item->isPickaxe()){
case 5:
return 0.15;
case 4:
return 0.2;
case 3:
return 0.3;
case 2:
return 0.1;
case 1:
return 0.6;
default:
return 4;
}
}
public function getDrops(Item $item){
if($item->isPickaxe() >= 1){
return [