How can I make a mob duplicate itself when it kills another mob?

Started by Bill_Clinton on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I make a mob duplicate itself when it kills another mob?

I made a zombie type mob that attacks pretty much everything alive it finds. Now, I want it so that if it kills a villager, another one of the custom zombies spawns. Does anyone know how I can make that happen?

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Add a produce to when an…
Sun, 05/21/2023 - 14:11

Add a produce to when an entity dies. Check if the entity that died is a villager, and if the source entity is your custom. Then use a spawn entity block. Hopefuly this helps!

 

-- KrebPleb

Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is there any way you could…
Sun, 05/21/2023 - 18:43

Is there any way you could show me a picture of what the code blocks to do that would look like? I just started using mcreator on friday and am still learning a lot of the mechanics.

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I need a similar procedure…
Wed, 04/03/2024 - 17:08

I need a similar procedure to this, but I can not find a spawn entity block. where is it?