mojira.dev
MC-121598

Armor stands move wrongly when summon with motion nbt and teleport it

1. Put

/execute as @e[type=armor_stand,limit=1,sort=nearest] at @s if block ~ ~-0.1 ~ minecraft:redstone_block run teleport @s ~0.2 ~ ~

in repeating-commandblock and active it
2. Summon an armor stand with Motion tag. Ex:"/summon minecraft:armor_stand ~1 ~ ~ {Motion:[0.0,0.5,0.0]}"

It move wrongly when it is teleporting, its Y position seems to be under 0.5. But it become normal when it don't teleport.

https://imgur.com/JEcHzjO.gif

Attachments

Comments

migrated
[media][media][media]
migrated

Is this still an issue in 18w01a?

migrated

Confirmed in 18w05a. Update the command in the description to:

/execute as @e[type=armor_stand,limit=1,sort=nearest] at @s if block ~ ~-0.1 ~ minecraft:redstone_block run teleport @s ~0.2 ~ ~

The same behavior occurs. The armor stand sinks into the ground until it stops teleporting. The teleport command kills/overwrites all motion from the armor stand when it is constantly executed, which will cause parts of its position to not update, in this case the y position. The sinking into the ground is an issue with the motion itself and the teleport command simply allows the behavior to be observed. On the other hand, the teleport command does not allow this error to be corrected as long as it executes, so technically this ticket is about two different issues.

This issue relates to MC-122118. Teleport command kills momentum.

Attached a few screenshots that display the issue. In the Walk_on_air screenshot, the armor stand does not have gravity turned off. It was summoned above the executing height, and upon falling to that height, the teleport command activated and cut off it's motion. The commands I used were:

/execute as @e[type=armor_stand,limit=1,sort=nearest] at @s if block ~ ~-3 ~ redstone_block run tp @s ~0.2 ~ ~
/summon armor_stand ~1 ~3.5 ~ {CustomName:"[{\"text\":\"Luke Skywalker\",\"color\":\"aqua\"}]",CustomNameVisible:1}

The first command is repeating and always active, and I should note that using "at @s" should not affect the motion when the entity is teleported. It would seem that the repeating command block does not give enough time for the armor stand's motion to update in between teleports, or it simply overwrites its motion each time. Also of note, this affects other entities as well, not just armor stands, both with the sinking behavior and the walking on air behavior.

ampolive

Cannot reproduce in 1.17.1.

migrated

(Unassigned)

Community Consensus

(Unassigned)

Minecraft 17w43b, Minecraft 18w05a

Retrieved