I need the mob to spawn at a certain light level. How to do it?

Started by Cube_ on

Topic category: Help with modding (Java Edition)

Last seen on 13:32, 24. Sep 2023
Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I need the mob to spawn at a certain light level. How to do it?

I have a mob that should spawn in very dark places where the light level is 0. And if possible, you can make the mob disappear when the light level rises

Last seen on 15:17, 9. Nov 2023
Joined May 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
There is a procedure that…
Sat, 08/19/2023 - 03:56

There is a procedure that checks the light level = to whatever you want. 

I would use a similar procedure to how you get crops to grow based off a light level. There are tutorials for that on youtube. Just change the parts to do with plants to spawn your mob instead.

Hope that helps.