Plugin category: Fun! Suggested name: BakedCookies What I want: I'd like to have cookies be a lot more better! I'd like a plugin that adds the ability to heat up a regular crunchy cookie by simply heating it in the furnace! The baked cookie will give 2 points of hunger instead of 1. It will NOT be a custom item, it will just be a cookie with the enchanted glow called "Baked Cookie." It will be coded to give 2 points of hunger upon being eaten and can be obtained by heating up a cookie in a furnace! Ideas for commands: /bcookie reload - Reloads the config Ideas for permissions: bcooki.reload - permission to access /bcookie reload When I'd like it by: Anytime!
This sounds like a pretty interesting project, i will do it, but it isnt my main concern, so you may want someone doing it faster also, not too sure why you would include a config in this.
So, I've made the plugin. I have a few questions, though. You said you wanted the cookie to have an enchantment glow without an enchantment. There's a few ways to do this. In my opinion, using ProtocolLib is the least "hacky" way to do it (other ways require dangerous reflection or need to be updated every version of Minecraft). Do you mind having ProtocolLib as a dependency? Currently, the plugin adds a furnace recipe for a "Baked Cookie" by smelting one cookie. When the baked one is consumed, it adds an additional point of hunger to the food bar. If the player eating it only has one food missing, the baked cookie will do nothing extra (it will only add the one point). Does that all sound good?
jkcclemens https://github.com/Goblom/Bukkit-Li.../main/java/org/goblom/bukkitlibs/AddGlow.java OR https://github.com/SocialCraft/Pret.../com/stirante/PrettyScaryLib/EnchantGlow.java Second one uses NBT though
You can do the second one via packet modification without touching NBT directly (so forwards-compatibility). Has anyone actually tested the first one? I was under the impression that adding new Enchantments was dangerous and ended up crashing the client.