Itemstack as a Global Variable

Started by killercatfish on Tue, 10/06/2020 - 20:59

Topic category: Help with modding (Java Edition)

Last seen on 22:32, 29. Oct 2020
Joined Oct 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Itemstack as a Global Variable
Tue, 10/06/2020 - 20:59

Hello!

I am attempting to make a crate that will be paired with another crate.  So we can mine and fill the crate and our crate at home will be filled with the items.

I dont seem to be able to use a global itemstack variable to do this?  Im just getting started and can share more, but any suggestions would be welcome.

Thanks,

-J

Last seen on 11:10, 23. Nov 2020
Joined Aug 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You could make 27 (or…
Sat, 11/14/2020 - 15:37

You could make 27 (or however many slots you have) global variables for each slot in your crate. Then you make it so that when you open the crate it loads all 27 items into the slots, and when you close the barrel it saves all of the items in the slots.