Java 16 or higher is required
Plugin Description
- Can change the foodlevel and saturation of food
- Can set PotionEffect and ExecuteCommand that are applied when eating food
- Can set the player's foodlevel and saturation with commands
- Supports in-game editing (VanillaFood, CustomFood)
- Supports commands for migrating from
ConsumeFood to VanillaFood and CustomFood
- Supports hex color
Supported Plugin
-
PlaceholderAPI
Caution - Does not include all features of ConsumeFood
Spoiler: FoodOptions
Code (YAML):
- Material
- TextureValue
- DisplayName
- CustomModelData
- Lore
- PotionEffect
- Command
- FoodLevel
- Saturation
- CoolDown
- Enchant
- HideEnchant
- DisableCrafting
- DisableSmelting
- DisableAnvil
- DisableEnchant
- Sound
- PotionColor
- HidePotionEffect
- HideAdditionalToolTip
( + 1.20.5
)
- Unstackable
- InstantEat
- AlwaysEat
( + 1.20.5
)
- EatSeconds
( + 1.20.5
)
- MaxStackSize
( + 1.20.5
)
Spoiler: Command and Permission
Code (YAML):
- /consumefood2 reload
( consumefood2.command.reload
)
- /consumefood2 foodlevel get <player>
( consumefood2.command.foodlevel.get
)
- /consumefood2 foodlevel set <player>
( consumefood2.command.foodlevel.set
)
- /consumefood2 foodlevel add <player>
( consumefood2.command.foodlevel.add
)
- /consumefood2 saturation get <player>
( consumefood2.command.saturation.get
)
- /consumefood2 saturation set <player>
( consumefood2.command.saturation.set
)
- /consumefood2 saturation add <player>
( consumefood2.command.saturation.add
)
- /consumefood2 vanillafood edit
( consumefood2.command.vanillafood.edit
)
- /consumefood2 vanillafood give <material> <amount> <player>
( consumefood2.command.vanillafood.give
)
- /consumefood2 customfood edit
( consumefood2.command.customfood.edit
)
- /consumefood2 customfood give <internalname> <amount> <player>
( consumefood2.command.customfood.give
)
- /consumefood2 customfood create <internalname>
( consumefood2.command.customfood.create
)
- /consumefood2 customfood delete <internalname>
( consumefood2.command.customfood.delete
)
- /consumefood2 migrate customfood
[ all-customfood, internalName
]
( consumefood2.command.migrate.customfood
)
- /consumefood2 migrate customfood
[ all-vanillafood, material
]
( consumefood2.command.migrate.vanillafood
)
Spoiler: config.yml
Code (YAML):
config-version
: 1
Compatibility :
PlaceholderAPI
: true
VanillaFood-Settings :
Cooldown
:
#Available Type values: [global, personal, disable]
Type
: 'disable'
Global-Cooldown
: 3
CustomFood-Settings :
Cooldown
:
#Available Type values: [global, personal, disable]
Type
: 'disable'
Global-Cooldown
: 3
PlayerHead :
DisablePlace
: true
Spoiler: CustomFood.yml
Code (YAML):
Food :
test :
Material
: APPLE
DisplayName
:
"&ctest"
CustomModelData
: 1
Lore
: - '
#3081e6test lore'
FoodLevel
: 4
Saturation
: 2.4
CoolDown
: 0
PotionEffect
: - saturation:1:100:0.5
Command
: - player:help
test2 :
Material
: PLAYER_HEAD
DisplayName
:
"&atest 2 player_head"
TextureValue
: eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNjhhMGJhNzhiODM1ZWM4NDYxNzUwZjdlYjkwYjg4OWRlMDkzMmU4YWI4N2I5YTdhZDc2YzM0M2EzMjI3YzA4MyJ9fX0=
Lore
: - '
#3081e6test lore 2'
FoodLevel
: 6
Saturation
: 3.6
test3 :
Material
: BREAD
DisplayName
:
"&atest 3"
InstantEat
: true
PotionEffect
: - hunger:2:60:0.75
test4 :
Material
: CARROT
DisplayName
:
"&atest 4"
FoodLevel
: 4
AlwaysEat
: true
Command
: - console:msg
%player_name% test
Spoiler: VanillaFood.yml
Code (YAML):
Food :
APPLE :
FoodLevel
: 4
Saturation
: 2.4
CoolDown
: 0
InstantEat
: false
PotionEffect :
Command :
BAKED_POTATO :
FoodLevel
: 5
Saturation
: 6
InstantEat
: false
PotionEffect :
Command :
BEEF :
FoodLevel
: 3
Saturation
: 1.8
InstantEat
: false
PotionEffect :
Command :
BEETROOT :
FoodLevel
: 1
Saturation
: 1.2
InstantEat
: false
PotionEffect :
Command :
BEETROOT_SOUP :
FoodLevel
: 6
Saturation
: 7.2
InstantEat
: false
PotionEffect :
Command :
BREAD :
FoodLevel
: 5
Saturation
: 6
InstantEat
: false
PotionEffect :
Command :
CARROT :
FoodLevel
: 3
Saturation
: 3.6
InstantEat
: false
PotionEffect :
Command :
CHICKEN :
FoodLevel
: 2
Saturation
: 2.1
InstantEat
: false
PotionEffect :
Command :
COD :
FoodLevel
: 2
Saturation
: 0.4
InstantEat
: false
PotionEffect :
Command :
COOKED_BEEF :
FoodLevel
: 8
Saturation
: 12.8
InstantEat
: false
PotionEffect :
Command :
COOKED_CHICKEN :
FoodLevel
: 6
Saturation
: 7.2
InstantEat
: false
PotionEffect :
Command :
COOKED_COD :
FoodLevel
: 5
Saturation
: 6
InstantEat
: false
PotionEffect :
Command :
COOKED_MUTTON :
FoodLevel
: 6
Saturation
: 9.6
InstantEat
: false
PotionEffect :
Command :
COOKED_PORKCHOP :
FoodLevel
: 8
Saturation
: 12.8
InstantEat
: false
PotionEffect :
Command :
COOKED_RABBIT :
FoodLevel
: 5
Saturation
: 6
InstantEat
: false
PotionEffect :
Command :
COOKED_SALMON :
FoodLevel
: 6
Saturation
: 9.6
InstantEat
: false
PotionEffect :
Command :
COOKIE :
FoodLevel
: 2
Saturation
: 0.5
InstantEat
: false
PotionEffect :
Command :
DRIED_KELP :
FoodLevel
: 1
Saturation
: 0.6
InstantEat
: false
PotionEffect :
Command :
ENCHANTED_GOLDEN_APPLE :
FoodLevel
: 4
Saturation
: 9.6
InstantEat
: false
PotionEffect
: - ABSORPTION:4:120:1
- REGENERATION:2:20:1
- FIRE_RESISTANCE:1:300:1
- RESISTANCE:1:300:1
Command :
GLOW_BERRIES :
FoodLevel
: 2
Saturation
: 0.4
InstantEat
: false
PotionEffect :
Command :
GOLDEN_APPLE :
FoodLevel
: 4
Saturation
: 9.6
PotionEffect
: - ABSORPTION:1:120:1
- REGENERATION:2:5:1
Command :
GOLDEN_CARROT :
FoodLevel
: 6
Saturation
: 14.4
InstantEat
: false
PotionEffect :
Command :
HONEY_BOTTLE :
FoodLevel
: 6
Saturation
: 1.2
InstantEat
: false
PotionEffect :
Command :
MELON_SLICE :
FoodLevel
: 2
Saturation
: 1.2
InstantEat
: false
PotionEffect :
Command :
MUSHROOM_STEW :
FoodLevel
: 6
Saturation
: 7.2
InstantEat
: false
PotionEffect :
Command :
MUTTON :
FoodLevel
: 2
Saturation
: 1.2
InstantEat
: false
PotionEffect :
Command :
POISONOUS_POTATO :
FoodLevel
: 2
Saturation
: 1.2
PotionEffect
: - POISON:2:5:1
Command :
PORKCHOP :
FoodLevel
: 3
Saturation
: 0.6
InstantEat
: false
PotionEffect :
Command :
POTATO :
FoodLevel
: 1
Saturation
: 0.6
InstantEat
: false
PotionEffect :
Command :
PUFFERFISH :
FoodLevel
: 1
Saturation
: 0.2
PotionEffect
: - HUNGER:3:15:1
- POISON:2:60:1
- NAUSEA:1:15:1
Command :
PUMPKIN_PIE :
FoodLevel
: 8
Saturation
: 4.8
InstantEat
: false
PotionEffect :
Command :
RABBIT :
FoodLevel
: 2
Saturation
: 1.2
InstantEat
: false
PotionEffect :
Command :
RABBIT_STEW :
FoodLevel
: 10
Saturation
: 12
InstantEat
: false
PotionEffect :
Command :
ROTTEN_FLESH :
FoodLevel
: 4
Saturation
: 0.8
PotionEffect
: - HUNGER:1:30:0.8
Command :
SALMON :
FoodLevel
: 2
Saturation
: 0.2
InstantEat
: false
PotionEffect :
Command :
SPIDER_EYE :
FoodLevel
: 2
Saturation
: 3.2
PotionEffect
: - POISON:1:4:1
Command :
SWEET_BERRIES :
FoodLevel
: 1
Saturation
: 0
InstantEat
: false
PotionEffect :
Command :
TROPICAL_FISH :
FoodLevel
: 1
Saturation
: 0.2
InstantEat
: false
PotionEffect
: Command:
Spoiler: Message.yml
Code (YAML):
# PlaceholderAPI is available (ex. %player_name%)
Permission-Error
:
"&cYou don't have permission"
CustomFood-Global-Cooldown-Left
:
"%customfood_name% Time Left: %customfood_global_timeleft%"
CustomFood-Personal-Cooldown-Left
:
"%customfood_name% Time Left: %customfood_personal_timeleft%"
VanillaFood-Global-Cooldown-Left
:
"%vanillafood_name% Time Left: %vanillafood_global_timeleft%"
VanillaFood-Personal-Cooldown-Left
:
"%vanillafood_name% Time Left: %vanillafood_personal_timeleft%"
If you have any errors or suggestions, please report them on Discord or Github issue Dev builds are uploaded on the Discord. Join Discord if you need help: https://discord.gg/3jgaJrJaEU