CookMe - 'Cause raw food ain't good

Version v1.8.2


This plugin adds some realism and fun to your gameplay!
If you try to eat raw food a random effect will appear (controlled by percentages).
Comes with a config, permissions & commands.
Only effects raw food! Affects now every configured food item!



Control now the percentages! 0.00% means disabled!
With a percentage of 6.9% one of these effect will occur when you eat raw (or other) food

  • You will get some random damage
  • You will get poisoned (like a Cave Spider bite)
  • Your foodbar will get poisoned
  • Your hunger increases (the bar decreases ;))
  • You will get confused (portal effect)
  • You will get weak (not as powerful as before)
  • You will get blind (black fog/smoke around your head)
  • You will mine slower
  • You will get slower (movement)
  • Magic damage (random damage)
  • Refusing of raw food
  • The poison of the wither occurs
  • You are unlucky
  • You fly up high in the air (levitation)

With a percentage of 3.4% this effect will occur



  • Permissions & Commands for an easy administration
  • Control the time of an effect! And a cooldown, too!
  • Disable vanilla poison of RottenFlesh and raw chicken
  • Control the strength of an effect yourself or let the dice decide

Third party features, all of them can be disabled
Please take a look at the detailed information about Metrics below!

  • Metrics for usage statistics


# For help please refer to
  # Should permissions be used?
  permissions: true
  # Display a message when eating?
  messages: true
  # The minimum and maximum duration of the effect in seconds
    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
  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 exactly 100! 0 means disabled!
  damage: 6.9
  death: 3.4
  venom: 6.9
  hungervenom: 6.9
  hungerdecrease: 6.9
  confusion: 6.9
  blindness: 6.9
  weakness: 6.9
  slowness: 6.9
  slowness_blocks: 6.9
  instant_damage: 6.9
  refusing: 6.9
  wither: 6.9
  levitation: 6.9
  unluck: 6.9
# Put a number here for the strength of an effect, only used when randomEffectStrength is false
  venom: 8
  hungervenom: 8
  confusion: 8
  blindness: 8
  weakness: 8
  slowness: 8
  slowness_blocks: 8
  instant_damage: 8
  wither: 8
  levitation: 8
  unluck: 8
# Add your own stuff here, IDs are supported, too!

Commands & Permissions

Only the bukkit permissions are supported! I highly recommend that you use a plugin for permissions like bPermissions!
If the config value permission is set to false, all people can use the commands!
If no permission system is found, all commands are for OPs only! (as long as permissions is set to true)
Of course the console can use the commands, too!

Description: No effects will appear, if a player has got this permission

/cookme reload
Node: cookme.reload
Description: Reloads the config

/cookme help
Description: Displays the help

/cookme set <effect> <percentage>
Node: cookme.set.<effect>
Description: Sets the percentage for the specified effect

/cookme enable permissions
Node: cookme.enable.permissions
Description: Enables the permissions!

/cookme enable messages
Node: cookme.enable.messages
Description: Enables the messages!

/cookme disable permissions
Node: cookme.disable.permissions
Description: Disables the permissions! ALL players can use the commands!

/cookme disable messages
Node: cookme.disable.messages
Description: Disables the messages!

/cookme set cooldown <value>
Node: cookme.cooldown
Description: Sets the cooldown value in seconds

/cookme set duration min <value>
Node: cookme.duration
Description: Sets the minimum duration value in seconds

/cookme set duration max <value>
Node: cookme.duration
Description: Sets the maximum duration value in seconds

/cookme debug
Description: If debug is enabled, reduces food level for testing usage

Of course you can use something like cookme.* or cookme.enable.*

Downloads/Source Code/Dev Builds

Development builds of this project can be acquired at the provided continuous integration server. These builds have not been approved by the BukkitDev staff. Use them at your own risk. (Latest dev builds/bleeding edge builds) - - Dev builds from Jenkins (Source code hosted on Github) - - Source Code

Future Plans (a.k.a. ToDo)

  • add some new "effects" in 1.0 Done
  • change code, after 1.0 recommend build is released (won't effect the user) Done
  • maybe make the effects controllable with percentage by the user Done

Make sure to take a look at the always up to date ToDo!

Known Bugs

None at the moment! :)
If you want a better solution than the right click, support this issue:
PlayerEatEvent #280 Added/Changed in 1.7

Note about the new 1.7 (2014) fishes: Will be added when Bukkit is ready for them!


Version 1.8.2

  • Localization changes, now capable of YAML scalars, this means newline support
  • Minor translation update
  • Build against Bukkit 1.9.2

Version 1.8.1

  • Updated for 1.9 effects
  • Support for main and offhand
  • Updated Metrics for 1.9 compliance

Long changelog


@nisovin for his awesome code for effects :)
Thanks to MatthewEnderle for the improved logo on the bukkit-dev site!


Feel free to use this banner!! :)

Statistics (from MCStats)


If you really like my plugin, you can if you want make a donation via PayPal!
Donation chain: -> I receive some money -> Buy coffee -> Work longer -> Faster Updates -> Your benefit!
There is a button on top of this page :)

I'm accepting bitcoins, too! :)
Address: 1NnrRgdy7CfiYN63vKHiypSi3MSctCP55C


This plugin is released under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) license!

Information about the data usage collection Metrics

Disabling Metrics
The file ../plugins/Plugin Metrics/config.yml contains an option to opt-out

