Relates to:
The bug
Teleporting an entity that was just created (in the same tick the teleport command runs) causes the entity to be still displayed for the client at the position where it has been summoned.
However trying to punch the entity or interact with it in any other way will not work as the entity visible for the client is not really at that position.
This can be reproduced by using the following compacted command:
Example Command 1 (Compacted).txt
/summon MinecartCommandBlock ~ ~1 ~ {Command:/setblock ~ ~-4 ~ redstone_block,Riding:{id:MinecartCommandBlock,Command:"",Riding:{id:MinecartCommandBlock,Command:"/execute @e[type=ArmorStand,name=C] ~ ~ ~ /summon ArmorStand ~ ~ ~ {CustomName:Here is C,CustomNameVisible:1,NoGravity:1}",Riding:{id:MinecartCommandBlock,Command:"/tp @e[type=ArmorStand,name=C] ~ ~5 ~
",Riding:{id:MinecartCommandBlock,Command:"/tp @e[type=ArmorStand,name=C] @e[type=ArmorStand,name=B]
",Riding:{id:MinecartCommandBlock,Command:"/execute @e[type=ArmorStand,name=A] ~ ~ ~ /summon ArmorStand ~ ~ ~ {CustomName:C,CustomNameVisible:1,NoGravity:1,Equipment:[{id:stone,Count:1},{},{},{},{}]}
",Riding:{id:MinecartCommandBlock,Command:"/summon ArmorStand ~-5 ~ ~ {CustomName:B,CustomNameVisible:1,NoGravity:1}
",Riding:{id:MinecartCommandBlock,Command:"/summon ArmorStand ~5 ~ ~ {CustomName:A,CustomNameVisible:1,NoGravity:1}
",Riding:{id:MinecartCommandBlock,Riding:{id:FallingSand,Time:1,Block:activator_rail,Riding:{id:FallingSand,Time:1,Block:redstone_block,Riding:{id:FallingSand,Time:1,Block:stone,Riding:{id:FallingSand,Time:1,Block:command_block,TileEntityData:{Command:/fill ~ ~-2 ~ ~ ~3 ~ air},Riding:{id:FallingSand,Time:1,Block:stone,Riding:{id:FallingSand,Time:1,Block:command_block,TileEntityData:{Command:/kill @e[type=MinecartCommandBlock,dy=6]}}}}}}}}}}}}}}}}
Linked issues
is duplicated by 6
1 more links
I am unsure if this really duplicates MC-67695