Using Commands to Disable Procedures?

Started by AOCAWOL on

Topic category: Help with modding (Java Edition)

Last seen on 18:03, 5. Dec 2021
Joined Oct 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Using Commands to Disable Procedures?

Hi so I'm trying to make a command /DisableStructureCheck 

To when the player types that in, it will disable a procedure I made on a block. I've tried to mess with it but I can't get it to work with my knowledge so I'm wondering if anyone else has a clue on how to do this?

 

Thanks in advance!!

Last seen on 19:55, 7. Jan 2021
Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make a global logic variable…
Sat, 09/21/2019 - 10:51

Make a global logic variable, make it so the command sets it to true, or if its true then to false. In the procedure make a if statement at the start that tests if the variable is false. If its false, then it will continue.