Home›Java›Mods›HungerModifier
HungerModifier
ModsJava

HungerModifier

Java mod listed for Minecraft 1.7–1.9. Downloads from the MC Java Mods app on Android.

⬇ Download on Spigot
[​IMG]
​
HungerModifier
A tool that allows you (or your plugin) to change how hunger mechanics work on your server.

Features
  • In-game commands that let you change settings on the fly.
  • Very organized and easy-to-use configuration.
  • Very light-weight plugin.
  • Disable hunger as a whole.
  • Change the gain amount of each type of food.
  • Change the multiplier by which hunger is lost.
  • API support.
Command(s), Flag(s), and Permission(s)​
[​IMG]
Only the hm.set permission is required to use the in-game commands.

Upcoming features
API
Spoiler: API
setModifierEnabled
Code (Text):
public static void setModifierEnabled(boolean value, boolean update)
Description:
Sets the state of the plugin.
Parameters:
value - true if you wish to have hunger modified.
update - true if you wish to update the configuration.
setLossMultiplier
Code (Text):
public static void setLossMultiplier(int multiplier, boolean update)
Description:
Sets the multiplier of hunger loss.
Parameters:
multiplier - the value by which to multiply a player's hunger loss.
update - true if you wish to update the configuration.
Configuration
Spoiler: Default configuration
Code (Text):
settings:
  # Should the modifier even function?
  modifier-enabled: true
  # Should hunger even function?
  hunger-enabled: true
  # The value by which to multiply hunger loss.
  loss-multiplier: 1
  # The gain amount of each food item.
  amounts:
    COOKED_BEEF: 8
    RAW_BEEF: 3
    GRILLED_PORK: 8
    PORK: 3
    COOKED_CHICKEN: 5
    RAW_CHICKEN: 2
    COOKED_MUTTON: 6
    MUTTON: 2
    COOKED_RABBIT: 5
    RABBIT: 3
    COOKED_FISH: 5
    RAW_FISH: 2
    COOKED_FISH_SALMON: 6
    RAW_FISH_SALMON: 2
    RAW_FISH_PUFFERFISH: 1
    RAW_FISH_CLOWNFISH: 1
    APPLE: 4
    GOLDEN_APPLE: 4
    CARROT: 3
    GOLDEN_CARROT: 6
    BREAD: 5
    COOKIE: 2
    MELON: 2
    BAKED_POTATO: 5
    POTATO: 1
    POISONOUS_POTATO: 2
    MUSHROOM_SOUP: 6
    RABBIT_STEW: 10
    PUMPKIN_PIE: 8
    CHORUS_FRUIT: 4
    CAKE: 2
    BEETROOT: 1
    BEETROOT_SOUP: 6
    ROTTEN_FLESH: 4
    SPIDER_EYE: 2
  misc:
    # Should the player be poisoned by eating a spider eye?
    poison-from-spider-eye: true
    # Should the player be poisoned by eating a poisoned potato?
    poison-from-potato: true
    # Should the player have the hunger effect by eating rotten flesh?
    hunger-from-flesh: true
  # Default values. Don't touch these unless you know what you're doing.
  defaults:
    COOKED_BEEF: 8
    RAW_BEEF: 3
    GRILLED_PORK: 8
    PORK: 3
    COOKED_CHICKEN: 5
    RAW_CHICKEN: 2
    COOKED_MUTTON: 6
    MUTTON: 2
    COOKED_RABBIT: 5
    RABBIT: 3
    COOKED_FISH: 5
    RAW_FISH: 2
    COOKED_FISH_SALMON: 6
    RAW_FISH_SALMON: 2
    RAW_FISH_PUFFERFISH: 1
    RAW_FISH_CLOWNFISH: 1
    APPLE: 4
    GOLDEN_APPLE: 4
    CARROT: 3
    GOLDEN_CARROT: 6
    BREAD: 5
    COOKIE: 2
    MELON: 2
    BAKED_POTATO: 5
    POTATO: 1
    POISONOUS_POTATO: 2
    MUSHROOM_SOUP: 6
    RABBIT_STEW: 10
    PUMPKIN_PIE: 8
    CHORUS_FRUIT: 4
    CAKE: 2
    BEETROOT: 1
    BEETROOT_SOUP: 6
    ROTTEN_FLESH: 4
    SPIDER_EYE: 2
messages:
  # Should messages be broadcast?
  broadcast-messages: false
  # The message displayed when you have updated the multiplier.
  modifier-set: '&cThe hunger multiplier has been set to %value%.'
  # The message displayed when the modifier has been enabled.
  modifier-enabled: '&cThe hunger modifier has been enabled.'
  # The message displayed when the modifier has been disabled.
  modifier-disabled: '&cThe hunger modifier has been disabled.'
  # The message displayed when the player does not have permission.
  no-permission: '&cYou do not have permission to do this.'
 
Changelog
Spoiler: Changelog
Version 1.1
  • Added ability to change the gain amount of each food
  • Changed methods in API
  • Fixed configuration error
Version 1.0
  • Initial release

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

HungerModifier is a free Minecraft Java mod. Compatible with Minecraft 1.7, 1.9. Downloaded 391 times (via Spigot). Download it and open it directly in the game.

Explore more