Confused on which Global Variable i should use

Started by nilek20 on

Topic category: Help with modding (Java Edition)

Last seen on 18:05, 19. Jun 2024
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Confused on which Global Variable i should use

In my mod i am creating a block with a GUI. this blocks purpose i to take an input and convert it into a different output. im using a procedure that trigger on Block Tick that will...

1. check for a Logic Variable as False/check for correct item in input slot/check for no items in output slot

if the above is true then

2. set that variable to True

3. wait 20 seconds

4. remove 1 item from the blocks input slot and place 1 item in the output slot

5. set the Variable as False

I have no problems with the Procedures.

My question is what Global Variable Scope should i use for the block.

Last seen on 15:21, 16. Oct 2023
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I understand that you want…
Fri, 07/28/2023 - 12:55

I understand that you want to add a global variable to a block. 

MCreator global variables doesn't support blocks unfortunately. You can use NBT tags as they should be synced between client and server for blocks and items.