3

Best way to get custom nbt per player

bvuno11/6/24 10:35 am
11/18/2024 7:47 am
imalittlhigh
long ago i made a datapack that just display on action bar player coordinates.
i kept adding new features, like colors, compass etc and made it available for multiplayer.
buut, i made a mistake using storage, thinking they could allow me to have a custom storage per player.
i already saw the clould wolf video about pdb but i don't know if it is the best fit for this. anyone can help? thanks!

https://www.planetminecraft.com/data-pack/ezinfo/
Posted by
bvuno
Level 29 : Expert Button Pusher Toast
9

Create an account or sign in to comment.

2

imalittlhigh
11/18/2024 7:47 am
Level 64 : High Grandmaster Sweetheart Senpai
you could just use macros, if ur in newer versions ^^
that mostly circumvents the need for player based storage
if you need to store player nbt anyway, id either use the uuid as identifier, or make a scoreboard that gives the player ids and increments for every player. Then you can save the data in storage and use that id as your identifier ^^

Just looked at your pack, for the coords you can use macros (feel free to snoop around my cords list datapack)
for coulours and other stuff id make a scoreboar for every option, and then assign a number to every state that option can have and save that on the player
2
CommandYaw
11/14/2024 10:29 am
Level 28 : Expert Modder
You could use scoreboard to store numeric values per-player. I haven't watched the Video you mentioned but I think its also good for that case!
1

Welcome