Started by
a guy called l…
on
Topic category: Help with Minecraft modding (Java Edition)
I recently had a problem with my hostile entity, which only appeared at night / dark even though I had set it as ambient spawn type, obviously I have to put it on mob and not creature, because a creature cannot attack
Well, my solution is to create an equal mob (in texture) but that IS a creature so that it spawns not only at night, but that when it exists, it becomes the hostile entity
I do not know if it will work, I will try it, if someone has a better solution it would be a pleasure to say it
what I did in my mod was to put the weight of spawn at 101 this makes the entity appear in any piece that is a little dark, your entity will not appear in open fields but it will appear under any tree and etc and then he can walk around making it look like he's born anywhere
in the entity's spawning properties, use the custom spawning conditions. creating a custom spawning conditions procedure will override vanilla spawning conditions (which checks for light level and other stuff).
I had tried the procedures and when I put that it should appear in only light it simply did not appear in absolutely any place But, if it served my idea, when the passive mob appears, it replaces the hostile one in the first tick and it works perfectly