[Discontinue]ConsumeFood [1.16-1.20.x] icon

[Discontinue]ConsumeFood [1.16-1.20.x] -----

Plugin for minecraft food




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



Code (YAML):
Compatibility :

  ItemsAdder
:
    Enabled
: false
    Ignore-Item
: true #If true, Ignore items created with ItemsAdder

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/YscANyuxrH
----------, Oct 22, 2023

Update

- Removed debug message for food diet
- Add command for food diet penalty

Code (YAML):
/consumefood penalty get <player >
(consumefood.command.penalty )





Join Discord if you need help:
https://discord.gg/YscANyuxrH
----------, May 13, 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

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/YscANyuxrH
----------, May 11, 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

Code (YAML):
simple : Get only the basics like displayname, lore, custommodeldata, enchant, etc.

all
: Get all data

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/YscANyuxrH
----------, Apr 17, 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.)


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
Code (YAML):
CustomSetting :
 ReturnBowlOrBottle:true
Code (YAML):
Permission-Error : "&cYou don't have permission"



Join Discord if you need help:
https://discord.gg/YscANyuxrH

----------, Apr 8, 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%

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/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:
Code (YAML):
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:
Code (YAML):
#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>."



Join Discord if you need help:
https://discord.gg/YscANyuxrH
----------, Apr 1, 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/YscANyuxrH
----------, Mar 19, 2023

Update

- Fixed custom food not working when quest-or-achievement compatibility was true




Join Discord if you need help:
https://discord.gg/YscANyuxrH
----------, Sep 7, 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


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/YscANyuxrH
----------, Sep 6, 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 Editor
----------, Aug 17, 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/YscANyuxrH
----------, Aug 13, 2022

Update "/consumefood get" command

- Add "/consumefood get <internal_name> <amount> <player>" command
(<player> is optional)
----------, Jun 24, 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


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
 

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/YscANyuxrH
----------, Jun 23, 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

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/YscANyuxrH
----------, Feb 26, 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>)

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/YscANyuxrH
----------, Jan 30, 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/config.yml

If you need help, please join discord.
https://discord.gg/YscANyuxrH
----------, Jan 12, 2022

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/YscANyuxrH
----------, Dec 8, 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/config.yml
----------, Dec 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/config.yml


Caution
- If the contents of the config are not changed, the plugin does not work properly
----------, Dec 6, 2021

Resource Information
Author:
----------
Total Downloads: 4,532
First Release: Dec 5, 2021
Last Update: Oct 22, 2023
Category: ---------------
All-Time Rating:
10 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings