mojira.dev
MC-270137

New wander_target NBT data can't be modified/seen for wandering traders

When using the /data command to get "wander_target"

/data get entity @e[type=minecraft:wandering_trader,limit=1] wander_target

it responds with "Found no elements matching wander_target"

Using this command before 24w06a when it was "WanderTarget" it would give three XYZ coordinates

If the wandering trader has been given coordinates before the 24w06a then the world is moved to a newer snapshot you can still get the "wander_target" coordinates in the new 3 integer [I; x, y, z] format as long as the wandering trader has not moved

Trying to use any commands to modify the "wander_target" coordinates after 24w06a results in a fail/doesn't give a result

Comments 1

Used commands:

/data merge entity @e[type=minecraft:wandering_trader,limit=1,sort=nearest] {wander_target:[I;0,0,0]}
/data get entity @e[type=minecraft:wandering_trader,limit=1,sort=nearest] wander_target

Which successfully modified and gave the new coordinates. 🙂

OctupleMage17

(Unassigned)

Confirmed

Platform

Normal

Commands

24w13a, 24w14a, 1.20.5 Release Candidate 3

Retrieved