Started by
Cosmic_Mango33
on
Topic category: Advanced modding
I'm trying to make my snail mob hide in its shell for thirty seconds after being hit, but I don't know where to start with this.
Topic category: Advanced modding
I'm trying to make my snail mob hide in its shell for thirty seconds after being hit, but I don't know where to start with this.
Use Geckolib, you can make an animation to do that.
I've tried using GeckoLib before, but it messes up all my previously made models.
Use Geckolib or change mob
Despawn current mob and spawn another form
if - entity attacked
despawn event/target entity
summon entity of type: “snail in shell”
wait 600 on server side
get health of “snail in shell” set as variable health new
despawn nearest entity of type “snail in shell”
summon new entity “snail”
set health of nearest entity of type “snail” to health variable
you can add geckolib animations if you want