Solved Top Inventory only

Discussion in 'Spigot Plugin Development' started by Mharty, Aug 9, 2018.

  1. Hi guys,
    I just wanted to ask you if it's possible to open only top inventory without player's inventory(bottom). I've looked through api docs, but I can't seem to find a way to do it. Any advice will be appreciated.
  2. Not possible with Bukkit. Can only be done with a client-side mod
    • Agree Agree x 2
  3. This can be done with resource packs and modification of packets :)

    However the bottom slots would still light up if you moused over them, so yeah a mod would be more practical
  4. resource packs sure you could make something very dodgy work, no idea what packets you're planning on modifying though.
    • Agree Agree x 2
  5. Basically remove the lower slots from the background image, and make them empty while the inventory is open.

    PS: Not that I recommend that. It'll likely be quite tedious and not work, might leave issues when you try to push a new resource pack on the player every time he opens or closes the inventory, ....
    Also the inventory is not centered but there where it usually is.
  6. im aware but that has nothing to do with packet modification / manipulation
  7. Catching/sending the outbound inventory packet and setting the bottom inventory to be empty is far more reliable than doing it server side
    • Agree Agree x 1