make a command use a toggle like feature

Started by f0_olish1 on

Topic category: Help with MCreator software

Joined Mar 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
make a command use a toggle like feature

This is the code i attempted to do so far

info

the command is /building,

first time i type it its adventure second its survival,

only people with team ADMIN can type this command and the error message for someone not on team admin will be Only a ADMIN can use this!,

people on team ADMIN arent affected.

.

Joined Mar 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
some extra info is that when…
Sun, 05/03/2026 - 00:06

some extra info is that when i do it it just gives me adventure and doesnt toggle back to survival