How to Detect Dead Mobs in Minecraft

preview_player
Показать описание
We go over how to detect if a mob has died and do further commands at it's death place.

Commands (WARNING- MAY COPY WEIRD):
Zombie: /summon zombie ~ ~1 ~ {Tags:["splitZombie"],Passengers:[{id:"silverfish",Tags:["detectZombie"],Invulnerable:1,NoAI:1,Silent:1,ActiveEffects:[{Id:14,Amplifier:1,Duration:20000000,ShowParticles:0b}]}]}
/execute @e[tag=splitZombie] ~ ~1 ~ /scoreboard players tag @e[tag=detectSplit,r=1] add zombieThere
/execute @e[tag=detectSplit] ~ ~ ~ /execute @e[tag=!zombieThere,r=0] ~ ~ ~ /summon zombie ~ ~1 ~ {IsBaby:1}
/execute @e[tag=detectSplit] ~ ~ ~ /execute @e[tag=!zombieThere,r=0] ~ ~ ~ /summon zombie ~ ~1 ~ {IsBaby:1}
/execute @e[tag=detectSplit] ~ ~ ~ /tp @e[tag=!zombieThere,type=silverfish,r=0] ~ ~-200 ~
/scoreboard players tag @e[tag=zombieThere] remove zombieThere

Music:
Uncopyrighted - UmbraSum Epic - Epic Soundtracks
Рекомендации по теме
Комментарии
Автор

Alright Cloud, firstly, thanks for the video I've been looking for many different solutions to this. In the commands you list in your description however, you'll want to change the initial summon command for the silverfish's tag to be compatible with the other commands, since in the spawn command you add a tag "detectZombie" rather than "detectSplit". Also for summoning the babies afterwards, you'll want to add an even more specific tag with the type=Silverfish since sometimes the babies can get targeted there depending on how the zombie dies. It can also be solved with spawning them ~ ~-1 ~ but I adjusted the command so it is just " /execute @e[tag=detectSplit] ~ ~ ~ /execute @e[tag=!zombieThere, r=0, type=Silverfish] ~ ~ ~ /summon zombie ~ ~ ~ {IsBaby:1} ". Thanks for sharing this cool concept, it is exactly what I was looking for.

Deathstylus
Автор

You could summon for example a mob with
/summon minecraft:zombie ~ ~ ~ {Tags:[zombie]}
And then use an repeating commandblock within the command
/testfor @e[tag=zombie] with behind this commandblock a comparator, if the zombie is in the world the commandblock gives a output by the comparator. That way you can check mobs are in the world.
Don't blame bad english, i'm dutch

geertvisser
Автор

U could also do /scoreboard objectives add <insert random name>

It might be different in the version this video was on but now, it’s MUCH easier

michaelmerrett
Автор

this was Exactly the Command where i was Seeking for hahaha

SparkPlays
Автор

Tell me Cloud, what would that dank vid be? Because obviously your making one

jackcraft
Автор

This sort of thing was the first project that I ever did.

zSPC
Автор

I guess it's impossible to make villagers killed by the Player turn into Zombie Villagers.

presidentmilitaryedwardgru
Автор

Ah cool way of detecting death. My way is much clunkier haha

vufour
Автор

Can you show how to make custom mob drops with this method? So instead of it spawning a baby zombie its spawns items or something?

calebross
Автор

What if i want to count how many mobs i killed and than summoning a boss. Like 100 zombies summon a zombie villager. Could i count it through score board on player killed zombie anf if yes how (i am relatively new to commands)

TerraStorm
Автор

How do i use it on zombies
i want to know how to turn on the redstone if there is no any zombies there

christianarmanbasbas
Автор

awesome, but i didnt understand any xD

SparkPlays
Автор

Is it possible to spawn a giant slime (or magma cube in my under-construction adventure map) that won't split once killed? I'd like to make a giant magma cube boss fight...

Anonymous-jono
Автор

I want to make it so every time a player kills a zombie, they get an emerald.

virginlungsx
Автор

Do you have an updated video on mob-death detection?

nate
Автор

Could you maybe show how to disguise mobs/players if that's possible?

SumiPaws
Автор

hey cloud wolf, can you help me making things like:
ONE BLOCK HOUSE!
or something like this :c
and, is possible make like: Scoreboard: if value = 0 /say value is 0!

AlNexus
Автор

i need a command tutorial it teachs this:
a mob spawns top of a block but cant move and attack.
when you kill the mob, same of mob will spawn at top of block.
how many u kill, it still keeps spawning. but this command should work at java edition release 1.14.4
if you make this tutorial video, this will help me/us a lot.

wrongfriend_exe
Автор

how I do a conditional command detecting an entity dead?

Bruman
Автор

Could you tell me the whole /summon command you put in for the zombie ? This is so I can reference this for my map

finbofin