#How to change nbt?
1 messages · Page 1 of 1 (latest)
<@&1201956957406109788>
💬 While you wait, take this time to provide more context and details.
🙇 If nobody has answered you by <t:1723395154:t>, feel free to use the Summon Helpers button to ping our helper team.
✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve
/data command lets you manipulate nbt data however you want
not with scoreboards tho
i am not sure what do you mean exactly when saying "from scoreboard" can you elaborate on that
just read the question
i dont really understand still, lol can you explain
maybeee they mean a dictionary
how do you set nbt from scoreboard, what that means? just execute store?
yeah, could be
you can use ```ansi
[35mexecute [34mstore result entity [36m@n[33m[[37mtype[34m=[32mminecart[33m] [0mpath [34mrun [35mscoreboard [34mplayers get [36m@s [0mobjective
they just meant storing the score value inside nbt I think
huhhh?
they can
with this
yeah but not custom data
and idk where you would include your value
unless they store it in an item
they can store like the count of an item
why is the op not here
or the data of the item
there are many usecases in which you want to modify the data of an item using scoreboards
sorry i was afk
i meant that i have nbt ammo on item (ender_eye{ammo:30})
and i want to set this ammo to number from scoreboard (sorry for incorrect english)
yea very easy using this command
when i have score 60 = ammo:60
you do need to modify the path to have the actual correct path
what version are you in?
1.20.4
[35mexecute [34mstore result entity [36m@n[33m[[37mtype[34m=[32mminecart[33m] [0mItems[33m[[32m0[33m][36m.nbt.ammo [34mrun [35mscoreboard [34mplayers get [36m@s [0mammo
@n?
oh sorry a newfeature in 1.21
got so used to it
replace it with @e[type=minecart,sort=nearest,limit=1]
sorry sometimes my brain spits out crap, use byte
If you want to have more that 255 ammo, you can place int there instead
ok, thanks
using byte uses less data storage so it's more efficient for world lag and save file size
If your question is resolved, that's great to hear! Make sure to run /resolve or click the Resolve Question button. Otherwise, feel free to continue asking for help! :D
Your question, #1272228676389568655 (How to change nbt?), was resolved!
#1272228676389568655 message
33m