I wanted to make a custom mob to spawn with datapacks, but I want them to spawn wherever their hitbox can fit, meaning that they could spawn on water, on any light level, on slabs and invisible blocks like torches, buttons or things like that. But I'm really new into datapacks so I don't know if this is even possible xD I suppose that I'd have to create some kind of checker to check the light level and if it's smaller than 16 (I think that the maximum is 15 so they would always spawn) they can spawn there, in water I think that I'd have to make the same spawners that drowneds or squids use but changing that to all the biomes and not just oceans or rivers, and on slabs and invisible blocks I don't really know.
I wanted to make a custom mob to spawn with datapacks, but I want them to spawn wherever their hitbox can fit, meaning that they could spawn on water, on any light level, on slabs and invisible blocks like torches, buttons or things like that. But I'm really new into datapacks so I don't know if this is even possible xD I suppose that I'd have to create some kind of checker to check the light level and if it's smaller than 16 (I think that the maximum is 15 so they would always spawn) they can spawn there, in water I think that I'd have to make the same spawners that drowneds or squids use but changing that to all the biomes and not just oceans or rivers, and on slabs and invisible blocks I don't really know.