-
Bug
-
Resolution: Unresolved
-
None
-
Minecraft 19w09a, 20w16a
-
None
-
Win10, lots of RAM, 64-bit Java
-
Community Consensus
-
(Unassigned)
What's happening:
Executing a teleport command for an entity that is riding something will return a 'success' even though the entity being teleported didn't go anywhere.
How to replicate bug:
In a creative flat world with no villages on it, spawn a villager and a boat, and push the villager into the boat. Next, create a dummy scoreboard objective called eVillagerTP, and give it an initial value of '0' for the dummy player 'pTest'. Now, run this command:
execute positioned ~ ~1 ~ store success score pTest eVillagerTP run tp @e[type=minecraft:villager] ~ ~ ~
Result I expected:
I was expecting the score eVillagerTP for the dummy player pTest to be zero, since the villager did not get teleported from the boat.
Result I got:
The villager did not teleport anywhere, but the score eVillagerTP for the dummy player pTest was '1', indicating that the teleport was successful even though it had actually failed. I also got a console message indicating that the villager had teleported to my coordinates even though the villager never left the boat.
I only tested this on Minecraft 19w09a, but this bug may be present in previous versions of Minecraft down to the version where entities were no longer allowed to be teleported off of a mount.