Change a mob into another after a set amount of time

Started by ArmadilloMike on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Change a mob into another after a set amount of time

I have a custom mob and I want it to get replaced by a certain mob after a set amount of time. How would I achieve this?

Joined Mar 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Create a procedure for when…
Wed, 03/04/2026 - 01:47

Create a procedure for when the entity spawns, and set an nbt number value for your mob, set it to however many seconds you want the timer to be times 20 (20 ticks a second in Minecraft).

 

Then create a procedure on entity tick for your mob, and decrease that same nbt value by 1, and in the same procedure use an if statement to check if the timer is below 0, and despawn your mob and summon the new one