[D
2.2latestUpdateOct 22, 2023 Update - Change CustomFoodLevel default value to false - Add potion material to BottleMaterial - Add exception for execute command(customFood and vanillaFood) - Add PotionColor option to customfood (hex color) - Add HidePotionEffect option to customfood - Add Unstackable option to customfood - Add message disable configuration - Add hex color support for custom item names and lore. - Add ItemsAdder support - Add option to ignore items created with ItemsAdder - Fixed an issue where the player's hunger was not reduced when customfoodlevel was disabled .SpoilerTarget">Spoiler: config.yml Code (YAML): Compatibility : ItemsAdder: Enabled : false Ignore-Item : true #If true, Ignore items created with ItemsAdder .SpoilerTarget">Spoiler: message.yml Code (YAML): Customfood-GlobalCooldown: Enabled : false Message : "Time left: <customfood_global_timeleft>" Customfood-PersonalCooldown: Enabled : false Message : "<customfood_name> &fTime left: <customfood_personal_timeleft>" VanillaFood-GlobalCooldown: Enabled : false Message : "Time left: <vanilla_global_timeleft>" VanillaFood-PersonalCooldown: Enabled : false Message : "<food_name> Time left: <vanilla_personal_timeleft>" Max-foodlevel: Enabled : false Message : "&aFood level reached the maximum value of <max_foodlevel>." Max-saturation: Enabled : false Message : "&aSaturation reached the maximum value of <max_saturation>." Permission-Error: Enabled : false Message : "&cYou don't have permission" Join Discord if you need help: https://discord.gg/YscANyuxrH2.1.1UpdateMay 13, 2023 Update - Removed debug message for food diet - Add command for food diet penalty .SpoilerTarget">Spoiler: command and permission Code (YAML): /consumefood penalty get <player > (consumefood.command.penalty ) Join Discord if you need help: https://discord.gg/YscANyuxrH2.1UpdateMay 11, 2023 Update - Add inspection for vanilla food(Possibly no longer change saturation for custom items made of edible materials) - Add 'DisableCrafting' option for custom food - Add 'DisableSmelting' option for custom food - Add 'DisableAnvil' option for custom food - Add 'DisableEnchant' option for custom food - If Max-Consumable is true, when the player's hunger is full, vanilla food (e.g. carrot, potato) will be planted instead of consumed when right click farmland. - Fixed an issue where the edit gui was empty if there was no uuid when setting the material to player_head - Add sound option to custom food - Add food diet feature .SpoilerTarget">Spoiler: Configuration added to config.yml Code (YAML): # Food diet # Including custom food FoodDiet: Enabled : false RecoveryPenaltyCount : 1 # Amount of penalty to be reduced when eating different types of food MaxPenaltyCount : 5 Penalty: 0 : # first time eating FoodLevel : 0 #reduce percent Saturation : 0 #reduce percent 1: FoodLevel : 0 Saturation : 0.5 2: FoodLevel : 0.5 Saturation : 0.5 3: FoodLevel : 0.5 Saturation : 0.5 PotionEffect : - poison:1:5:0.5 4: FoodLevel : 0.75 Saturation : 0.75 PotionEffect : - poison:1:5:0.75 5: FoodLevel : 1 Saturation : 1 PotionEffect : - poison:1:5:1 - wither:1:5:1 Join Discord if you need help: https://discord.gg/YscANyuxrH2.0.2UpdateApr 17, 2023 Update - Added enchantment configuration for custom food - Change the execute commands of 'Command' to be executed sequentially - Added permission to edit custom food - Add custom item import command - Add import command permission - Add player inventory item update command for custom food - Add command permission for updateitem .SpoilerTarget">Spoiler: Import type Code (YAML): simple : Get only the basics like displayname, lore, custommodeldata, enchant, etc. all : Get all data .SpoilerTarget">Spoiler: Commands and permissions Code (YAML): Command : - /consumefood import <internalname > - /consumefood updateitem [optional:<player>, all ] Permission : - consumefood.customfood.create - consumefood.customfood.edit.<internalname > - consumefood.customfood.get.<internalname > - consumefood.customfood.remove.<internalname > - consumefood.command.import - consumefood.command.updateitem Join Discord if you need help: https://discord.gg/YscANyuxrH2.0.1UpdateApr 8, 2023 Update - Add bstats for plugin - Add plugin update checker - Add permission for each command - Add configuration in message.yml - Add an option to get the bowl or bottle back when eating food related to the bottle or bowl (New configurations are added automatically, but if they are not added, please add them manually.) .SpoilerTarget">Spoiler: command permission Code (YAML): (Default : op ) consumefood.command.help consumefood.command.reload consumefood.command.edit consumefood.command.get consumefood.command.hunger consumefood.command.customhunger consumefood.command.saturation .SpoilerTarget">Spoiler: config.yml Code (YAML): CustomSetting : ReturnBowlOrBottle:true .SpoilerTarget">Spoiler: message.yml Code (YAML): Permission-Error : "&cYou don't have permission" Join Discord if you need help: https://discord.gg/YscANyuxrH2.0UpdateApr 1, 2023 Update For servers where paper-api is not available(ex. spigot server), NBTAPI plugin is required. - This is an important update - The plugin code has been rewritten. - Delete or backup the previous config.yml, customfood.yml, message.yml and then create a new one. - Configuration in config.yml has changed to be easier to use than before. - Previous /hunger, /saturation commands changed to /consumefood hunger, /consumefood saturation - Added '/consumefood customhunger' command - Support for placeholders in commands and messages - If the PlaceholderApi plugin is on the server, you can use %consumefood_foodlevel% and %consuemfood_max_foodlevel% .SpoilerTarget">Spoiler: new config.yml Code (YAML): 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 # 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/potio… # # 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: FoodL1.9.2Bug FixMar 19, 2023 Update - Fixed an issue generating duplicate uuids (player_head) P.S. Perhaps there will be big changes in the next update Join Discord if you need help: https://discord.gg/YscANyuxrH1.9.1Bug fixedSep 7, 2022 Update - Fixed custom food not working when quest-or-achievement compatibility was true Join Discord if you need help: https://discord.gg/YscANyuxrH1.9UpdateSep 6, 2022 Update This version will change the version of config.yml - Added compatibility settings for quest or achievements to config.yml - Added support for quest and achievements for vanilla food .SpoilerTarget">Spoiler: Added configuration Code (Text): # Plugin compatibility (Server restart required for change) Compatibility: Quest-or-Achievement: false Hopefully this update will support quest or achievements as normal Join Discord if you need help: https://discord.gg/YscANyuxrH1.8.1UpdateAug 17, 2022 Fixes - Fix PlayerHead Texture not working in Gui Editor - Fixed an error when setting the material to player_head Update - Changed the PlayerHead Texture to be displayed as a head texture instead of a material in the Gui Editor1.8ConsumeFood UpdateAug 13, 2022 Update - Add Gui editor support for Custom Food - Add '/consumefood edit' command - '/hunger /saturation' command can be executed from the console If there are any errors or features that you would like to be added, please report them to Discord or Discussion or Github issue. Join Discord if you need help: https://discord.gg/YscANyuxrH1.7.1Simple UpdateJun 24, 2022 Update "/consumefood get" command - Add "/consumefood get <internal_name> <amount> <player>" command (<player> is optional)1.7version 1.7Jun 23, 2022 The update was late because I was making an app to submit to the final exam of the university Update: - 1.19 version support - Added cooldown configuration (Available Type: global, personal, disable) - All materials supported in custom food - Add /consumefood help command This version adds configuration to config.yml and customfood.yml How to configure cooldown Cooldown is disabled by default .SpoilerTarget">Spoiler: config.yml Code (Text): # 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: Type: 'disable' Global_Cooldown: 3 Buff-Debuff_Food: ENCHANTED_GOLDEN_APPLE: FoodLevel: 4 Saturation: 9.6 PotionEffect: - ABSORPTION:4:120 - REGENERATION:2:20 - FIRE_RESISTANCE:1:300 - RESISTANCE:1:300 Chance: 1 Cooldown: 10 Food: APPLE: FoodLevel: 4 Saturation: 2.4 Cooldown: 8 BREAD: FoodLevel: 2 Saturation: 1 Cooldown: 3 .SpoilerTarget">Spoiler: customfood.yml Code (Text): # 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 Custom_Food_Cooldown: Type: 'disable' Global_Cooldown: 3 Custom_Food: food_1: material: APPLE name: '&atest food 1' lore: - '&bTest 1' - '&cTest 1.1' foodlevel: 1 saturation: 1.1 Cooldown: 5 cooldown_food: material: STONE name: cooldown food foodlevel: 2 Cooldown: 3 Join Discord if you need help: https://discord.gg/YscANyuxrH1.6Added support for custom model dataFeb 26, 2022 This version has only a few updates - Supports custom model data in custom food. - Fixed incorrect potiontype.yml (Delete potiontype.yml and restart the plugin) - Fixed a problem where null was generated when a character was entered in <vaule> when using /hunger and /saturation .SpoilerTarget">Spoiler: How to use custom model data Code (YAML): # You can use data for custom model data Custom_Food: food_4: material : APPLE data : 1 name : '&ctest food 4' lore : - '&aTest 4' - '&fTest 4.4' foodlevel : 4 saturation : 4.4 Join Discord if you need help: https://discord.gg/YscANyuxrH1.5Consume Food v1.5 / Add Custom FoodJan 30, 2022 Caution - If you use player_head for material in custom food, you need to use paper server. (Custom food made of material player_head uses paper-api) - Custom food added. (The material of custom food is currently only supported for player_head or edible food.) - Custom food can be create at customfood.yml - Added consumefood command to get custom food (/consumefood get <internal_name> <amount>) .SpoilerTarget">Spoiler: How to create Once the customfood.yml file is created, There is an example custom food by default Code (Text): Custom_Food: internal_name: (The internal name is what is used to get it with the command) material: (material sets the material of the custom food. The material of custom food is currently only supported for player_head or edible food) value: (Required if material is player_head. The value can be found here: https://minecraft-heads.com/custom-heads) name: (name is the item name of the custom food. You can use color code) lore: (lore is the lore of custom food. You can use color code) foodlevel: (foodlevel sets the food level of custom food) saturation: (saturation sets the saturation of custom food) potion-effect: (potion-effect applies the potion effect of custom food) Chance: (Chance is the chance of apply of the potion-effect) Join the discord if you need help: https://discord.gg/YscANyuxrH1.4Consume Food Update 1.4Jan 12, 2022 This version changes the old config to old_config and creates a new config. Just in case, please backup the config file before updating the version. - Correct some typos in config. - Remove the enable option from MaxSetting in config - Add Max_Consumable Configuration in Config. Max_Consumable allows you to eat with a right click when the food level is above 20. - This version makes a message.yml. - Remove some unnecessary codes. - Change the food level and saturation to the maximum value of config using the command. Default Config = https://github.com/msicraft/ConsumeFood/blob/master/src/c… If you need help, please join discord. https://discord.gg/YscANyuxrH1.3Consume Food Update v1.3Dec 8, 2021 Probably 1.15 and 1.16 version support. Plugin Update Content - Add config-version to config.yml - Add Buff-Debuff_Food configuration to config.yml. This includes enchanted_golden_apple, golden_apple, pufferfish, poisonous_potato, rotten_fresh, spider_eye - Add golden_carrot to Food configuration in config.yml - Added /gethunger and /getsaturation commands (If you want, you can apply the potion effect by moving the Food configuration to the Buff-Debuff_Food configuration in config.yml.) ----------------------------------------------------------------------------------------------- Join Discord if you need help: https://discord.gg/YscANyuxrH1.2Consume Food Update v1.2Dec 6, 2021 There was a mistake because it was the first plugin I made. The size of ConsumeFood.jar was large because spigot-api was included in the process of compiling the plugin from the project. Fixed this issue in this version. I'm sorry for causing you any trouble. Update - Added configuration to set maximum FoodLevel and Saturation in config - Please add MaxSetting configuration to config like the following code - If the MaxSetting configuration does not exist, it will be applied as a default value. (Both FoodLevel and Saturation default to 20) Code (YAML): MaxSetting: Enabled : true FoodLevel : 20 Saturation : 20.0 Food: APPLE : ... ... ... - You can check the entire configuration of config.yml on github. Link: https://github.com/msicraft/ConsumeFood/blob/master/src/c…1.1Consume Food Version UpdateDec 6, 2021 Plugin Version Update 1.0 to 1.1 Update Notice - Changed the main code of the plugin. - After backing up the contents of the plugin's config, create a new config. Or, change the contents of config to the same as Config on Github. Github Link: https://github.com/msicraft/ConsumeFood/blob/master/src/c… Caution - If the contents of the config are not changed, the plugin does not work properly1.0Dec 5, 2021
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