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

The command `data modifies entity @e[tag=ex1,limit=1] Pos[] set from entity @p Pos[]` did not run as expected.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.19.3
    • None
    • Unconfirmed
    • (Unassigned)

      The command 

      /data modify entity @e[tag=ex1,limit=1] Pos[] set from entity @p Pos[]

       should be executed to get the x, y, z axis coordinates of the player who is currently closest to the command block and assign it to the entity with tag ex1.

      But when I execute this command, the Pos of the entity with tag ex1 does not become the x, y, z axis coordinates of @p.

      When I check the coordinates of ex1, I find that the x, y, z axis coordinates of ex1 are all assigned to the x axis coordinates of @p.

      That is: @p(4, 57, 56) -> ex1(4, 4, 4). This should not be the result that this command should have.

      This command should carry all the elements of the Pos[] array correctly, instead of assigning Pos[0] to all the elements of the new Pos[] as it does now.

            Unassigned Unassigned
            CupricAzide Azide
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: