Temporary partial fix for insane hunger issue where you can only ever replenish 2.5 hearts at a time

This commit is contained in:
2026-03-11 23:41:45 -05:00
parent b6e1952109
commit 3adf57d33a
3 changed files with 3 additions and 3 deletions

View File

@@ -9,7 +9,7 @@
mode = "ALL" mode = "ALL"
#How to translate food points into heart points when consuming food. #How to translate food points into heart points when consuming food.
#At the default value of 0.5, food fills your heart bar at half the rate it would fill hunger. #At the default value of 0.5, food fills your heart bar at half the rate it would fill hunger.
foodHealFactor = 0.5 foodHealFactor = 0.0
#Globally overrides the maximum stack size of food items. #Globally overrides the maximum stack size of food items.
#This property affects all Vanilla and Mod food items that derive from ItemFood. #This property affects all Vanilla and Mod food items that derive from ItemFood.
#Set to -1 to retain the default stack size of each food item. Note: This will affect the entire server, not just players on hunger strike. #Set to -1 to retain the default stack size of each food item. Note: This will affect the entire server, not just players on hunger strike.

View File

@@ -4,7 +4,7 @@ const MobEffectInstance = Java.loadClass('net.minecraft.world.effect.MobEffectIn
console.log('Loaded tooltips') console.log('Loaded tooltips')
const nutritionTooltip = (item, lines) => { const nutritionTooltip = (item, lines) => {
let healing = item.foodProperties.getNutrition() / 2 let healing = item.foodProperties.getNutrition()
if(healing == 0) { if(healing == 0) {
return return

View File

@@ -4,7 +4,7 @@ ItemEvents.modification(event => {
event.modify(Object.keys(data), item => { event.modify(Object.keys(data), item => {
item.foodProperties = food => { item.foodProperties = food => {
let dataEntry = data[item.arch$registryName().toString()] let dataEntry = data[item.arch$registryName().toString()]
food.hunger(dataEntry.heal * 2) food.hunger(dataEntry.heal)
for(let effectDef of dataEntry.effects) { for(let effectDef of dataEntry.effects) {
switch(effectDef.type) { switch(effectDef.type) {