Monster suddently spawns at light maximum 11 or 12, what's with that ?

Started by VioletPyre on

Topic category: Help with modding (Java Edition)

Last seen on 01:56, 16. Jan 2024
Joined Mar 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Monster suddently spawns at light maximum 11 or 12, what's with that ?

Hello ! My monsters , since i updated on 2020.4 (old was 2020.2 and its been a long time and i still haven't found a solution) , my mobs spawns at a way higher light level. A regular monster spawns at light 7 and less, mine apparently spawns at light like 11 , 12 , 10 maximum. It is really annoying because they spawn almost everywhere except at full light (13+) or during the day.

Is there anything i could do ?

Last seen on 15:43, 1. Jan 2024
Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I dunno why this would…
Wed, 10/21/2020 - 16:32

I dunno why this would happen, but a possible way to fix it would be to set in the addition requirements, a procedure that returns get light value of block at X Y Z < 8. Or something like that.

pretty sure it would just be Return: (Get light value of block at X Y Z) < (8).
This should have it check if the light value where it wants to spawn the entity is less than 8, so 7 and below. If so it returns true allowing it to spawn. If the value is higher, it returns false and it wont spawn.
I think this should work. Hope this helps.

 

Last seen on 01:56, 16. Jan 2024
Joined Mar 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hmm. So it may be what i…
Wed, 10/21/2020 - 23:20

Hmm. So it may be what i think it is : This mob is the ONLY one to spawn in that biome (for now, i use them as a substitute since this biome hasn't its "true" mobs right now.) so this biome kinda stays hostile. Now i'm thinking the game tries to spawn them absolutely everywhere it can but I still wouldn't understand why would it break the [light < 7] thingy

Also you told me about "Conditions" , I can't understand how to make them in function. I cannot let a procedure without an output but i don't want the Condition to do another random thing, unless i have to put [Spawn mob of type [CUSTOM:shadowspider] ]