How to make a mob only start spawning in world when a global variable is a certain value?

Started by TheCatalystGaming on

Topic category: Help with modding (Java Edition)

Last seen on 19:36, 13. Nov 2022
Joined Nov 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a mob only start spawning in world when a global variable is a certain value?

To clarify the title, is there any way to make a mob start naturally spawning in the world when, for example, a variable is set to a certain value? I was going to use it so that as bosses are defeated, harder enemies start to spawn in the world.

Yes you can. Use on initial…
Mon, 08/05/2019 - 11:32

Yes you can. Use on initial mob spawn procedure trigger and in this procedure check if your condition is not met. If it is not, call despawn entity procedure block to cancel mob spawning.

Last seen on 19:36, 13. Nov 2022
Joined Nov 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks for the help, I never…
Mon, 08/05/2019 - 19:16

Thanks for the help, I never would have thought of that!