Monsters spawn in all light levels

Started by lt.wret on Wed, 08/19/2020 - 16:11

Topic category: Help with MCreator software

Last seen on 18:12, 2. Jul 2021
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Monsters spawn in all light levels
Wed, 08/19/2020 - 16:12 (edited)

Spawn code
https://imgur.com/a/I44WSHv

All my monsters spawn despite them being set to monster spawn type
I fear i've just done something stupid but i cant find why it happens or a workaround

If its any correlation all monsters have a on initial spawn check a global variable whether to despawn or not

 

the white blocks produce max light (also did the same with torches)
https://imgur.com/a/jMa5r5y

if its because of the On inital spawn please could someone help me with a work around i've tried If light level > 0 then despawn and they still spawn.

Edited by lt.wret on Wed, 08/19/2020 - 16:12
Last seen on 18:12, 2. Jul 2021
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Does anyone have any…
Thu, 08/20/2020 - 21:50

Does anyone have any solutions?

Last seen on 20:46, 15. Jul 2021
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
If the mob is marked as …
Sun, 08/23/2020 - 05:17

If the mob is marked as "monster", it shouldn't spawn during the day or in dark places. Make sure you update MCreator to the latest version 2020.4, as there are new condition options for spawning now as well. You shouldn't need to use the "on initial entity spawn" anyways, since the monster attribute automatically adds those traits.