getPos(); $down = $pos->getWorldNonNull()->getBlock($pos->getSide(Facing::DOWN)); if($down->getId() === BlockLegacyIds::AIR or $down instanceof Liquid or $down instanceof Fire){ $pos->getWorldNonNull()->setBlock($pos, VanillaBlocks::AIR()); $nbt = EntityFactory::createBaseNBT($pos->add(0.5, 0, 0.5)); $nbt->setInt("TileID", $this->getId()); $nbt->setByte("Data", $this->getMeta()); $fall = new FallingBlock($pos->getWorldNonNull(), $nbt); $fall->spawnToAll(); } } }