You can create as many items as you want, they all own a custom id, name, damage, lore, enchantments and u can get them by creating recipes, ... Ok, I have to recreate all the recipes because it was trowing errors. Its also a good thing so u can remove or change them like u want. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
There's no eating event.. have you created a custom one (using the PlayerInteractEvent)? Also, you can't make enchantments like 'Protection X', Bukkit does simply not support those, it will throw errors and won't work.
I have made custom enchantments and I have remade all the food class of minecraft server to check the enchantments of your item. I think that its time for me to upload my plugin and let you try it out, but still not all the recipes are added. Waiting for approving of the plugin, but I have already some pics. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Yep, you can change all the default recipes and create custom ones. Furnace recipes are not added yet.
SoulTaker0227 Not really, I still don't see any custom enchantments (as in: Protection X, Infinity XVI, et cetera, so higher then the ones you would get with an enchantment table). Because.. it's impossible (in Bukkit).
Yea but what if Bukkit got the permission to edit mine craft files?? then plugins would become mods and they can automatically be installed
So why does it not like give the option to change them? then the mod makes itself via plugin but it saves the difault data of all the users mine crafts in a folder,and when the server ends/ closes all the users can get their data to default or if a user disconnects will work better and more reliable
I am already making a wiki on github, cause it can take pretty long before approval. :/ I have posted it on the forums! Please read everything and help me finishing the recipes. Link: here EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Cybermaxke I'm just wondering how you created the onEat event.. I know how you did all the other things, but for as far as I know, there isn't an eat event in Bukkit.. so how did you exactly do that (if you don't mind sharing it)?
how i do it is as follows, Code: public void onPlayerInteractEvent(PlayerInteractEvent e){ if(ModeLists.CookieMonsterList.contains(e.getPlayer())){ final int l = e.getPlayer().getFoodLevel(); final Player p = e.getPlayer(); final int a = p.getItemInHand().getAmount(); ItemStack i = e.getPlayer().getItemInHand(); if(i.getType().equals(Material.COOKIE)){ plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new Runnable(){ public void run(){ if(p.getFoodLevel() > l && p.getItemInHand().getAmount() < a){ //do shit } } },100L); } } i know it works i just copied it out of one of my plugins.
I just changed all the food classes. https://github.com/Cybermaxke/Mater...axke/materialmanager/item/CustomItemFood.java