1
Execute Command - test is scoreboard >= something
Hi, I have a scoreboard called HiddenXP and I want to make a command block do something if that score is bigger than 0. This is what I tried:
/execute if score @p HiddenXP >= @p 5 run scoreboard players remove @p HiddenXP 5
or
/execute if score Turicagamer HiddenXP >= 5 HiddenXP run scoreboard players remove @p HiddenXP 5
It's not working for some reason I think it broke somewhere here:
/execute if score @p HiddenXP >= @p 5 run scoreboard players remove @p HiddenXP 5
or
Thank you for your help!
/execute if score @p HiddenXP >= @p 5 run scoreboard players remove @p HiddenXP 5
or
/execute if score Turicagamer HiddenXP >= 5 HiddenXP run scoreboard players remove @p HiddenXP 5
It's not working for some reason I think it broke somewhere here:
/execute if score @p HiddenXP >= @p 5 run scoreboard players remove @p HiddenXP 5
or
/execute if score Turicagamer HiddenXP >= 5 HiddenXP run scoreboard players remove @p HiddenXP 5
Thank you for your help!
1
/execute if score @a HiddenXp >= 5 @s run scoreboard players set @s HiddenXp 0
or
/execute if score @a HiddenXp matches 5.. @s run scoreboard players set @s HiddenXp 0
or
/execute if score @a HiddenXp matches 5.. @s run scoreboard players set @s HiddenXp 0
