This CraftBukkit plugin adds a more realistic and detailed behavior when you consume raw food
- Control each effect by giving a percentage, disabling means a percentage of 0.0
- Minimum and maximum duration
- Control the strength of an effect yourself or let the dice decide
- Prevent vanilla effects
- Affects any controlled food (default are raw foods)
- Flexible on the fly configuration via commands
- Opt-out permission and command permissions
- Cooldown until the next effect should occur
Third party features, all of them can be disabled
- bStats for usage statistics
# For help please refer to https://dev.bukkit.org/projects/cookme/
configuration:
# Should permissions be used?
permissions: true
# Display a message when eating?
messages: true
# The minimum and maximum duration of the effect in seconds
duration:
min: 15
max: 30
# Cooldown in seconds, how long the player is safe before the next effect happens.
cooldown: 30
# Should /cookme debug be enabled (modifies the food level)
debug: false
# Should the vanilla poison from raw chicken and rotten flesh be prevented if the player has the permission cookme.safe
preventVanillaPoison: false
# Should the effect strength be random or controlled from below (also called amplifier)
randomEffectStrength: true
# The percentage for each effect. Make sure all together are not exceeding 100! 0 means disabled!
effects:
damage: 6.25
death: 6.25
venom: 6.25
hungervenom: 6.25
hungerdecrease: 6.25
confusion: 6.25
blindness: 6.25
weakness: 6.25
slowness: 6.25
slowness_blocks: 6.25
instant_damage: 6.25
refusing: 6.25
wither: 6.25
levitation: 6.25
unluck: 6.25
bad_omen: 6.25
# Put a number here for the strength of an effect, only used when randomEffectStrength is false
effectStrength:
venom: 8
hungervenom: 8
confusion: 8
blindness: 8
weakness: 8
slowness: 8
slowness_blocks: 8
instant_damage: 8
wither: 8
levitation: 8
unluck: 8
bad_omen: 8
# Add your own stuff here, IDs are supported, too!
food:
- BEEF
- CHICKEN
- PORKCHOP
- ROTTEN_FLESH
- MUTTON
- RABBIT
- COD
- SALMON
- PUFFERFISH
(Fallback to OPs, if no permissions system is found)
Command | Permission node | Description |
---|---|---|
- | cookme.safe | Opt out permission (no effects appear) |
/cookme reload | cookme.reload | Reloads the configuration files |
/cookme help | cookme.help | Displays a help menu |
/cookme debug | only active when debug is true | Reduces your food level |
In the following table the X needs to be replaced by one of these values
- permissions
- messages
Command | Permission node | Description |
---|---|---|
/cookme enable X | cookme.enable.X | Enables permissions/messages |
/cookme disable X | cookme.disable.X | Disables permissions/messages |
In the following table the X needs to be replaced by one of these effects
- damage
- death
- venom
- hungervenom
- hungerdecrease
- confusion
- blindness
- weakness
- slowness
- slowness_blocks
- instant_damage
- refusing
- wither
- levitation
- unluck
- bad_omen
Command | Permission node | Description |
---|---|---|
/cookme set cooldown | cookme.cooldown | Sets the cooldown time in seconds |
/cookme set duration max | cookme.duration | Sets the maximum duration in seconds |
/cookme set duration min | cookme.duration | Sets the minimum duration in seconds |
/cookme set X | cookme.set.X | Sets the percentage of effect X |
- nisovin for the code snippet prior to the Potion API
- MatthewEnderle for the nice logo
For support visit the dev.bukkit.org page: https://dev.bukkit.org/projects/cookme
In addition to reporting bugs here on GitHub you can join my Discord and ask your questions right away!
Feel free to submit any PRs here. :)
Please follow the Sun Coding Guidelines, thanks!
The file ./plugins/bStats/config.yml
contains an option to opt-out.
The following data is read and sent to https://bstats.org and can be seen under https://bstats.org/plugin/bukkit/CookMe
- Your server's randomly generated UUID
- The amount of players on your server
- The online mode of your server
- The bukkit version of your server
- The java version of your system (e.g. Java 8)
- The name of your OS (e.g. Windows)
- The version of your OS
- The architecture of your OS (e.g. amd64)
- The system cores of your OS (e.g. 8)
- bStats-supported plugins
- Plugin version of bStats-supported plugins
- List of enabled foods
1NnrRgdy7CfiYN63vKHiypSi3MSctCP55C
*As an affiliate partner I earn from qualified purchases
Built by (c) Tim Brust and contributors. Released under the MIT license.