theagente00g Posted April 22, 2021 Share Posted April 22, 2021 (edited) I have a class of items called Ragnarok_Cards. My ideia was creating the item Loot_Box with would spawn a random already seen card. For that I was registering in nbt of player every time he pickup a card. But when the player dies, the nbt is reset. How I can stop the nbt from resetting? ( Or if this is not the proper way of storing extra data of the player, what is the right one?) Ragnarok_Card: https://github.com/GustavoSasaki/Ragnarok-Cards/blob/main/src/main/java/ragnarok_cards/Items/RagnarokCard.java Pickup event: https://github.com/GustavoSasaki/Ragnarok-Cards/blob/main/src/main/java/ragnarok_cards/Events/PickUp.java Loot_Box: https://github.com/GustavoSasaki/Ragnarok-Cards/blob/main/src/main/java/ragnarok_cards/Items/LootBox.java Edited May 20, 2021 by theagente00g Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.