Started by
garlicdemarlic
on
Topic category: Help with Minecraft modding (Java Edition)
I'm making a mod for a snail mob and I want the snail variants to be save but when I use NBTs for items it doesnt carry over when I try to transfer that data values to the actual entity when you place it down
How are you doing it currently?
I did it like this I kinda fix it but I removed health cuz it would kill the mob https://imgur.com/a/jmR35ja
Any idea how to fix it?
Its in the latest snapshot
What do you need the bucket to save about the entity?
And how are you storing the variants on the entity?
I store it by converting the number of the nbt (like variant number) and put it in a item nbt and when I release the mob I tried to turn the item nbt back to entity nbt and put it in the entity
I need the health, age, and variant to carry over to the item and then put it to the new entity (btw this is my alt)
I store it by converting the number of the nbt (like variant number) and put it in a item nbt and when I release the mob I tried to turn the item nbt back to entity nbt and put it in the entity,
I need the health, age, and variant to carry over to the item and then put it into the new entity (btw this is my alt)
these should do it
https://files.catbox.moe/9liqlk.ptpl
ty so much! it worked
awesome! :3