#when mob die, it will spawn another

1 messages · Page 1 of 1 (latest)

pallid talon
#

Hello, i want to ask, how do i make when mob dies, it will spawn another, and if it is possible, it will do something like dig up animation from warden, for example, you kill custom zombie and when he dies, an warden will dig up

dapper finch
#

So, what you could do is add a death event which uses queue_command to summon the warden

pallid talon
dapper finch
#

So, something like json "event_name":{ "queue_command":{ "command":[ "summon warden ~~~" ] } }

#

Then trigger that event when the entity dies

#

there are a few methods

#

Easiest would probably be a bp animation controller

#

Oh wait, you wouldn't even need an event then

#

ignore my earlier messages

#

Just follow this tutorial, and replace the /say I am dead! with the command to summon the warden

pallid talon
#

i tryed the animation_controllers but it didnt worked, then i tryed to do it with the minecraft:on_death and it gived me an error in visual studio, it could be maybe becuse of that i maybe put it at the wrong spot

dapper finch
#

So, what exactly happened with the animation controller? Any content logs? Can I see what your files looked like?

sweet birch
pallid talon
pallid talon
#

i used the pilliger one for example and when i puted it in in visual studio, it gived me an error (red line)
"minecraft:damage_sensor": {
"triggers": {
"on_damage": {
"filters": {
"all_of": [
{
"test": "has_damage",
"value": "fatal"
},
{
"test": "is_family",
"subject": "other",
"value": "player"
}
]
},
"event": "minecraft:gain_bad_omen",
"target": "other"
}
}
}

sweet birch
#

I'll do it for ya

pallid talon
sweet birch
pallid talon
sweet birch
pallid talon
#

it works thanks, but one more question, if i want to change the mob, what do i have to change ??

#

or how do i make the animation working for my custom mob?