I'm just trying to replicate this post I found but in 1.13. I don't know where to start with the new commands. Can someone help me with this and give a little understanding on how to get this working?
i was in the same trouble than you, but i made an if/else statements with scoreboards, it works with entitys and items only (i can't made it work with another commands)
First you create a scoreboard of type dummy
/scoreboard objectives add <name of your choice> dummy
/scoreboard players add nothing <name of the scoreboard> 0
This is the if command
/execute at @e[type=<entity or item>] run scoreboard players add dummy <name of your choice> 1
This command is if the condition is fulfilled
/execute if score dummy <name of the scoreboard> > Nothing run < thing what you want to happen >
This is the else
/execute if score dummy <name of the scoreboard> matches 0 run < thing what you want to happen >
After the two results i put a reset for the scorebaord
/scoreboard players set dummy <name of the scoreboard> 0
I add a picture of the set up just in case
(I don't know if this is what you need, if this isn't what you asked for, I apologize)
I'm just trying to replicate this post I found but in 1.13. I don't know where to start with the new commands. Can someone help me with this and give a little understanding on how to get this working?
Thank you to all in advance!
i was in the same trouble than you, but i made an if/else statements with scoreboards, it works with entitys and items only (i can't made it work with another commands)
First you create a scoreboard of type dummy
/scoreboard objectives add <name of your choice> dummy
/scoreboard players add nothing <name of the scoreboard> 0
This is the if command
This command is if the condition is fulfilled
/execute if score dummy <name of the scoreboard> > Nothing run < thing what you want to happen >
This is the else
/execute if score dummy <name of the scoreboard> matches 0 run < thing what you want to happen >
After the two results i put a reset for the scorebaord
/scoreboard players set dummy <name of the scoreboard> 0
I add a picture of the set up just in case
(I don't know if this is what you need, if this isn't what you asked for, I apologize)