3
Best way to get custom nbt per player
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/
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/
Create an account or sign in to comment.
2
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
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
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!