Simple slot creation

Warning! Don't remove, add or rename slots with type ARMOR its only for vanilla armor

Types of slots:

ARMOR: This type only for vanilla armor
ACTIVE: Slots of this type are synchronized with the hotbar (like a weapon)
PASSIVE: Slots of this type applies effect to player when item equipped in it (like a ring or artifacts)
ACTION: You cannot equip items to slots with this type, but when player click on this slot, applies action (like a workbench)
PET: Slot for pet
GENERIC: Slot of this type has no special features

Slot ids

http://i.imgur.com/hkzyTZO.png

Basic slot

This slot has no special features, and may contains only apples.

# Root
slots:
  # Slot name - must be unique
  awesome-slot:
    # Type of slot
    type: GENERIC
    # Slot id in inventory
    slot: 0
    # List of valid items
    items:
    - APPLE
    - GOLDEN_APPLE

To exclude the item, add a "-" in the beginning of the line:

items:
- INK_SACK
- -INK_SACK:2

You can also make slot for all things:

items:
- ALL
- -GOLDEN_APPLE // For all items except golden apple :)

Other slots

Slot typeAdditional fieldsRequirements
ARMOR-Cannot have more than one slotId
PET-Not need items list. You can make only one slot to the type of PET
ACTIVEquickbar - Slot on hotbar (can be 0 - 8)
name - Name of plug item (String)
lore - Lore of plug item
Cannot have more than one slotId
ACTIONaction - The action that is executed when player click (see available actions)Not need items list
PASSIVE--
GENERIC--

Action types (for slots with type "ACTION")

Action typeAdditional fieldsAction
WORKBENCH-Opens workbench
ENDERCHEST-Opens ender chest
COMMANDcommand - Command to executeExecute a command from the player

Example of slots.yml

slots:
  helmet:
    type: ARMOR
    slot: 4
    items:
    - LEATHER_HELMET
    - CHAINMAIL_HELMET
    - IRON_HELMET
    - GOLD_HELMET
    - DIAMOND_HELMET
  chestplate:
    type: ARMOR
    slot: 13
    items:
    - LEATHER_CHESTPLATE
    - CHAINMAIL_CHESTPLATE
    - IRON_CHESTPLATE
    - GOLD_CHESTPLATE
    - DIAMOND_CHESTPLATE
  leggings:
    type: ARMOR
    slot: 22
    items:
    - LEATHER_LEGGINGS
    - CHAINMAIL_LEGGINGS
    - IRON_LEGGINGS
    - GOLD_LEGGINGS
    - DIAMOND_LEGGINGS
  boots:
    type: ARMOR
    slot: 31
    items:
    - LEATHER_BOOTS
    - CHAINMAIL_BOOTS
    - IRON_BOOTS
    - GOLD_BOOTS
    - DIAMOND_BOOTS
  weapon:
    type: ACTIVE
    slot: 12
    quickbar: 0
    name: "&a&lWeapon slot"
    lore: "&6&oHere possible to put only weapon"
    items:
    - WOOD_SWORD
    - STONE_SWORD
    - IRON_SWORD
    - GOLD_SWORD
    - DIAMOND_SWORD
    - WOOD_AXE
    - STONE_AXE
    - IRON_AXE
    - GOLD_AXE
    - DIAMOND_AXE
    - BOW
  gloves:
    type: PASSIVE
    slot: 14
    items:
    - INK_SACK:13
  rings:
    type: PASSIVE
    slot: [10, 28]
    items:
    - INK_SACK:10
  amulet:
    type: PASSIVE
    slot: 19
    items:
    - INK_SACK:12
  artifacts:
    type: PASSIVE
    slot: [47, 48, 49, 50, 51]
    items:
    - INK_SACK:14
  pet:
    type: PET
    slot: 33
  craft:
    type: ACTION
    slot: 16
    action: WORKBENCH

Comments

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