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

Started by Cube_ on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined Aug 2023
Points:
110

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 0
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

Active 1 year ago
Joined May 2015
Points:
734

User statistics:

  • Modifications: 1
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 15
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.