Im trying to make a mod that can show the content of a custom item from a mod. The size of the inventory is 113 itemstacks. Ive tried with extending playerinventory, and, while it works, its all shifted upwards, so most of the inventory is missing, as it also shows the players inventory underneath, along with the custom inventory. I also tryed to make my own Inventory class, extending IInventory, but It doesnt show anything when I use this class.
There is no openContainer method in the bukkit Player class, I'm assuming you're referring to the nms EntityHuman's openContainer. You should be using player.openInventory
When using that, it opens the players inventory and the custom inventory at the same time Code: Inventory inv = Bukkit.getServer().createInventory(p, 108, "alcbag_" + p.getDisplayName()); p.openInventory(inv); Ok, im using inventoryview now, but the player inventory and my custom on are to big to fit together on screen, and causes the gui to offset, im not sure how to fix this EDIT by Moderator: merged posts, please use the edit button instead of double posting.