The following data is read from the server in some way or another

  • File Contents of plugins/Plugin Metrics/config.yml (created if not existent)
  • Players currently online (not max player count)
  • Server version string (the same version string you see in /version)
  • Plugin version of the metrics-supported plugin
  • Mineshafter status - it does not properly propagate Metrics requests however it is a very simple check and does not read the filesystem

The following data is sent to and can be seen under

  • Metrics revision of the implementing class
  • Server's GUID
  • Players currently online (not max player count)
  • Server version string (the same version string you see in /version)
  • Plugin version of the metrics-supported plugin

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of xGh0sTkiLLeRx xGh0sTkiLLeRx Sep 15, 2014 at 14:17 UTC - 0 likes

    Is there anyone who would like to see this plugin ported to Sponge?

    Server | Twitter | Github

    Donations are very appreciated!

  • Avatar of xGh0sTkiLLeRx xGh0sTkiLLeRx Apr 09, 2014 at 23:33 UTC - 0 likes

    After nearly 1 year a new version is awaiting approval :)

  • Avatar of xGh0sTkiLLeRx xGh0sTkiLLeRx Aug 07, 2013 at 22:04 UTC - 0 likes

    @DBurgdorf: Go

    Should work fine.
    Still need to look into the issue from below.

  • Avatar of DBurgdorf DBurgdorf Aug 07, 2013 at 20:28 UTC - 0 likes

    Is this compatible with 1.6.2, or do I need to look at dev builds? (I couldn't get to the dev build page just now when I tried.)

  • Avatar of Wbfw Wbfw Jul 29, 2013 at 17:34 UTC - 0 likes

    I may say this problem was /cookme reload with certainty. It very different chance that I feel between not doing reload command and doing reload command. <<And the other problem about hungervenom effect >> : I am eating raw_chicken(Stack was than 2) with mouse-right-click pressed then suppose when I eat 1 chicken, I undergo hungervenom while continuous time. If in succession I will eat 1 raw_chicken with mouse-right-click pressed since while ago, hungervenom effect (type e,) lasts but hunger bar doesn't decrease.(I assume, please check it.)

  • Avatar of Wbfw Wbfw Jul 29, 2013 at 17:07 UTC - 0 likes

    @xGh0sTkiLLeRx: Go Yes, yesterday I experience frequent death message with 0.0 of death chance setting and 0.5 of death chance setting <<Comment >> Oh.. I'm sorry. I don't understand this phenomenon yesterday.:Reload command problem?(I was playing to experience whether work well about each chance with server turned on).. or I may have wrong setting or config.yml.bak file problem(??...) . I replay eating raw_food today. but, not often death message(0.5 percent chance).

    Last edited Jul 29, 2013 by Wbfw
  • Avatar of xGh0sTkiLLeRx xGh0sTkiLLeRx Jul 28, 2013 at 18:53 UTC - 0 likes

    @Wbfw: Go

    The message was hard to understand, but even with 0.0 of death chance you die sometimes?
    Will check this

  • Avatar of Wbfw Wbfw Jul 28, 2013 at 08:42 UTC - 0 likes

    It seem to have problem that "death-percent". I set death-percent to 0.5. but, It's often. That time, I think that It's my fortune. So, I set death-percent to 0.0. But, What..; death-meesage often display.; Please update it. I t experience so, I assume that because condition disorder being filed up in eating raw food It cause.

    Last edited Jul 28, 2013 by Wbfw
  • Avatar of xGh0sTkiLLeRx xGh0sTkiLLeRx Mar 25, 2013 at 23:29 UTC - 0 likes

    @Q2Lummox: Go

    Well normally I have some tact, guess it was one of those stressy ColorMe question days, where users were asking all the same all the time ;)
    Nothing against you & sorry if the comment was a bit harsh :)

    @sehrgut42: Go

    Yes, this would be possible, however would require some rewrite to make each food controllable.
    I might address this suggestion in the next major version (2.0, no ETA; don't know when I've got time).
    Feel free to fork me on GitHub and send me some Pull Requests ;)

  • Avatar of sehrgut42 sehrgut42 Mar 25, 2013 at 02:19 UTC - 0 likes

    I was just reading about the PlayerItemConsumeEvent, because I'm looking for a plugin that does almost what you've done here. In fact, it looks like your underlying code probably couldn't help but support what I was hoping for.

    Would it be possible to generalize this plugin into applying arbitrary effects to arbitrary consumables? I'm imagining a syntax like OtherDrops, which might allow giving Golden Apples a suite of effects (potentially combined, rather than exclusive), changing the effects of eating zombie meat, and maybe making pork worth more hunger points than steak (because there's very little reason other than villager trading to raise pigs).

    Anyway, I was thinking I'd have to code it up myself (and I'm bad with Java), when I found this. It looks like you probably have already written the engine that such a plugin could be based on. Would you consider that for your next version?


Date created
Oct 27, 2011
Last update
Apr 06, 2016
Development stage
  • enUS
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License (CC BY-NC-SA 4.0)
Curse link
Recent files
  • R: v1.8.2 for 1.9 Apr 06, 2016
  • R: v1.8.1 for 1.9 Mar 06, 2016
  • R: v1.8 for CB 1.7.9-R0.1 Apr 09, 2014
  • R: v1.7.2 for CB 1.6.2-R0.1 May 21, 2013
  • R: v1.7.1 for CB 1.5.1-R0.2 Mar 04, 2013