on and off switch

Started by jkjokeryt on

Topic category: Help with modding (Java Edition)

Last seen on 16:53, 28. Dec 2019
Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
on and off switch

hi just asking if anyone know if a command is already enabled is it possible  to use the same command to switch it off

Last seen on 02:36, 9. May 2024
Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yeah for custom command you…
Fri, 12/27/2019 - 02:06

Yeah for custom command you can

Create a logic global variable

Every time you run the command

If the variable is true,

make it false

else

make it true