I want to transfer the data of a scoreboard to an entity
I have a value stored in a scoreboard objective, and I want to make that value the angle of rotation of an armor stand's arm. I used this command to store the value into the scoreboard:
/execute as @e[tag=test_1] store result score @s Test run data get entity @s Rotation.RightArm[0]
I tried things like:
/data modify storage score scoarboard merge from storage score scoarboard.objectives.Test
Solution 1:
The /data
command is only used to transfer two NBT data storage.
To convert between scores and data, use /execute store
:
execute store result entity @e[type=armor_stand,limit=1] Rotation.RightArm[0] int 1.0 run scoreboard players get ...