I'm currently working on a project and I want to teleport an armor stand to a coordinate which is defined by a scoreboard objective(like if the objective value is 3, the armor stand teleports 3 blocks plus on the X-axis). If the objective name is Part1Length
and the player name is w
, how do I get that value into a /tp
(or /teleport
) command? Maybe, I can modify the armor stand's data with the /data
command to increase the Pos[0]
NBT value, but can I get the scoreboard values from a player's NBT data?
I work on MC Java Edition 1.15.2
/execute store
exists. TLDR of the answer:/execute store result entity @e[…] Pos[0] double 1 run scoreboard players get […]