CookMe - 'Cause raw food ain't good
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.25% 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)
- You feel a bad omen (triggers a raid when the player is in a village)
- 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 bStats below!
- bStats for usage statistics
# For help please refer to http://dev.bukkit.org/bukkit-plugins/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 exactly 100! 0 means disabled! effects: damage: 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
Commands & Permissions
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
Description: Reloads the config
Description: Displays the help
/cookme set <effect> <percentage>
Description: Sets the percentage for the specified effect
/cookme enable permissions
Description: Enables the permissions!
/cookme enable messages
Description: Enables the messages!
/cookme disable permissions
Description: Disables the permissions! ALL players can use the commands!
/cookme disable messages
Description: Disables the messages!
/cookme set cooldown <value>
Description: Sets the cooldown value in seconds
/cookme set duration min <value>
Description: Sets the minimum duration value in seconds
/cookme set duration max <value>
Description: Sets the maximum duration value in seconds
Description: If debug is enabled, reduces food level and all effects 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)
- None at the moment
- None at the moment
- updates bStats version
- lowers API version back to 1.14
- updates bStats version
@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 bStats)
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! :)
This plugin is released under the MIT license!
Information about the data usage collection bStats
./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
Learn to read. I won't say more.
Hint: it's BOLD in the changelog
19:52:50 CONSOLE: [SEVERE] [CookMe] Plugin CookMe v1.7.1 has failed to register events for class de.dustplanet.cookme.CookMePlayerListener because org/bukkit/event/player/PlayerItemConsumeEvent does not exist.
Version of CookMe: 1.7.1 Craftbukkit: 1.4.7 R.1.0
Ah, I see then. I figured was a spigot issue. Because I had 1.7.1 and Spigot #601 and it was some reason still throwing this error at me. However I use latest builds as always, but that is just how I do honestly. Got #603 and problem went away, so I just figured from that.
Spigot build 597 is equivalent to the craftbukkit build #2636 and works fine ;)
The error occurred because the food level was 0 and then a random number should be generated which is not possible with random, because the number must be positive; this issue was fixed in 1.7.1
http://docs.oracle.com/javase/1.4.2/docs/api/java/util/Random.html#nextInt(int) if you are interested.
This is vanilla behavior, 30% chance to get poisoned(rotten flesh, too).
I'll tweak this in the next version to allow eating raw chicken and flesh without vanilla effects, when the permission cookme.safe is granted.
Spigot sadly isn't up to Bukkit source #2636+, you will get this error till then. It is a NMS issue no doubt or I would assume so anyway. If not then its a missing hook that is #2636+ that is not in previous. I did not look at source, so I cannot say.
Edit: Get Spigot #603, it seems to fix the issue and works fine by what I can tell here.
NVM, it would seem as if some other plugin is causing the effect with raw chicken.
"I have tested, and confirmed that apparently cookme.safe does not protect players from the effects of raw chicken.
We tested the other foods, and were unharmed with cookme.safe. It seems to only not work for raw chicken."
Thanks for the report, I'll fix this ASAP :)
Edit Fixed in 1.7.1!
Love this! works mostly, but getting some console errors:
(running spigot build 601)
Fantastic plugin! Absolutely love it. Keep up the good work.
Please Paste your config!
I havent messed with my config file or localization file at all, but it is messed up. If I eat any raw meat, I am fine, receive no message and no effects. Then a few seconds later, I take random damage, even when im standing still. No other effects have occurred, and the damage continues WAY past the set max time limit, to the point where I have to eat a golden apple or potion of regen every 3-4 min. Is this some server problem or do I need to fix my config file?
(I also have a plugin called Rotting Eating that makes all uncooked meat spoil and turn into rotten flesh in a few min. Is it maybe that plugin conflicting?)
Well, I'm aware of this issue - and already implemented a better event - not yet pulled into CB, but I hope I can change this very soon!
Apparently it is possible for a player to experience the effects when feeding uncooked meat to wolves.
ah deutsch :P
yes like the old way, but with the eating effekt
ist das möglich dass das heilen erst nach der ess animation ist,
da alle anderen plugins das auf rechtsklick haben finde das bescheiden
Like it was before? :D
I love the old way.
Let me see what I can do.
Can take some time (Abi steht bald an :/)
hi is it possible to add some features?
cancel the AutoHeal(if food bar is full) and add healing if you eat some food
I released an update, should adress some issues and works good for me.
Print now the wrong itemName. If you have an issues, message me!
(Maybe here is still 1.4.1, use gihtub or dropbox then!)
GhostKiller, I'm having issues with this, im getting couldn't load the food error.
ive validated my yaml and my foods list is the default that you provide.
I've looked through the source code, and i believe that by catching the exception and not posting a stack trace, you are hiding the real error.
any help would be appreciated, been having this issue on 1.3.1RB1 and RB2 with cookmev1.4.1
Sure! Found no bugs/issues so far. I use it also on my server ;)
Is this plugin still active and working? I'd really like to use it to add another lair of realisim on my server