Topic category: Help with Minecraft modding (Java Edition)
Hello, I am creating a new creature, which has two slots in its inventory, slot 0 and slot 1, one for a mount and one for a shell but you cannot use both at the same time.
I managed to relate those items to the textures that correspond to them, including a neutral texture when nothing was detected in the slots, and I decided to place them in the armor slots so that when restarting the world they would still remain there.
The problem happens when I reload the world, the game detects an empty inventory and empties the armor slot, thus giving me the neutral texture. After this, the bug is solved by reopening the inventory because it reloads the items and returns to the texture. that corresponds to it, that is why I would like to know if there is any way that when loading the world the inventory items are loaded automatically without having to do it manually, I will show you my procedure in case it is of any use to solve the bug
https://imgur.com/a/5go3bmZ