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 19:08, 14. Dec 2020
Joined Oct 2020
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 21:29, 1. Jul 2021
Joined Aug 2020
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.

Last seen on 17:33, 3. Aug 2021
Joined Oct 2018
Points:

User statistics:

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