Striders no longer spawn on master #4029
Labels
No Label
#P1 CRITICAL
#P2: HIGH
#P3: elevated
#P4 priority: medium
#P6: low
#Review
annoying
API
bug
code quality
combat
commands
compatibility
configurability
contribution inside
controls
core feature
creative mode
delayed for engine release
documentation
duplicate
enhancement
environment
feature request
gameplay
graphics
ground content conflict
GUI/HUD
help wanted
incomplete feature
invalid / won't fix
items
looking for contributor
mapgen
meta
mineclone2+
Minecraft >= 1.13
Minecraft >= 1.17
missing feature
mobile
mobs
mod support
model needed
multiplayer
Needs adoption
needs discussion
needs engine change
needs more information
needs research
nodes
non-mob entities
performance
player
possible close
redstone
release notes
schematics
Skyblock
sounds
Testing / Retest
tools
translation
unconfirmed
mcl5
mcla
Media missing
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: VoxeLibre/VoxeLibre#4029
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
MineClone2 version: master
What happened?
Striders no longer spawn in the nether lava since commit
11e3674926
By editing line
86da47b922/mods/ENTITIES/mcl_mobs/spawning.lua (L733)
to local art_light = 1 strider's spawn again.Changing the nether_threshold value did not have the same effect, striders still didn't spawn
What should happen:
Strider's should spawn on lava
Steps to reproduce
Go to a lava pool in the nether and see the lack of striders spawning.
Personally noticed this issue while working on spawning randomization and seeing in my logs that striders never were able to spawn
@Codiac
I think the fix here is to handle passive mobs differently than hostile mobs.
The wiki isn't clear, but I think passive mobs have basically the same rules in all dimensions.
You may have to look at both Spawning (passives section) and the individual mob. The lighting changes, iirc, were only for hostiles. So, a lot of passives will have specific conditions (as far as light levels) in order to spawn.
But, striders specifically, would need to be able to spawn in light levels 1+ as lava has a higher light level. (I think its 4? not sure.)
The "normal" passive rules work for striders, the problem was that check was only being done in the overworld.
I cleaned up the code so it now works and should be easier to add an override for passive mobs that don't use the standard rules.
Thanks for picking this up, @Codiac.
Did we test endermen in the end? I'm not 100% sure if they were under the peaceful spawn cap or not. Might be a useful test case to validate.
My bad, using confusing language. The light check doesn't look at
spawn_class
, it looks attype
.Endermen are
monsters
and use the monster rules for light checks. So they were working, and still do.Appreciate the clarification.