HomeJavaModsQubit Food
Qubit Food
ModsJava

Qubit Food

A tiny, configurable mod intended for use in modpacks. Allows for configuration of hunger mechanics (and cake).

⬇ Download on Modrinth

A tiny, configurable mod intended for use in modpacks. Allows for configuration of hunger mechanics (and cake).

Usage

By default, this mod should change nothing.

It can be configured with a file at <mc folder>/config/qubit/food.json

Its configuration has this format (these are the vanilla settings):

{
  // Configuration of exhaustion.
  "exhaustion": {
    // A multiplier on ALL exhaustion added.
    "multiplier": 1.0,
    // The amount of exhaustion required to drain food and saturation once.
    "per_drain": 4.0,
    // The amount of food drained each time exhaustion exceeds per_drain.
    "food_drain": 1,
    // The amount of saturation drained each time exhaustion exceeds per_drain.
    "saturation_drain": 1.0,
    // The cap on the exhaustion value.
    // Note food and saturation are drained (and per_drain subtracted) at most once per tick.
    "cap": 40.0,
    // Configuration of exhaustion amounts from various sources.
    "from": {
      // The amount of exhaustion for each block broken.
      "break_block": 0.005,
      // The amount of exhaustion for each successful normal attack.
      "attack": 0.1,
      // The amount of exhaustion for each attack with a stabbing weapon (i.e. a spear).
      "stab_attack": 0.1,
      // The amount of exhaustion for each jump.
      "jump": 0.05,
      // The amount of exhaustion for each jump while sprinting.
      "sprint_jump": 0.2,
      // The amount of exhaustion for each meter swum (corresponds to "Distance Swum" statistic)
      "swim": 0.01,
      // The amount of exhaustion for each meter walked underwater (corresponds to "Distance Walked under Water" statistic)
      "walk_under_water": 0.01,
      // The amount of exhaustion for each meter walked on water (corresponds to "Distance Walked on Water" statistic)
      "walk_on_water": 0.01,
      // The amount of exhaustion for each meter climbed (corresponds to "Distance Climbed" statistic)
      "climb": 0.0,
      // The amount of exhaustion for each meter traveled sprinting (corresponds to "Distance Sprinted" statistic)
      "sprint": 0.1,
      // The amount of exhaustion for each meter traveled crouching (corresponds to "Distance Crouched" statistic)
      "crouch": 0.0,
      // The amount of exhaustion for each meter walked (corresponds to "Distance Walked" statistic)
      "walk": 0.0,
      // The amount of exhaustion for each meter flown with elytra (corresponds to "Distance by Elytra" statistic)
      "aviate": 0.0,
      // The amount of exhaustion for each meter flown (corresponds to "Distance Flown" statistic)
      "fly": 0.0,
      // The amount of exhaustion each tick per level of the Hunger effect.
      "hunger_level": 0.005
    }
  },
  // How many food points the player starts with.
  "initial_food": 20,
  // How much saturation the player starts with.
  "initial_saturation": 5.0,
  // A cap on saturation. If less than 0, uses the vanilla behavior of being capped to the current food level.
  "saturation_cap": -1.0,
  // The minimum (exclusive) food points required to sprint.
  "sufficient_food": 6,
  // Configuration of regeneration if enabled.
  "regen": {
    // The minimum (inclusive) food points the player must have to heal.
    "min_food": 18,
    // The minimum (exclusive) saturation the player must have to heal.
    "min_saturation": -1,
    // The timer in ticks for each regen tick.
    "period": 80,
    // Whether only saturation will be drained when healing.
    "only_use_saturation": false,
    // How much exhaustion will be applied for each regen tick.
    "drain": 6.0,
    // How much health each tick heals.
    "heal": 1.0,
    // This number is added to period for each food point the player has.
    "period_food_scale": 0,
    // This number is added to period for each whole saturation point the player has.
    "period_saturation_scale": 0
  },
  // Configuration of boosted regeneration if enabled. Has the same properties as regen.
  "regen_boosted": {
    "min_food": 20,
    "min_saturation": 0.0,
    "period": 10,
    "only_use_saturation": true,
    "drain": 6.0,
    "heal": 1.0,
    "period_food_scale": 0,
    "period_saturation_scale": 0
  },
  // Configuration of starvation.
  "starvation": {
    // The maximum (inclusive) food points the player must have to be starving.
    "max_food": 0,
    // The timer in ticks for each starvation tick.
    "period": 80,
    // The default health below which the player will stop taking damage.
    // The lowest minimum health value applies, so if this is less than min_health_hard,
    // for example, the player will still be damaged until this threshold.
    "min_health": 10.0,
    // The health below which the player will stop taking damage on Normal difficulty.
    "min_health_normal": 1.0,
    // The health below which the player will stop taking damage on Hard difficulty.
    "min_health_hard": 0.0,
    // How much damage each starvation tick deals.
    "damage": 1.0,
    // This number is added to period for each food point the player has.
    "period_food_scale": 0,
    // This number is added to period for each whole saturation point the player has.
    "period_saturation_scale": 0
  },
  // Configuration of cake nutrition per slice.
  "cake": {
    // How many food points each slice gives.
    "food": 2,
    // How much saturation each slice gives.
    "saturation": 0.1,
    // Whether cake can always be eaten regardless of current food points.
    "can_always_eat": false
  }
}
Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more