How to make a custom command that does 2 things

Started by PumpkinPieCraft on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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
Joined Mar 2021
Points:

User statistics:

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