This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
im trying to give the player a diamond if there kill_zombe2 score is 1 or more ,
when i run it this happens
[16:15:31] Usage: /execute <entity> <x> <y> <z> <command> OR /execute <entity> <x> <y> <z> detect <x> <y> <z> <block> <data> <command>
this is my cammond :
/execute @p[score_kill_zombe2_min=1] /give diamond
ihope u can help
btw you spelled zombie wrong
it works but even when my score is under 1 it stills gives me the diamond
/execute @a[score_test_min=1_max=] ~ ~ ~ /give @p diamond
still dosent work
/execute @p[score_zombe2_min=1] ~ ~ ~ /give @p diamond
if you actually are having trouble with this command... then either buy a new computer, because it's broken, or buy a new brain, because it's broken
/execute @a[score_zombe2_min=1] ~ ~ ~ scoreboard players remove @a[score_zombe2_min=1] zombe2
Also, @a[score_zombe2_max=1] is invalid. It's just @a[score_zombe2=1]
i'll do some testing of my own right now.
So first off, make sure your objective was this: /scoreboard objectives add zombe2 stat.killEntity.Zombie
Next is a picture of the other command blocks you need.
The command block by the red wool contains this command: /execute @a[score_zombe2_min=1] ~ ~ ~ give @p diamond
The command block by the blue wool contains this command: /scoreboard players remove @a[score_zombe2_min=1] zombe2 1
It should work flawlessly with this set up. It does for me
Also, if you have any future troubles with scoreboards you can do this:
/scoreboard objectives setdisplay sidebar ObjectiveName
It will display your score once it's increased to 1 or higher for the first time. It's useful for debugging.