Itemstack as a Global Variable

Started by killercatfish on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2020
Points:

User statistics:

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

Joined Aug 2020
Points:

User statistics:

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

Joined Oct 2018
Points:

User statistics:

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