#I need help on how to preserve the color of a mob after it spawns from an item.
1 messages · Page 1 of 1 (latest)
Get the entity snapshot string NBT of the entity with this expression https://skripthub.net/docs/?id=12676
Then store it in the NBT of the item:applescript set string tag "catcher;entitySnapshot" of custom nbt of {_item} to {_entitySnapshotNBT}
Then when you get it back use this expression to get it back as an entity snapshot with this expression https://skripthub.net/docs/?id=13014
And then you can spawn it with this effect https://skripthub.net/docs/?id=12616 or with Skript's if you're using skript 2.10
Gets the provided entities or entity snapshots as their NBT string.
Don't rely on this as the structure of the results can change across versions.
Attempts to create an entity snapshots from a previously created string nbt of one.
Be aware that the NBT of entities may change when updating the Minecraft version and if that's the case they will break
uiineplayer
Thanks, this work
@finite ore
I managed to do it the way you said, but now when capturing a mob, its name inside the item is shown as <none>, I’m confused.
use AI
I dropped the code above in the link.