Hunger Overhaul

Hunger Overhaul

9M Downloads

Having Issues setting food Values

Razorskills opened this issue ยท 2 comments

commented

Hello, basically I am having problems setting the food values for Cooked steak, Cooked Chicken.. here is my .json file:

{
    // a list of foods and their food values
    // these values will take precedence over HO's default values
    "foods": [
        {
            // the name of the item in "mod:name" format
            "name": "minecraft:golden_apple",
            // [optional] the metadata value of the item (default: 0)
            //"meta": 0,
            // the hunger value of the item (1 hunger = 1/2 hunger bar)
            "hunger": 15,
            // the saturation modifier (saturation = hunger * 2 * saturationModifier)
            "saturationModifier": 0.5
        },
        {
            "name": "minecraft:golden_apple",
            "meta": 1,
            "hunger": 20,
            "saturationModifier": 0.5
        },
        {
            "name": "minecraft:golden_carrot",
            //"meta": 1,
            "hunger": 15,
            "saturationModifier": 0.5
        },
        {
            "name": "minecraft:cooked_beef",
            //"meta": 0,
            "hunger": 4,
            "saturationModifier": 0.5
        },
        {
            "name": "minecraft:cooked_porkchop",
            //"meta": 0,
            "hunger": 4,
            "saturationModifier": 0.5
        },
        {
            "name": "minecraft:cooked_chicken",
            //"meta": 0,
            "hunger": 4,
            "saturationModifier": 0.5
        },
        {
            "name": "minecraft:cooked_fished",
            //"meta": 0,
            "hunger": 4,
            "saturationModifier": 0.5
        }
    ]
}

Maybe you guys will see / understand if I am doing something wrong, but I had the steak and Chicken working earlier, then added fish and somehow.. my steak and chicken doesn't work anymore. Feels a bit iffy since it was working before, and now it is not but I didn't change anything with the chicken or steak.. (The other values that I set are working perfectly)

commented

Ok what? I just loaded up, and now the steak and chicken have the right food level, but the fish and porkchop are back to default..

Seems a bit finicky..

commented

I would bet this is because the JSON values are simply added to the same list that the HO food values are, so which ones are chosen are based on arbitrary iteration order (which would change each launch). Been something I've been meaning to fix for a while.