You can use too the StringTag PHP: $tag = new CompoundTag("", []);$tag->display = new CompoundTag("display", ["Name" => new StringTag("Name", "name....")]);//Method with StringTag
PHP: $tile = Tile::createTile(blahhblahh);$inv = $tile->getInventory();$inv->setCustomName("CustomInvMessage");//If you have already create the Tile.//Check the World if is loaded.if($this->getServer()->isLevelLoaded("worldname")){ $this->getServer()->loadLevel("worldname");}$tile = $this->getServer()->getLevelByName("worldname")->getTile(new Vector3($pos));//$pos define as $x, $y, $z$inv = $tile->getInventory();$inv->setCustomName("CustomInvMessage");