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

Started by modmakermuffan on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined Mar 2022
Points:
374

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 14
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 :)

Active 7 months ago
Joined Mar 2022
Points:
430

User statistics:

  • Modifications: 1
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 121
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

Active 7 months ago
Joined Mar 2022
Points:
430

User statistics:

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

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