Block breaking part 1

This commit is contained in:
Shoghi Cervantes
2015-05-17 19:33:41 +02:00
parent b14d14d3d5
commit f3c46b12c5
18 changed files with 155 additions and 38 deletions

View File

@ -23,6 +23,7 @@ namespace pocketmine\block;
use pocketmine\event\block\BlockSpreadEvent;
use pocketmine\item\Item;
use pocketmine\item\Tool;
use pocketmine\level\generator\object\TallGrass as TallGrassObject;
use pocketmine\level\Level;
use pocketmine\math\Vector3;
@ -47,7 +48,11 @@ class Grass extends Solid{
}
public function getHardness(){
return 3;
return 0.6;
}
public function getToolType(){
return Tool::TYPE_SHOVEL;
}
public function getDrops(Item $item){