Fix hungry sheep and hyrdophobic passive mobs #3435
No reviewers
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
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-Minecraft feature
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
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: VoxeLibre/VoxeLibre#3435
Loading…
Reference in New Issue
No description provided.
Delete Branch "drowning_and_hungry_mobs"
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?
Fixes #3432
Fixes #3428
Originally env_damage was at the end of the mob_step. As we have had issues with missing references, we have moved this to the start so we can escape processing asap. This led to this code running more frequently and breath took almost a second to go rather than 15 and mobs drowned quickly before they floated to surface. Sheep also swapped out blocks more frequently.
Looking into this history of mob_step, a number of things were after this and moved including opinion sounds, and picking up items etc. I've ensure some things aren't processed as frequently. We're still using the same timer but we do need to change this soon to avoid piggybacking and any issues that could come from this.
Testing
Mobs spawned high above water no longer die on submerge
Sheep are less peckish.
Mobs are less jittery on edge of water
Opinion sound is a little less painful.
WIP: Fix hungry sheep and hyrdophobic passive mobsto Fix hungry sheep and hyrdophobic passive mobs