hardness = 0; } public function place(Item $item, Block $block, Block $target, $face, $fx, $fy, $fz, PocketMine\Player $player = null){ $down = $this->getSide(0); if($down->getID() === 2 or $down->getID() === 3 or $down->getID() === 60){ $this->level->setBlock($block, $this, true, false, true); return true; } return false; } public function onUpdate($type){ if($type === Level::BLOCK_UPDATE_NORMAL){ if($this->getSide(0)->isTransparent === true){ //Replace with common break method //TODO //ServerAPI::request()->api->entity->drop($this, Item::get($this->id)); $this->level->setBlock($this, new Air(), false, false, true); return Level::BLOCK_UPDATE_NORMAL; } } return false; } }