mojira.dev
MC-80649

Can't detect the Motion tag of non-mob-entities

http://justforuploadingd.blogspot.com/2015/05/blog-post_24.html (video)

Command:
1.

/scoreboard players set @e hi 0

after

2.

/scoreboard players set @e[score_hi=0] hi 1 {Motion:[0.0d,0.0d,0.0d]}

(1 and 2 in redstone block clock)

(I tried 0:0.0d,1:0.0d,2:0.0d and 0.0,0.0,0.0 and 0:0.0,1:0.0,2:0.0 too)

so if I move, my score should be 0, but always 1
Other non-mob-entities, too (like minecarts)
Only for mob-entities works correctly (like villagers)
But if I overlap(more than two entities in one block) with other entity, the score change into 0

Linked issues

Comments 5

Confirmed for

  • 1.8.6 For all entities (maybe not including a player) the second command only fails if all Motion values aren't 0

If you use /entitydata on a villager his Motion looks like this

Motion:[0:0.0d,1:-0.0784000015258789d,2:0.0d]

but his score is still 1

Duplicate of MC-73887

I think it's not duplicate of that
My report is about the Motion tag,
But that report is about the Rotation tag

Read the updates description please. It is both about the fact that the NBT comparison only tests if an item is in a list but ignores the position. As you are testing for [0d,0d,0d] it tests three times if 0d is in the list Motion but ignores its position

But how about "0:0.0d,1:0.0d,2:0.0d"?
I tried it too, but didn't work either

Joon-Ho Hwang

(Unassigned)

Community Consensus

Minecraft 1.8.1, Minecraft 1.8.3, Minecraft 1.8.4, Minecraft 1.8.5, Minecraft 1.8.6

Retrieved