promotional bannermobile promotional banner

HungerTweaker

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

HungerTweaker-1.12.2-1.1.0.jar

File nameHungerTweaker-1.12.2-1.1.0.jar
Uploader
CoolSquidCoolSquid
Uploaded
May 30, 2019
Downloads
10.1K
Size
47.6 KB
Mod Loaders
File ID
2717699
Type
R
Release
Supported game versions
  • 1.12.2

What's new

  • 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.
Type
Name
Game Versions
Size
Downloads
Uploaded