How to make a custom command that does 2 things

Started by PumpkinPieCraft on Sun, 04/24/2022 - 23:25

Topic category: Help with modding (Java Edition)

Last seen on 18:53, 11. Jun 2022
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to make a custom command that does 2 things
Sun, 04/24/2022 - 23:26 (edited)

if you don't understand the title its

how to do 2 things with one custom command

for example you do the custom command and it summons a mob but if you do it again the mob dies

it can be anything I just used a mob for an example

 

 

 

Edited by PumpkinPieCraft on Sun, 04/24/2022 - 23:26
Last seen on 05:13, 29. Jun 2022
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Just match your command with…
Mon, 04/25/2022 - 16:41

Just match your command with a global variable

When edit command at a variable ==> 1 effect

If make command at a different variable ===> different effect

 

Every command of course must change variable number