ModsJava
HungerModifier
Java mod listed for Minecraft 1.7–1.9. Downloads from the MC Java Mods app on Android.
⬇ Download on Spigot
HungerModifier
A tool that allows you (or your plugin) to change how hunger mechanics work on your server.
Features
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.
- At the end of any command, you can use "-u" so that the configuration won't be updated with that value.
Upcoming features
- Change the gain amount of each type of food.
- Disable hunger as a whole.
- Delayed/Timed hunger mechanics.
- Hunger modes (good for KitPvP servers)
Spoiler: API
Configuration
setModifierEnabled
setLossMultiplier
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.
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.
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.
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.
Spoiler: Default configuration
Changelog
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.'
# 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.'
Spoiler: Changelog
Version 1.1
- Added ability to change the gain amount of each food
- Changed methods in API
- Fixed configuration error
- Initial release
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.7, 1.9
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
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.