Plugin category: Fun/Mech Suggested name: BetterCake/bcake/MagicCake A bit about me: College student enjoying learning, unfortunately JAVA is not my area of expertise. I enjoy running a minecraft server. What I want: Configurable food bar heal amount per cake slice. I want to add an incentive for people farming wheat crop on my server. Its an economy server so I want to tweak the amount of food bar that cake heals to make it more appealing to buy. People may be more inclined to farm cake for personal use as well. Ideas for commands: /PLUGINNAME food AmountPerSlice Sets amount to heal per cake slice. /PLUGINNAME reload Reload the plugin. These are not really needed, but would be of some convenience at times. Most of the time I would make changes offline and allow them to apply on a reload. Ideas for permissions: PLUGINNAME.admin allow the use of /PLUGINNAME reload and /PLUGINNAME food Willing to pay up to: Sorry this is not an option for me right now . When I'd like it by: Don't really feel like I can request a deadline when I am requesting someone do this out of the kindness of they're heart/interest, and I don't know a thing about plugin coding.
Could you reserve this for me? I will try my best to code this in the next few days. I am new to java and bukkit development but I am sure this will be easy enough! Keir
That would be great. This is something I have wanted for a long time. Im surprised its not already a plugin. Cake is cool!
Ok, it may take me a few to days to get this to you as I am coding another Plugin just now but once I am finished that I will start work on your Plugin.
Really sorry but you might wanna give the job to someone else. I am now quite busy over the next few weeks Sorry I would've done this if I had the time.
No problem. If anybody else wants to do this that would be great! It would give farming a boost on my server.
Yeah, now my friends are online and i just wanne play CoD . Tomorrow I'll look for a PlayerEatListener ore sth. else... If sth. like this doesn't exist I'll code a left klick listener ronyzzn
Sorry for my bad english,but i don't know what you want. So you want to set the food the restore for ALL CAKE IN THE WORLD? Or you want to set it with looking to at it and change it with command?
I want a plugin that can change how much a persons hunger goes down (is filled) when they eat a slice of cake, and if possible an additional configurable health heal amount.
I'm just learning plugin developing,but this one teached me a lot =D Here it is. I hopes it work 100%. And this is what u wanted. <Edit by Moderator: Redacted mediafire url> Permission is : newboy.SetCake.admin Commands: /setcake food amount /setcake heal amount /setcake reload /setcake heal 0 -- means no heal /setcake food 2 -- this is the default because cake restores 2 food (it's added as default for config file) @XanderCrews01 Oww just one question: I just found that,if you have just 1 health and hunger is filled,then the player get the health,but the cake is the same. Hmmm,if the player's hunger is filled then don't restore health Or if player's hunger is filled but health not ,then restore health and eat 1 piece of cake,like as normal,but with heal. So? =D EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Ok, so its sort of working. It seems that a cake slice is only removed from the cake when a player is missing the exact amount of hunger that the cake can heal or more. For example. feed-amount: 10 heal-amount: 10 To be clear I understand that in the case of food and health 20 is the max. If the above values are set in the config the cake will only lose a slice if the player is missing at least 10 food points, or half. Otherwise the cake becomes a source of infinite food. Food levels are restored, but even with max hunger points (20/20) the cake doesnt lose a slice. Ill keep testing it and get back to you lol yeah I was writing my test results as you posted yours. So im testing what you said about having full hunger and it not restoring health. It would be nice if the cake slices were removed if you get health, food, or both restored. EDIT by Moderator: merged posts, please use the edit button instead of double posting.