A way to open an inventory (like a chest)

Started by GalaxyNuke on

Topic category: Advanced modding

Active 7 years ago
Joined Mar 2018
Points:
711

User statistics:

  • Modifications: 2
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
A way to open an inventory (like a chest)

I was planning on making a Minecraft backpack and I was wondering if there's a way to set the event result for right-clicking to open an inventory window like it does when clicking a chest.

Thanks

Active 4 years ago
Joined Sep 2016
Points:
830

User statistics:

  • Modifications: 3
  • Forum topics: 9
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 108
i think you make a custom…
Sat, 03/17/2018 - 09:57

i think you make a custom gui with input slots only and then create an item with the event wen right click open custom gui

 

Active 7 years ago
Joined Mar 2018
Points:
711

User statistics:

  • Modifications: 2
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
Yeah I worked on that, I…
Sat, 03/17/2018 - 15:51

Yeah I worked on that, I managed to get it to work but when I close the backpack and open it the items in it disappear.

Active 5 years ago
Joined Jan 2017
Points:
817

User statistics:

  • Modifications: 4
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 80
The problem is that Mcreator…
Thu, 03/22/2018 - 21:49

The problem is that Mcreator has no option to create files that store data or at least I have not found it. Would solve my present problem with a teleport event I have in mind. Probably need to creat a custom code that opens a file and stores the Items. Last time I did something like that was in C++ storing customer information over a decade ago.

The Variables get erased when the game ends