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

Started by ImNotFun on

Topic category: Help with MCreator software

Last seen on 07:27, 21. Jun 2022
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is there a way to add an inventory to an item?

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 04:38, 10. Sep 2022
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • 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 04:38, 10. Sep 2022
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • 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 03:10, 19. Feb 2022
Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • 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 04:38, 10. Sep 2022
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • 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.

Last seen on 14:47, 31. Dec 2022
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If you just bound a gui with…
Wed, 05/19/2021 - 12:41

If you just bound a gui with slots to the item it should work correctly. commenting if this still is a problem