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

Started by TheCatalystGaming on Mon, 08/05/2019 - 01:16

Topic category: Help with modding (Java Edition)

Last seen on 17:32, 30. Nov 2020
Joined Nov 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to make a mob only start spawning in world when a global variable is a certain value?
Mon, 08/05/2019 - 01:16

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 17:32, 30. Nov 2020
Joined Nov 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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!