Note: While this plugin hasn't been tested on versions lower than 1.17. It should work on lower versions.
This is a small plugin where players can make any food item infinite.
When a food item is infinite it'll have the infinity enchant and when eaten will not be consumed.
Food can be made infinite by:
Combining it with an Infinity book in an anvil
By using the command /infini
Permissions:
infinitefood.infini - To allow players to use the command
infinitefood.admin - For staff to reload the config
infinitefood.anvil - To allow players to use the anvil feature
Commands:
/infini - Makes any food infinite without having to use a book and anvil
/infrl: Reloads the plugin's config
By default, making a food infinite costs 30 levels. But this is configurable in the config
Code (Text):
# Amount of levels required to make an item infinite
infinite-cost: 30
#Text to display when anvil usage is denied
#use '&' to change the colour of the message
anvil-message: &cYou do not have the required permissions to do this action
#List of foods that are unable to be made infinite
#add more foods to the list by pressing space then -
#example:
# - ENCHANTED_GOLDEN_APPLE
# - COOKED_BEEF
banned-foods:
Tips:
Food is only able to be made infinite when it is in a single stack of 1
Trying to eat a stack of multiple infinite foods will make it into a stack of 1.