I tried this: PHP: $block = Block::get(Block::CHEST); $sender->getLevel()->setBlock(new Vector3($sender->getX(), $sender->getY()-3, $sender->getZ()), $block, true, true); $nbt = new CompoundTag("", [ new ListTag("Items", []), new StringTag("id", Tile::CHEST), new IntTag("x", $sender->getFloorX()), new IntTag("y", $sender->getFloorY() - 3), new IntTag("z", $sender->getFloorZ()), ]); $nbt->Items->setTagType(NBT::TAG_Compound); $tile = Tile::createTile("Chest", $sender->getLevel(), $nbt); $tile->setName("§aCustomChest"); but not work
PHP: $block = Block::get(Block::CHEST);$sender->getLevel()->setBlock($sender, $block, true, true);$tile = $sender->getLevel()->getTile($block);$tile->setName("§aCustomChest");