Started by
Coolkc456
on
Topic category: Help with Minecraft modding (Java Edition)
I don't want a specific item dropping on the ground when the player dies and having it stay in the player's inventory. Does anyone know how to do this? Thanks in advance.
I would try saving the item as a variable (itemstack). When the player dies, the item is saved, and when he respawns, it's loaded / given to him.
I know this is a somewhat old thread but can you show me how to do that, mainly the variable part and the part to load it since im confused