Ok, so i'm to execute a command as an entity. But I want it to only target the entity when it has a motion of 0. if I try adding the data tag to the end of the execute command it just adds it to the end of the command i'm executing. please help as it would be much helpful.
You can make a dummy scoreboard objective: "/scoreboard objectives add objective dummy" (Doesn't have to be "objective")
Then you need to set it in a clock: "/scoreboard players set @e objective 0" and then right after that in the clock: "/scoreboard players set @e objective 1 {Motion:[0.0,0.0,0.0]}" Which will set the objective to 1 to all of the entities with motion of 0...
Then you can use: "/execute @e[score_objective_min=1]......."
Now why didn't I think of that? anyway thanks for the help. I'm making an arrow of teleportation system that'll teleport the player to the arrow when it has a motion of 0. it involves a lot of scoreboards and stuff. more scoreboards I guess
If you're making a teleport system, you don't need any scoreboards at all...
here I did this to make it easier
/testfor @e[type=Arrow,r=200] {inGround:1b} -> Comparator -> /tp @p @e[type=Arrow], /tp @e[type=Arrow] ~ -200 ~
CLICK THEM OR THEY DIE
Then you need to set it in a clock: "/scoreboard players set @e objective 0" and then right after that in the clock: "/scoreboard players set @e objective 1 {Motion:[0.0,0.0,0.0]}" Which will set the objective to 1 to all of the entities with motion of 0...
Then you can use: "/execute @e[score_objective_min=1]......."
I hope I helped... Good luck!
CLICK THEM OR THEY DIE
CLICK THEM OR THEY DIE
here I did this to make it easier
/testfor @e[type=Arrow,r=200] {inGround:1b} -> Comparator -> /tp @p @e[type=Arrow], /tp @e[type=Arrow] ~ -200 ~