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

Started by modmakermuffan on Wed, 04/20/2022 - 19:16

Topic category: Help with modding (Java Edition)

Last seen on 14:59, 26. May 2022
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
is there a way to find what mob MY custom mob killed?
Wed, 04/20/2022 - 19:16

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:54, 5. Jun 2022
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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:54, 5. Jun 2022
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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"