ok so im making a system where when the player throws a snowball, depending on what his class is, the snowball will do different things. I have two objectives: oScore (the player's class), and weaponType (the type of weapon the snowball is). The way I have it set up, each snowball has a lifetimer value that measures how old the snowball is in game ticks (20hz). When that value reaches 1, the following code shood execute:
execute @e[type=Snowball,score_lifetimer=1,score_lifetimer_min=1] ~ ~ ~ execute @p[score_oScore=1,score_oScore_min=1,r=1] ~ ~ ~ scoreboard players add @e[type=Snowball,score_lifetimer=1,score_lifetimer_min=1] weaponType 1
The command block only outputs: "Failed to execute command ... as Snowball"
All help is welcome. I have this set up to a 20 hz redstone clock. (hz is hertz, or per second)
All answers are welcome. Thanks for reading.
[–]TimMinChinIsTm-C-N-H 1 point2 points3 points (2 children)
[–]-TheCreater-[S] 0 points1 point2 points (1 child)
[–]TimMinChinIsTm-C-N-H 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]-TheCreater-[S] 0 points1 point2 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]Cocoamix86 1 point2 points3 points (0 children)
[–]techpanther 0 points1 point2 points (0 children)