TransWikia.com

I want to transfer the data of a scoreboard to an entity

Arqade Asked by Minecraft Man on May 30, 2021

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

One Answer

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 ...

Answered by ExpertCoder14 on May 30, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP