Separate names with a comma.
Comments in 'Plugin Development' started by CookieSteve, Feb 26, 2016.
Is there a way to Increase a Players inventory slots? if so how?
I am interested to know if this might really work on PlayerInventory.
It should work and if not he can change size directly in InventoryType
This only means server-side. I'm asking about the client-side inventory display size.
it is possible. look at pocketmine there is playerInventory size only 40. and player see only 27 slots in inventory. So change it to 49 to fix it
BTW why don't you accept/close pull requests?
I don't believe it'll work. You'd have to set it client side. By using the size function you'll just be able to pick up more items when your shown inventory is "full".
so can you explain me why client see only 27 inventory slots if you set inventory size to 40 and 36 slots if you set size to 49?
Armour slots counts as inventory slots, there may be some other thing like the hotbar that is included as well.
Yes it should work because in firsts versions before playerInventory was added to pm or MiNET the player see any cases in inventory so yes i think we can change it.
It work ! i've set 100 slots for survival inventory
and how? setSize?
in inventoryType check the line where player inventory is defined and change $num by a big number.