mobs spawn only in caves

Status
Resolved
Type
Product/platform
Not applicable
Priority
Normal
Issue description

im trying to make a mob that only spawns in a cave but am struggling and i cant find an in detail solution, pls help

Issue comments

You can use on entity spawned procedure, check if entity can see sunlight using can see sunlight procedure block from world management and despawn the entity if the condition is not met.



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.