meta = $meta; } public function getName() : string{ return "Red Mushroom"; } public function ticksRandomly() : bool{ return true; } public function onNearbyBlockChange() : void{ if($this->getSide(Vector3::SIDE_DOWN)->isTransparent()){ $this->getLevel()->useBreakOn($this); } } public function place(Item $item, Block $blockReplace, Block $blockClicked, int $face, Vector3 $clickVector, Player $player = null) : bool{ $down = $this->getSide(Vector3::SIDE_DOWN); if(!$down->isTransparent()){ $this->getLevel()->setBlock($blockReplace, $this, true, true); return true; } return false; } }