Hi! I need some help at opening a chest GUI. The chest should contain the items that I want it to have. What's the packet that I need to send, and, how do I send it? I had an almost working solution a few days ago, but then I accidentally deleted that part of my code. Thanks.
http://jenkins.pocketmine.net/job/P...etmine_1_1inventory_1_1_custom_inventory.html Maybe? (Or maybe Im wrong, Im not a dev)
Hmm if i try to use the ->open($player) methode i will get this error "Fatal error: Call to undefined method pocketmine\tile\Chest:pen() in \***\ Server\plugins\*****\src\*****\****.php on line 129 22:48:42 [EMERGENCY] An unrecoverable error has occurred and the server has cras hed. Creating a crash dump" My Code PHP: $level = $this->getServer()->getLevelByName("world")->getTile(new Vector3($x, $y, $z));$chest->open($player);
here ismy code PHP: $chest = $level->getTile(new Vector3(-1267, 98, -980)); $chest->getInventory()->open($player);