Can someone explain to me how to use #getCanSpawnHere ?

Topic category: Help with Minecraft 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