Started by
Smakced
on
Topic category: Help with Minecraft modding (Java Edition)
I have the mob spawning type to "monster" so they only spawn at night, but this also makes them spawn in caves too which I don't want. When I put the mob spawning type to creature and restrict sun in the AI, the mob doesn't spawn at all. Does anyone know how to disable spawning in caves?
Edited by Smakced on Wed, 10/23/2019 - 04:26
Possibly you could despawn them when they are in light levels lower than x and the world time is between 13000-22000 or something.
Thanks for your help that worked. For anyone wondering how to do this you need to create a procedure for "on Initial Entity Spawn" that looks like this:
Here is an improved version of the procedure. Use this one instead of the one posted above.