Started by
darkqbs
on
Topic category: Help with Minecraft modding (Java Edition)
Hello, I'm making a mod and I hit any living creature with the item I made, how do I make it turn into a cali that I made in my
Topic category: Help with Minecraft modding (Java Edition)
Hello, I'm making a mod and I hit any living creature with the item I made, how do I make it turn into a cali that I made in my
When it's hit, despawn the entity you hit and spawn the entity you want to transform into at the position. if you really want to, you can also set it to have the same pitch and yaw (direction) as the original entity.
It won't be entirely smooth, especially if the mobs have very different models, so consider possibly spawning some particles when it happens to make it look a bit cleaner?