Skip to main content

BetterFood Behavior

BetterFood now uses hunger-aware food selection instead of simply eating the most nutritious item first.

Selection Rules

When the plugin needs to restore hunger, it prefers food that:

  1. fits the missing hunger exactly, or stays under it
  2. uses saturation as a tiebreaker
  3. falls back to the smallest overflow if nothing fits cleanly

That means the current plugin is trying to avoid wasting strong food where possible.

Protected Items

The current code protects much more than just renamed or lore-bearing food. BetterFood will avoid auto-consuming food if it has custom-item characteristics such as:

  • custom name or item name
  • lore
  • custom model data
  • enchantments
  • attribute modifiers
  • unbreakable state
  • persistent data container tags

This is intended to reduce the chance of consuming plugin items or decorative items by mistake.

Supported Foods

BetterFood will auto-consume the following foods:

FoodHunger RestoredSaturation Restored
Apple42.4
Baked Potato56.0
Beetroot11.2
Beetroot Soup67.2
Bread56.0
Carrot33.6
Cooked Beef812.8
Cooked Chicken67.2
Cooked Cod56.0
Cooked Mutton69.6
Cooked Porkchop812.8
Cooked Rabbit56.0
Cooked Salmon69.6
Cookie20.4
Dried Kelp10.6
Glow Berries20.4
Golden Carrot614.4
Melon Slice21.2
Mushroom Stew67.2
Potato10.6
Pumpkin Pie84.8
Rabbit Stew1012.0
Sweet Berries20.4

Excluded Foods

The following edible items are intentionally excluded from auto-eating. These are raw meats, special items, or foods with negative or unpredictable effects:

  • Beef (raw)
  • Cake
  • Chicken (raw)
  • Chorus Fruit
  • Cod (raw)
  • Enchanted Golden Apple
  • Golden Apple
  • Honey Bottle
  • Mutton (raw)
  • Poisonous Potato
  • Porkchop (raw)
  • Pufferfish
  • Rabbit (raw)
  • Rotten Flesh
  • Salmon (raw)
  • Spider Eye
  • Suspicious Stew
  • Tropical Fish

Any other edible material added by newer Minecraft versions that has not been classified yet will also be skipped. The plugin logs a warning at startup if it detects unclassified edible materials.

Container Remainders

If a consumed food leaves a remainder item, BetterFood preserves it.

Examples include bowls or other container-returning foods. The remainder is returned to inventory or dropped at the player if inventory space is unavailable.