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 MCreator modding

Last seen on 23:48, 23. Aug 2019
Joined Nov 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
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.

Last seen on 18:59, 23. Sep 2019
Joined Apr 2010
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
  • developer
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 23:48, 23. Aug 2019
Joined Nov 2015
User points:

Statistics:

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

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

Last seen on 18:59, 23. Sep 2019
Joined Apr 2010
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
  • developer
You are welcome!
Mon, 08/05/2019 - 20:53

You are welcome!