promotional bannermobile promotional banner

HungerTweaker

Modify food and hunger-related properties with ZenScript (CraftTweaker).

File Details

HungerTweaker-1.12.2-1.1.0.jar

  • R
  • May 30, 2019
  • 47.59 KB
  • 10.1K
  • 1.12.2

File Name

HungerTweaker-1.12.2-1.1.0.jar

Supported Versions

  • 1.12.2
  • FoodValues instances are now prioritized according to the order in which they were retrieved.
    • If multiple ingredients with FoodValues contain an item, it will be modified by the FoodValues instance that was retrieved last.
    • For example, beef will replenish two hunger with this script:
      <*>.foodValues.hunger = 10;
      <minecraft:beef>.foodValues.hunger = 2;
    • Whereas it will replenish ten hunger with this script:
      <minecraft:beef>.foodValues.hunger = 2;
      <*>.foodValues.hunger = 10;
  • Other changes to the FoodValues ZenClass:
    • "setHunger(IData)" and "setSaturationModifier(IData)" have been replaced with getters and setters. The old methods still exist for the sake of backwards compatibility.
    • Added the "unmodifiedHunger" and "unmodifiedSaturationModifier" getters, which retrieve the original, unmodified hunger and saturation values of an IItemStack.
  • Fixed unary minuses in expressions.