Can someone explain to me how to use #getCanSpawnHere ?

Topic category: Help with modding (Java Edition)

Can someone explain to me how to use #getCanSpawnHere ?
Sun, 04/18/2021 - 21:23 (edited)

I made a custom mob for my mod. The mob was hostile and able to spawn during the day but I am confused about how to use override and getCanSpawnHere to make it actually spawn. Can someone please help me? I'm trying to let it spawn at any light level in a specific biome.
It spawns in the dark as of rn because I put it under "monster" so that is would add to the hostile mob cap but I want to use getcanspawnhere to let it spawn in bright light levels.

Edited by 𝔎𝔬𝔞𝔩𝔄𝔦𝔡𝔊𝔬𝔱𝔊𝔢𝔦𝔠𝔬 on Sun, 04/18/2021 - 21:23