ItemEvents.modification(event => {
    event.modify([
        "crockpot:surf_n_turf",
    ], item => {
        item.foodProperties = food => {
            food.alwaysEdible(false)
        }
    })
    event.modify([
        "farm_and_charm:farmers_breakfast",
    ], item => {
        item.foodProperties = food => {
            food.hunger(16)
            food.alwaysEdible(false)
        }
    })
    event.modify([
        "bakery:sandwich",
        "bakery:vegetable_sandwich",
        "farm_and_charm:chicken_wrapped_in_bacon",
        "bakery:grilled_salmon_sandwich",
        "bakery:grilled_bacon_sandwich",
    ], item => {
        item.foodProperties = food => {
            food.hunger(12)
            food.alwaysEdible(false)
        }
    })
    event.modify([
        "bakery:apple_pie_slice",
        "bakery:baguette",
        "bakery:braided_bread",
        "bakery:bread",
        "bakery:bun",
        "bakery:bundt_cake_slice",
        "bakery:chocolate_cake_slice",
        "bakery:chocolate_gateau_slice",
        "bakery:chocolate_tart_slice",
        "bakery:croissant",
        "bakery:crusty_bread",
        "bakery:glowberry_pie_slice",
        "bakery:linzer_tart_slice",
        "bakery:misslilitu_biscuit",
        "bakery:pudding_slice",
        "bakery:strawberry_cake_slice",
        "bakery:sweetberry_cake_slice",
        "bakery:toast",
        "bakery:waffle",

        "farm_and_charm:farmer_salad",
        "farm_and_charm:onion_soup",
        "farm_and_charm:goulash",
        "farm_and_charm:sausage_with_oat_patty",
        "farm_and_charm:cooked_salmon",
        "farm_and_charm:cooked_cod",
        "farm_and_charm:lamb_with_corn",
        "farm_and_charm:baked_lamb_ham",
        "farm_and_charm:potato_with_roast_meat",
        "farm_and_charm:stuffed_chicken",
    ], item => {
        item.foodProperties = food => {
            food.hunger(10)
            food.alwaysEdible(false)
        }
    })
    event.modify([
        "bakery:strawberry_glazed_cookie",
        "bakery:sweetberry_glazed_cookie",
        "bakery:chocolate_glazed_cookie",
        "bakery:strawberry_cupcake",
        "bakery:sweetberry_cupcake",
        "bakery:apple_cupcake",
        "bakery:jam_roll",
        "bakery:cornet",

        "farm_and_charm:oatmeal_with_strawberries",
        "farm_and_charm:simple_tomato_soup",
        "farm_and_charm:barley_soup",
        "farm_and_charm:potato_soup",
        "farm_and_charm:pasta_with_onion_sauce",
        "farm_and_charm:corn_grits",
        "farm_and_charm:barley_patties_with_potatoes",
        "farm_and_charm:beef_patty_with_vegetables",
        "farm_and_charm:roasted_chicken",
        "farm_and_charm:roasted_corn",
        "farm_and_charm:bacon_with_eggs",
        "farm_and_charm:grandmothers_strawberry_cake",
    ], item => {
        item.foodProperties = food => {
            food.hunger(8)
            food.alwaysEdible(false)
        }
    })
    //伤害吸收
    event.modify([
        "bakery:vegetable_sandwich",
        "bakery:sandwich",
        "bakery:baguette",
        "bakery:braided_bread",
        "bakery:bread",
        "bakery:bun",
        "bakery:croissant",
        "bakery:crusty_bread",
        "bakery:misslilitu_biscuit",
        "bakery:toast",
        "bakery:waffle",
    ], item => {
        item.foodProperties = food => {
            food.effect("minecraft:absorption", 30 * 1200, 7, 1)
        }
    })
    //加速
    event.modify([
        "bakery:strawberry_glazed_cookie",
        "bakery:sweetberry_glazed_cookie",
        "bakery:chocolate_glazed_cookie",
        "bakery:strawberry_cupcake",
        "bakery:sweetberry_cupcake",
        "bakery:apple_cupcake",
        "bakery:jam_roll",
        "bakery:cornet",
    ], item => {
        item.foodProperties = food => {
            food.effect("minecraft:speed", 30 * 1200, 0, 1)
            //food.effect("quark:resilience", 30 * 1200, 3, 1)
        }
    })
    //再生
    event.modify([
        "snk:birch_liquid",
        "snk:chrysanthemum_tea",
        "snk:dandelion_tea",
        "bakery:apple_pie_slice",
        "bakery:bundt_cake_slice",
        "bakery:chocolate_cake_slice",
        "bakery:chocolate_gateau_slice",
        "bakery:chocolate_tart_slice",
        "bakery:glowberry_pie_slice",
        "bakery:linzer_tart_slice",
        "bakery:pudding_slice",
        "bakery:strawberry_cake_slice",
        "bakery:sweetberry_cake_slice",
    ], item => {
        item.foodProperties = food => {
            food.effect("minecraft:regeneration", 30 * 1200, 0, 1)
        }
    })
})