Java 11 or higher is required
NBTAPI plugin is required for servers (ex. spigot server) where paper-api is not available.
[Not required for servers where paper-api is available]
Plugin Description
- You can change foodlevel and saturation of food
- You can add potion effects and commands to be executed when eating food
- You can change the player's food level or saturation with commands
- You can add custom food (In-game editor support)
- You can set custom foodlevel
- Compatibility support for quests or achievements
- PAPI Placeholder support
Placeholders for plugins
%consumefood_foodlevel% = Player's current custom food level
%consumefood_max_foodlevel% = Maximum custom food level
Gui editor for custom food

------------------------------------------------------------------------------
How to install
- Just put it in the plugins folder and run the server
-------------------------------------------------------------------------------
Plugin commands
All permissions default to op
Command and persmission
(consumefood.command.help)
/consumefood help : Show the list of commands of the [ConsumeFood] plugin
(consumefood.command.reload)
/consumefood reload : Reload the plugin config files
(consumefood.command.edit)
/consumefood edit : Open Custom Food Edit Gui
(consumefood.command.get)
/consumefood get <player> <internalname> <amount> : Give custom food to <player>
(consumefood.command.hunger)
/consumefood hunger set <player> <amount> : Set player food level
/consumefood hunger get <player> : Get player food level
(consumefood.command.saturation)
/consumefood saturation set <player> <amount> : Set player saturation
/consumefood saturation get <player> : Get player saturation
(consumefood.command.customhunger)
/consumefood customhunger set <player> <amount> : Set player custom food level
/consumefood customhunger get <player> : Get player custom food leveldefault config.yml
config-version: 5 # Don't Touch This
# Plugin compatibility (Server restart required for change)
Compatibility:
PlaceholderAPI: true
Quest-or-Achievement: false
# Changing this doesn't change the hunger bar.
# If 'Enabled-CustomFoodLevel' is true, can change the player's max foodlevel.
# Available placeholder = [ %consumefood_foodlevel%, %consumefood_max_foodlevel% ]
#
# If 'Sync-CustomFoodLevel' is true, the player's foodlevel and custom foodlevel will be synchronized. ('Sync-CustomFoodLevel' recommends true)
# For example, if the custom foodlevel is 10/40(value/max), the player's foodlevel will be 5 | 15/40 = 8
#
# 'Sprint-FoodLevel' is the minimum foodlevel at which the player can run.
# 'Sprint-FoodLevel' is applied only when 'Sync-CustomFoodLevel' is true.
CustomSetting:
Enabled-CustomFoodLevel: true
Sync-CustomFoodLevel: true
Max-FoodLevel: 20
Max-Saturation: 10
Sprint-FoodLevel: 6
Return-BowlOrBottle: true
# If 'Max-Consumable' is true, the player can eat food even if the player's hunger bar is full..
# But this doesn't play the food eating animation.
Max-Consumable:
Enabled: false
# Available Type values: [global, personal, disable]
# If Type is global, all food cooldown is applied as global_cooldown value
# If Type is personal, the cooldown is applied for each food
# If Type is disable, cooldown is disabled
Cooldown-Setting:
Type: 'disable'
Global_Cooldown: 3
#When the type is 'personal' in 'Cooldown-Setting', the cooldown value of this section is applied
#
# PotionEffect = <potionType>:<level>:<duration>:<chance>
# https://hub.spigotmc.org/javadocs/spigot/org/bukkit/potion/PotionEffectType.html
#
# Command = <executeType>:<command> | Available executeType = [console, player]
# Can use placeholders if 'PlaceholderAPI' compatibility is true
#
Food:
APPLE:
FoodLevel: 4
Saturation: 2.4
Cooldown: 0
PotionEffect:
Command:
BAKED_POTATO:
FoodLevel: 5
Saturation: 6
Cooldown: 0
PotionEffect:
Command:
BEEF:
FoodLevel: 3
Saturation: 1.8
Cooldown: 0
PotionEffect:
Command:
BEETROOT:
FoodLevel: 1
Saturation: 1.2
Cooldown: 0
PotionEffect:
Command:
BEETROOT_SOUP:
FoodLevel: 6
Saturation: 7.2
Cooldown: 0
PotionEffect:
Command:
BREAD:
FoodLevel: 5
Saturation: 6
Cooldown: 0
PotionEffect:
Command:
CARROT:
FoodLevel: 3
Saturation: 3.6
Cooldown: 0
PotionEffect:
Command:
CHICKEN:
FoodLevel: 2
Saturation: 1.2
Cooldown: 0
PotionEffect:
Command:
COD:
FoodLevel: 2
Saturation: 0.4
Cooldown: 0
PotionEffect:
Command:
COOKED_BEEF:
FoodLevel: 8
Saturation: 12.8
Cooldown: 0
PotionEffect:
Command:
COOKED_CHICKEN:
FoodLevel: 6
Saturation: 7.2
Cooldown: 0
PotionEffect:
Command:
COOKED_COD:
FoodLevel: 5
Saturation: 6
Cooldown: 0
PotionEffect:
Command:
COOKED_MUTTON:
FoodLevel: 6
Saturation: 9.6
Cooldown: 0
PotionEffect:
Command:
COOKED_PORKCHOP:
FoodLevel: 8
Saturation: 12.8
Cooldown: 0
PotionEffect:
Command:
COOKED_RABBIT:
FoodLevel: 5
Saturation: 6
Cooldown: 0
PotionEffect:
Command:
COOKED_SALMON:
FoodLevel: 6
Saturation: 9.6
Cooldown: 0
PotionEffect:
Command:
COOKIE:
FoodLevel: 2
Saturation: 0.5
Cooldown: 0
PotionEffect:
Command:
DRIED_KELP:
FoodLevel: 1
Saturation: 0.6
Cooldown: 0
PotionEffect:
Command:
ENCHANTED_GOLDEN_APPLE:
FoodLevel: 4
Saturation: 9.6
Cooldown: 0
PotionEffect:
- ABSORPTION:4:120:1
- REGENERATION:2:20:1
- FIRE_RESISTANCE:1:300:1
- RESISTANCE:1:300:1
Command:
GLOW_BERRIES: # Only available 1.17+
FoodLevel: 2
Saturation: 0.4
Cooldown: 0
PotionEffect:
Commands:
GOLDEN_APPLE:
FoodLevel: 4
Saturation: 9.6
Cooldown: 0
PotionEffect:
- ABSORPTION:1:120:1
- REGENERATION:2:5:1
Command:
GOLDEN_CARROT:
FoodLevel: 6
Saturation: 14.4
Cooldown: 0
PotionEffect:
Command:
HONEY_BOTTLE:
FoodLevel: 6
Saturation: 1.2
Cooldown: 0
PotionEffect:
Command:
MELON_SLICE:
FoodLevel: 2
Saturation: 1.2
Cooldown: 0
PotionEffect:
Command:
MUSHROOM_STEW:
FoodLevel: 6
Saturation: 7.2
Cooldown: 0
PotionEffect:
Command:
MUTTON:
FoodLevel: 2
Saturation: 1.2
Cooldown: 0
PotionEffect:
Command:
POISONOUS_POTATO:
FoodLevel: 2
Saturation: 1.2
Cooldown: 0
PotionEffect:
- POISON:2:5:1
Command:
PORKCHOP:
FoodLevel: 3
Saturation: 0.6
Cooldown: 0
PotionEffect:
Command:
POTATO:
FoodLevel: 1
Saturation: 0.6
Cooldown: 0
PotionEffect:
Command:
PUFFERFISH:
FoodLevel: 1
Saturation: 0.2
Cooldown: 0
PotionEffect:
- HUNGER:3:15:1
- POISON:2:60:1
- NAUSEA:1:15:1
Command:
PUMPKIN_PIE:
FoodLevel: 8
Saturation: 4.8
Cooldown: 0
PotionEffect:
Command:
RABBIT:
FoodLevel: 2
Saturation: 1.2
Cooldown: 0
PotionEffect:
Command:
RABBIT_STEW:
FoodLevel: 10
Saturation: 12
Cooldown: 0
PotionEffect:
Command:
ROTTEN_FLESH:
FoodLevel: 4
Saturation: 0.8
Cooldown: 0
PotionEffect:
- HUNGER:1:30:0.8
Command:
SALMON:
FoodLevel: 2
Saturation: 0.2
Cooldown: 0
PotionEffect:
Command:
SPIDER_EYE:
FoodLevel: 2
Saturation: 3.2
Cooldown: 0
PotionEffect:
- POISON:1:4:1
Command:
SWEET_BERRIES:
FoodLevel: 1
Saturation: 0
Cooldown: 0
PotionEffect:
Command:
TROPICAL_FISH:
FoodLevel: 1
Saturation: 0.2
Cooldown: 0
PotionEffect:
Command:default customfood.yml
config-version: 3 # Don't Touch This
CustomFood-Max-Consumable:
Enabled: false
CustomFood-Disable-Block_Place:
Enabled: true
CustomFood-Cooldown-Setting:
Type: 'disable'
Global_Cooldown: 3
CustomFood:
food_1:
Material: APPLE
Name: "&afood 1"
Data: 1
Lore:
- '&cTest Lore'
FoodLevel: 4
Saturation: 4
Cooldown: 0
PotionEffect:
- hunger:1:10:0.5
Command:
- player:help
- console:msg %player_name% test
food_2:
Material: STONE
Name: "&afood 2"
Lore:
- '&eTest Lore 2'
FoodLevel: 4
Saturation: 1
Cooldown: 0
PotionEffect:
- REGENERATION:1:10:0.5
- hunger:1:10:1
Command:
food_3:
Material: player_head
TextureValue: eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNjhhMGJhNzhiODM1ZWM4NDYxNzUwZjdlYjkwYjg4OWRlMDkzMmU4YWI4N2I5YTdhZDc2YzM0M2EzMjI3YzA4MyJ9fX0=
Name: "&afood 3"
Lore:
- '&7Test Lore 3'
Foodlevel: 4
Saturation: 2
Cooldown: 0
PotionEffect:
- REGENERATION:1:10:1
Command:default message.yml
#If you don't need a message, leave a blank. Placeholders are available (ex. %player_name%)
Customfood-GlobalCooldown: "Time left: <customfood_global_timeleft>"
Customfood-PersonalCooldown: "<customfood_name> &fTime left: <customfood_personal_timeleft>"
VanillaFood-GlobalCooldown: "Time left: <vanilla_global_timeleft>"
VanillaFood-PersonalCooldown: "<food_name> Time left: <vanilla_personal_timeleft>"
Max-foodlevel: "&aFood level reached the maximum value of <max_foodlevel>."
Max-saturation: "&aSaturation reached the maximum value of <max_saturation>."
Permission-Error: "&cYou don't have permission"If there are any errors or features that you would like to be added, please report them to Discord or Discussion or Github issue.
Dev builds are uploaded on the Discord.
Join Discord if you need help:
https://discord.gg/YscANyuxrH
I will try to add the features we want to add when the time comes.
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
26.2MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.9MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
4.7MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta