Is there a way to add an inventory to an item?

Started by ImNotFun on Tue, 04/07/2020 - 09:59

Topic category: Help with MCreator software

Last seen on 04:17, 19. May 2020
Joined Sep 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
Is there a way to add an inventory to an item?
Tue, 04/07/2020 - 09:59

I've looked through the forums, but I can't find anything about this. Is there a way to add a chest inventory to an item? I've tried it the normal way you would if you add an inventory to a block, but the items don't stay and they just return to my hotbar. I've also just used a basic "open gui" procedure when you right click

Last seen on 18:35, 14. May 2020
Joined Apr 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
I'm no expert, but this is…
Tue, 04/07/2020 - 22:28

I'm no expert, but this is what I'd do: Create a GUI for your item, an inventory I'm guessing. Go to procedures of your item, click on "When Right Clicked in Air" and create procedure. Go to "Player" tab, scroll down to "Open GUI of provided player: {YOUR GUI}

 

Hope this helps ^^

Last seen on 18:35, 14. May 2020
Joined Apr 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
Oh and also, do this for …
Tue, 04/07/2020 - 22:29

Oh and also, do this for "When Right Clicked on Block" too if you want.

Last seen on 05:32, 26. May 2020
Joined Jun 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
that won't work for items,…
Wed, 04/08/2020 - 04:46

that won't work for items, because they can't have an inventory yet so if you close the GUI all the items in it will disappear.

Last seen on 18:35, 14. May 2020
Joined Apr 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
Yup, right after creating…
Wed, 04/08/2020 - 17:36

Yup, right after creating these comments I checked the wiki and saw it was not possible.