I want to give an arrow a 'Still' score when it's not moving, but whenever I shoot an arrow and it lands it says that the arrow does not have the specified data tag or something like that. When I summon an arrow with motion it gives the score to the arrow even when it's still moving it gives it the objective. Here's the command i'm using: /scoreboard players set @e[type=Arrow] 1 {Motion:[0.0,0.0,0.0]}. Any help would be appreciated.
I want to give an arrow a 'Still' score when it's not moving, but whenever I shoot an arrow and it lands it says that the arrow does not have the specified data tag or something like that. When I summon an arrow with motion it gives the score to the arrow even when it's still moving it gives it the objective. Here's the command i'm using: /scoreboard players set @e[type=Arrow] 1 {Motion:[0.0,0.0,0.0]}. Any help would be appreciated.
With the update to list-type tags, it will search the entire list for the data you've presented, regardless of order and regardless if you've duplicated something to look for (in this case, 0.0). If the arrow does not have motion in the X, Y, or Z direction, the command will provide it with the score. Even in those cases I still see oddities, as though the decimal place is being ignored (thus will still match, even if the arrow is moving at a speed lower than 1.0).
Triral7 has the best solution using the "inGround" tag. However, using /testfor is useless in this case, as /scoreboard can set a score based on NBT data itself. As well, after the /testfor is completed, it does not carry over what entities it found, meaning you won't be able to target the arrow afterwards without using the NBT data anyway:
/scoreboard players set @e[type=Arrow] Still 1 {inGround:1b}
CLICK THEM OR THEY DIE
With the update to list-type tags, it will search the entire list for the data you've presented, regardless of order and regardless if you've duplicated something to look for (in this case, 0.0). If the arrow does not have motion in the X, Y, or Z direction, the command will provide it with the score. Even in those cases I still see oddities, as though the decimal place is being ignored (thus will still match, even if the arrow is moving at a speed lower than 1.0).
Triral7 has the best solution using the "inGround" tag. However, using /testfor is useless in this case, as /scoreboard can set a score based on NBT data itself. As well, after the /testfor is completed, it does not carry over what entities it found, meaning you won't be able to target the arrow afterwards without using the NBT data anyway:
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
Haha right. But better with /scoreboard than /testfor