Death Mechanics - yeelp/Scaling-Feast GitHub Wiki

Death Mechanics are features in Scaling Feast that apply when a player dies.

Mechanics

When a player dies, Scaling Feast has a handful of features that impart some effect on the player. All of these "subfeatures" are configurable.

They are applied in the following order.

Death Penalties

When the loss amount in the config is above zero, a player's max hunger will drop by the specified amount unless the player's max hunger is below a certain threshold (again, specified in the config). The penalty is applied as an Attribute Modifier on Scaling Feast's Max Hunger Attribute.

Eating a Hearty Shank directly counteracts this penalty; the bonus max hunger from a Hearty Shank will first be used to remove any outstanding Death Penalty modifiers and Starvation Penalty modifiers before being counted towards the player's total Hearty Shank usage limit.

Respawning Stats

When the player dies, Scaling Feast determines the hunger and saturation the player respawns with based on the config. This feature is preferable if trying to preserve food stats across deaths as opposed to other mods that do the same thing as this allows for the extra hunger to be preserved as well.

Hunger Penalties

Scaling Feast can also apply a hunger penalty to to hunger a player starts with. This is a straight deduction and not affected by things like the Fasting enchantment or Iron Stomach. This is best used if the Respawning Stats above are set to preserve hunger and saturation on death, but will still apply regardless.