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

Started by LEPRODOR on Wed, 10/21/2020 - 15:55

Topic category: Help with modding (Java Edition)

Last seen on 22:10, 22. Nov 2020
Joined Mar 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Monster suddently spawns at light maximum 11 or 12, what's with that ?
Wed, 10/21/2020 - 15:55

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 01:36, 23. Nov 2020
Joined Jun 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 22:10, 22. Nov 2020
Joined Mar 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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] ]