getSide(Facing::DOWN)->getId(); if($down === BlockLegacyIds::GRASS or $down === BlockLegacyIds::DIRT){ return parent::place($tx, $item, $blockReplace, $blockClicked, $face, $clickVector, $player); } return false; } public function onNearbyBlockChange() : void{ if($this->getSide(Facing::DOWN)->isTransparent()){ //Replace with common break method $this->pos->getWorld()->useBreakOn($this->pos); } } public function getDropsForIncompatibleTool(Item $item) : array{ if(mt_rand(0, 15) === 0){ return [ VanillaItems::WHEAT_SEEDS() ]; } return []; } public function getFlameEncouragement() : int{ return 60; } public function getFlammability() : int{ return 100; } }