Custom_Items

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:

  1. Download Plugin
  2. Restart server to generate files.
  3. Stop server.
  4. Should now have /plugins/customitems/data/
  5. in that folder create a .yml file (you can name it anything)
  6. 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.

 


Comments

  • To post a comment, please or register a new account.
Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members

Recent Files

Bukkit