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
%consumefood_foodlevel% = Player's current custom food level
%consumefood_max_foodlevel% = Maximum custom food level
------------------------------------------------------------------------------ How to install - Just put it in the plugins folder and run the server -------------------------------------------------------------------------------
Plugin commands All permissions default to op
Code (Text):
(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 level
# 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
#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.