MinusKube / SmartInvs

Advanced Inventory API for your Minecraft Bukkit plugins.
https://minuskube.gitbook.io/smartinvs/
Apache License 2.0
262 stars 65 forks source link

How to set armor items in a InventoryType.PLAYER inventory ? #140

Closed Croos3r closed 3 years ago

Croos3r commented 4 years ago

I'm trying to make an invsee command where I display a player inventory (obvious ^^) But I don't know how to set the armor items.

MinusKube commented 4 years ago

The inventory type PLAYER is not supported by default in SmartInvs, you can try making a custom InventoryOpener for this (not sure if really possible with Minecraft limitations), then if you set the inventory size as "1 row and 41 columns", you should be able to set the slots as shown below:

image