Skip to content

Conversation

@AnimalRacional
Copy link

@AnimalRacional AnimalRacional commented Sep 18, 2025

If ENABLE_MOB_VARIANTS is defined:

  • When spawning an hostile mob check the spawn chunk's biome; if it's a desert, spawn a husk instead of a zombie.
  • When a husk hits a player, apply a penalty of 150 saturation; if the player can't take the full penalty, divide the unremoved saturation by 50 and apply it to hunger instead, resetting their saturation to 200 (the value it's reset to when hunger is lost naturally). This way, if a player takes the full penalty on hunger, they lose 3 hunger points, but most of the time loses only 1 or 2

From #125

src/procedures.c Outdated
}

void spawnHostileMob(short mob_x, short mob_y, short mob_z){

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra newline? Or missing newline at the bottom? You decide.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not completely sure what you mean, so I took from spawnMob and put a newline both at the top and the bottom

@p2r3 p2r3 mentioned this pull request Sep 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants