Forumskeyboard_arrow_right Help keyboard_arrow_right Java Edition

Create Forum Thread
1

Execute Command - test is scoreboard >= something

1 emeralds1 reply36 views
created 07/20/2019 10:54 pm by Turicagamer history
last reply 07/21/2019 12:15 am
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
/execute if score Turicagamer HiddenXP >= 5 HiddenXP run scoreboard players remove @p HiddenXP 5


Thank you for your help!
Posted by avatar
Turicagamer
Level 1 : New Miner
0

comment Login or register to post a reply.

1 reply

2
07/21/2019 12:15 am
Level 8 : Apprentice Modder
HoboMaggot
/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

Planet Minecraft

Browse

Site

© 2010 - 2019
planetminecraft.com

Welcome