Posted April 22, 20214 yr 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, 20214 yr by theagente00g
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.