50 $x = mt_rand($this->position->x - 1, $this->position->x + 1);
51 $y = mt_rand($this->position->y - 2, $this->position->y + 2);
52 $z = mt_rand($this->position->z - 1, $this->position->z + 1);
53 $world = $this->position->getWorld();
54 $block = $world->getBlockAt($x, $y, $z);
55 if($block instanceof
Dirt && $block->getDirtType() === DirtType::NORMAL){
56 if($block->getSide(Facing::UP) instanceof
Transparent){
57 BlockEventHelper::spread($block, VanillaBlocks::MYCELIUM(), $this);