is there a way to find what mob MY custom mob killed?

Started by modmakermuffan on

Topic category: Help with modding (Java Edition)

Last seen on 22:26, 19. Nov 2023
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
is there a way to find what mob MY custom mob killed?

i want to make it so when a vanilla mob dies from my costume zombie it will change into a zombie version of itself. I know I can test for when it dies from my mob and spawn my infected version of it at its location (ex: chicken dies from my mob--> turns into a infected chicken) if you have any idea how to do this it will be greatly appreciated! even it requires some code I'm good with doing that :)

Last seen on 15:34, 1. Mar 2024
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
In the procedures of your…
Sat, 04/30/2022 - 14:02

In the procedures of your entity you have a field "when the entity kill another"

Create a procedure say :

If entity is chicken (code found in "logic" tab)

Make disappear chicken

Spawn infested chicken

Last seen on 15:34, 1. Mar 2024
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If "event/target entity is…
Mon, 05/02/2022 - 11:01

If "event/target entity is chicken" not work, use "source entity is chicken"