Topic category: Help with modding (Java Edition)
I am trying to accomplish when a player dies and has another item on it that the certain item is added back to the player's inventory. Such as if keep inventory was on a selected item. But I struggle with the item adding back into the player's inventory as soon as they die, before the player dies the game notices and adds the item into the inventory. I need it to wait until the player respawns for that item to be added back but I am unsure of the command to do so. I apologize if this is confusing. So background knowledge is that Netherite doesn't burn in lava because it is made for the nether, I was wanting to make an Ender type of this armor. Where most of the end is the void, so the Ender infused items would stay as keep inventory would, but on those select items only. If you could help me through it, I would appreciate it a ton.