Hi ! Plugin category: MECH/ITEMS What I want: So basically I am working on a new RPG-style server, and one of the ideas, to go with the Classes we are working on, is to have some new and improved items, based on existing items, such as "Dragon Armor", "Sword of Fire", or what-not. It really shouldn't be too complicated to do I don't think. I have looked around quite a bit, but haven't found anything... Which is odd, I figured this is something people would really like. The basic idea is being able to create "Custom" crafts, with their own recipes. Basically being able to define a recipe that gives you an item with a name, description, and enchantments, and being able to control the craft of these items with permissions. So for example, crafting an "Enhanced Diamond Sword", recipe is Diamond sword + 3 diamonds, gives you a new Diamond Sword with the name "Enhanced Diamond Sword", a configurable description, and some enchantments on it. Same would go for armors, "Red Dragon Armor" : Diamond Armor + diamonds + redstone, gives you an armor that has a better defense, enchantments, a custom name and description. The idea is that enchantments will be "nerfed" on the server, and these new and improved sets of items will play a role in the game and economy. Also, having the crafts handled with Permissions also plays a role in RP, meaning only certain "Classes" can craft some of these improved items. The whole point is adding some of that Single Player Adventure Mode fun, with the custom items/quest items, into the game and being able to create classes/quests/"new" items based on that. Is this possible? Thanks! Mark
could you give me an example of how you do this? it would help me (and a guy deving a plugin for me) a lot
Should look like this (if someone notices a mistake pls point it out, it's 4am, and I'm pretty tired. Code:java public void onEnable() {getLogger().info("YourPlugin has been enabled!"); ItemStack customItem = new ItemStack(Material.MATERIAL);ItemMeta customItemMeta = customItem.getItemMeta();customItemMeta.setDisplayName("Custom Name"); ArrayList<String> customItemLore;customItemLore = new ArrayList<String>();customItemLore.add("Lore1");customItemMeta.setLore(customItemLore); customItem.setItemMeta(customItemMeta); ShapedRecipe recipe = new ShapedRecipe(new ItemStack(customItem));recipe.shape(new String[] {"000", "010", "000"});recipe.setIngredient('I', Material.AIR);recipe.setIngredient('C', Material.MATERIAL);getServer().addRecipe(recipe);}
MomsKnife timtower Would any of you guys be willing to add permissions, enchantments, a config file and compile it? Edit: Basically YAML config file would be like Item: - Name: 'Dragon Sword' - Description: 'Bla bla bla' - Enchantments: ['KNOCKBACK:3, THIS:4, FLAME:3, BLA:4] - Recipe: ['000', '000', '000'] - itemOutput: 276 (Diamond Sword) - craftPermission: customCraft.diamondsword