Item creation

Example: Teleport Bow

If you want an item to have some ability, then the customData field is required!!!

All fields except stack are optional, but you can add whatever you want for your customization

items.yml
items:
  teleport_bow:
    stack: BOW
    name: "§5§lTeleport Bow"
    lore:
      - "§5Teleports you to the arrow"
      - ""
      - "§5§l✧1/4 chance"
    customData: 487334
    flags:
      - HIDE_DESTROYS
      - HIDE_ATTRIBUTES
    enchants:
      1:
        type: ARROW_INFINITE
        level: 1
    attributes:
      1:
        attribute: GENERIC_ATTACK_SPEED
        modifer: generic.attackSpeed
        value: 10


    ability:
      arrow:
          customAb:
            one:
              type: TELEPORT_BOW
              chance: 0.25

The ability field is responsible for the abilities of the item; its settings are described below

Last updated