asPosition(); $down = $pos->world->getBlock($pos->getSide(Facing::DOWN)); if($down->getId() === BlockLegacyIds::AIR or $down instanceof Liquid or $down instanceof Fire){ $pos->world->setBlock($pos, BlockFactory::get(BlockLegacyIds::AIR)); $nbt = EntityFactory::createBaseNBT($pos->add(0.5, 0, 0.5)); $nbt->setInt("TileID", $this->getId()); $nbt->setByte("Data", $this->getMeta()); /** @var FallingBlock $fall */ $fall = EntityFactory::create(FallingBlock::class, $pos->getWorld(), $nbt); $fall->spawnToAll(); } } }