Turning mobs into another one when dying with certain effect. (SOLVED)

Started by BryAstro on

Topic category: Help with modding (Java Edition)

Last seen on 01:01, 23. Apr 2024
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Turning mobs into another one when dying with certain effect. (SOLVED)
Thu, 12/21/2023 - 00:32 (edited)

I would like to know how to turn a Mob into another when dying with a certain effect.

I'm working on a virus effect that infects other mobs and mutate them when they die.

e.g.

When a Zombie dies with the virus effect it will turn into an Infected Zombie.

Please tell me if you know.

Edited by BryAstro on Thu, 12/21/2023 - 00:32
Last seen on 06:22, 13. Mar 2023
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Replace Weakness with your…
Sun, 08/21/2022 - 16:49

Replace Weakness with your effect and the Spawns with your mutation Spawns and just expand for the mutated entities you want.

 

Procedure

Last seen on 17:58, 19. Apr 2024
Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make a procedure that…
Mon, 01/22/2024 - 16:47

Make a procedure that detects when an entity dies, and if they have the virus effect and the entity is a Zombie, then summon the Infected Zombie