Itemstack as a Global Variable

Started by killercatfish on

Topic category: Help with Minecraft modding (Java Edition)

Active 4 years ago
Joined Oct 2020
Points:
626

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5
Itemstack as a Global Variable

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

Active 3 years ago
Joined Aug 2020
Points:
713

User statistics:

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

Active 1 year ago
Joined Oct 2018
Points:
676

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3
does this global variable…
Sun, 07/25/2021 - 14:00

does this global variable work for 1.12? I tried it and it just kept giving me an error.