Custom Items
CustomItems allows you to create your own custom items
NOTE: when I say Items, I'm talking about Items, weapons, armor, and blocks. Not just items.
How To use:
- Download Plugin
- Restart server to generate files.
- Stop server.
- Should now have /plugins/customitems/data/
- in that folder create a .yml file (you can name it anything)
- Copy and paste the example config from this page and edit it to your liking.
Example Config:
# CustomItems
# =-=-=-=-=-=-=
# Example Item:
#
displayname: "&aEmerald Sword"
material: DIAMOND_SWORD
enchantments:- 'DAMAGE_ALL:5'
- 'MENDING:1'
recipe:# shape is crafting recipe (space = no item needed in slot)
shape:
- ' E '
- ' E '
- ' S '
ingredients:
- 'E:EMERALD'
- 'S:STICK'
API:
CustomItems includes a api just import class me.isaiah.customitems.CustomItem
How to use the API:
CustomItem EmSword = new CustomItem("Emerald Sword", Material.DIAMOND_SWORD);
EmSword.addEnch(5, Enchantment.DAMAGE_ALL);
EmSword.addEnch(1, Enchantment.MENDING);
EmSword.shape(" E ", " E ", " S ");
EmSword.setIngred('E', Material.EMERALD);
EmSword.setIngred('S', Material.STICK);
EmSword.register();
TODO:
- Create custom items via command.
- Edit created items via command.