-
Bug
-
Resolution: Works As Intended
-
None
-
Minecraft 17w48a
-
None
-
Linux Mint 17.3, Oracle Java 1.8.0_151, Nvidia GeForce GT 730, video driver version 384.90
-
Unconfirmed
When the entity executing a command function is moved by a tp command within that function, subsequent commands within the same function will still be executed at the original position of the entity. For example, a function containing the following commands
tp @s ~ 250 ~
summon minecraft:armor_stand ~ ~ ~
when executed by the player will move the player to y=250 but will summon the armour stand at the player's original position.
I can work around this by prefixing the summon command with execute at @s run but this would mean potentially making this change to every command that might possibly follow a tp of the executing entity.
- is duplicated by
-
MC-123272 Functions that teleport entities will refer to their initial location when executing commands after the teleportation.
- Resolved
- relates to
-
MCPE-39785 Function position refers to executor instead of command origin when not using /execute
- Reopened