getSide(Vector3::SIDE_DOWN); if($down->getId() === self::AIR or $down instanceof Liquid or $down instanceof Fire){ $this->level->setBlock($this, BlockFactory::get(Block::AIR), true); $nbt = Entity::createBaseNBT($this->add(0.5, 0, 0.5)); $nbt->setInt("TileID", $this->getId()); $nbt->setByte("Data", $this->getDamage()); $fall = Entity::createEntity("FallingSand", $this->getLevel(), $nbt); if($fall !== null){ $fall->spawnToAll(); } } } public function tickFalling() : ?Block{ return null; } }