Player Specific Inventory Slots

Started by Linksvix99 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Player Specific Inventory Slots

I'm attempting to make an enchantment that allows players to open a GUI with three inventory slots when they wear armor that has the enchantment. I'd love to have the armor have their own unique inventory, but that would require MUCH more work, so for now I'll settle for having the items be player-specific. I managed to get the GUI to work, but when I close the GUI the items get deleted. How would I make the items stay in the GUI when closing? I don't want to have a block that "stores" the items, either.

You need block, item, or…
Sat, 12/12/2020 - 18:24

You need block, item, or custom entity to store items.

Storing them in player is not possible at the moment, except if you use open and close gui procedures to transfer items to player variables, which support itemstack. This is doable.

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Would there happen to be a…
Tue, 01/19/2021 - 17:06

Would there happen to be a specific tutorial for that? You know, making a sort of "alternative inventory" using item variables?

Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I need help with how to do…
Mon, 08/08/2022 - 18:11

I need help with how to do this as well