Using Commands to Disable Procedures?

Started by AOCAWOL on Fri, 07/26/2019 - 14:26

Topic category: Help with modding (Java Edition)

Last seen on 02:06, 19. Jun 2020
Joined Oct 2014
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
Using Commands to Disable Procedures?
Fri, 07/26/2019 - 14:26

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 09:17, 20. Feb 2020
Joined Aug 2019
User points:

User statistics:

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