Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-123310

inconsistent behavior when teleporting a player's root vehicle

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 17w50a
    • None
    • Unconfirmed

      Set down a boat in a fresh redstone-ready world. From the console

      /execute as @e[type=boat] at @s run tp @s ^ ^ ^1
      

      The boat moves as expected. Now get into the boat, and run the same command again. Again, the boat moves.

      Now try sticking the command in a command block. If you run the command block while outside the boat, the boat moves. If you run the command block while sitting in the boat, it does not move.

      Why the discrepancy? I guess that's the bug. It could be that trying to alter a 'rootvehicle' of a player is supposed to be 'illegal modifying playerdata' or something. Or maybe the command block runs in the world loop after "vehicle moved so rider must move" physics has run, in which case the boat gets effectively 'rubber banded' back to the root player at the end of the tick, since the player's coords have not moved, or something.

      But it's weird, and might be a bug.

            Unassigned Unassigned
            brianmcn Brian McNamara
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: