Kill main entity On Entity Kill Another Entity Condition

Published by Hidan on
Status
Won't fix
Issue description

I was making mob that when it kill specific entity it will die and do something else but I cant make it Die or teleport etc.
can you add block that will kill current entity to procedures and I mean Kill that entity that kills other entity ?
 

Issue comments

You can deal infinite damage to the entity to kill it for sure. You can find infinity in the same block as random number block, just change it to infinity in the drop-down.

Killing another entity is not possible as only data provided by the dependencies can be used in procedures.

So I cant make entity kill itself on procedure On Entity kill another Entity ?

I'm pretty sure that it is possible without having to code, you can do this by using the procedure "When entity kills another one" , if you are talking about the entity dying and respawns somewhere else you can first have it do infinite damage to itself, then use the "When entity dies" procedure to respawn it somewhere else using a teleportation procedure. That is the best way I can explain it, I have not done this myself but it is still worth a try.