Food Timer

Adds configurable consumption cooldowns to foods, preventing food spamming.
Apple tooltip.png

Apple tooltip.png

Apples on cooldown.png

Apples on cooldown.png

Description

AI usage disclaimer: This mod was developed with AI-agent assistance using this agent workflow. The project owner reviewed the work during development.

Adds server-enforced consumption cooldowns, with duration tooltips and cooldown overlays in the hotbar and inventory.

By default, only standard Golden Apples and Enchanted Golden Apples receive cooldowns of 1 minute and 5 minutes. Server owners can instead apply one fixed cooldown to every standard food, or scale each food's cooldown by the amount of hunger it restores. Per-item rules become overrides in either all-food mode, and a zero-second rule can exclude an item.

Required on both client and server.

View the source on GitHub.

Configuration

The configuration file is config/foodtimer.cfg. Changes require a restart.

Choose one cooldownPolicy:

  • CONFIGURED_ONLY: Only matching foodCooldowns entries receive cooldowns. This is the default and preserves the original behavior.
  • FIXED_ALL_FOODS: Every standard food uses fixedFoodCooldownSeconds, unless a foodCooldowns rule overrides it.
  • SCALED_ALL_FOODS: Every standard food uses restored hunger points multiplied by secondsPerHungerPoint, unless a foodCooldowns rule overrides it.

Rules use modid:item[:metadata]=seconds. Exact metadata rules win over wildcard rules. Omit metadata or use * to match every variant. Use 0 seconds to exclude a matching item from cooldowns.

general {
    S:cooldownPolicy=CONFIGURED_ONLY
    I:fixedFoodCooldownSeconds=30
    I:secondsPerHungerPoint=5

    S:foodCooldowns <
        minecraft:golden_apple:0=60
        minecraft:golden_apple:1=300
     >

    B:enableTooltips=true
    S:tooltipPrefix=Cooldown: 
    B:enableDebugLogging=false
}

Examples:

# Override every metadata variant of bread with 20 seconds.
minecraft:bread=20

# Give normal Golden Apples 60 seconds but exclude Enchanted Golden Apples.
minecraft:golden_apple:0=60
minecraft:golden_apple:1=0

The server controls gameplay cooldowns and sends its active policy to connected clients. Each client still controls whether tooltips are visible and what tooltip prefix is displayed.

Food Timer Team

profile avatar
  • 1
    Followers
  • 63
    Projects
  • 7.4K
    Downloads

More from MahghuuulsView all

  • Material Enchanting project image

    Material Enchanting

    Overhauls the enchanting table with configurable, item-based recipes.

    • 14
    • December 4, 2026
  • Material Qualities project image

    Material Qualities

    This mod adds material recipes to the Quality Tools Reforging Station and lets pack authors configure random qualities on crafted gear and chest loot.

    • 4
    • December 3, 2026
  • Statusworks project image

    Statusworks

    A library for custom statuses, pools, marks, and cooldowns on players and mobs, defined in the API or CraftTweaker.

    • 102
    • December 2, 2026
  • Structure Abstractions project image

    Structure Abstractions

    Structure placement library for other mods: puts their structures only on suitable spots and keeps them from clashing with each other, vanilla structures and supported structure mods.

    • 11
    • December 1, 2026
  • Material Enchanting project image

    Material Enchanting

    Overhauls the enchanting table with configurable, item-based recipes.

    • 14
    • December 4, 2026
  • Material Qualities project image

    Material Qualities

    This mod adds material recipes to the Quality Tools Reforging Station and lets pack authors configure random qualities on crafted gear and chest loot.

    • 4
    • December 3, 2026
  • Statusworks project image

    Statusworks

    A library for custom statuses, pools, marks, and cooldowns on players and mobs, defined in the API or CraftTweaker.

    • 102
    • December 2, 2026
  • Structure Abstractions project image

    Structure Abstractions

    Structure placement library for other mods: puts their structures only on suitable spots and keeps them from clashing with each other, vanilla structures and supported structure mods.

    • 11
    • December 1, 2026