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
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 type | Additional fields | Requirements | |
ARMOR | - | Cannot have more than one slotId | |
PET | - | Not need items list. You can make only one slot to the type of PET | |
ACTIVE | quickbar - Slot on hotbar (can be 0 - 8) name - Name of plug item (String) lore - Lore of plug item | Cannot have more than one slotId | |
ACTION | action - 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 type | Additional fields | Action | |
WORKBENCH | - | Opens workbench | |
ENDERCHEST | - | Opens ender chest | |
COMMAND | command - Command to execute | Execute 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
Had a little trouble with commands, just thought I'd share a section. This is what I did to make the crafting slotbar open up the Attributes menu from SkillAPI.
In reply to DrkMatr1984:
Ey guys! I finally find the way to make a command run:
commandslot:
(1 spacing)type: ACTION
(1 spacing)slot: 2
(1 spacing)holder:
(1 spacing)item: DIAMOND_HOE:2
(1 spacing)name: "&5&lwow this command is awesome"
(1 spacing)action: COMMAND
(1 spacing)command: "command without slash"
There is no 44, but there are two 45's. Sorry for my bad English, I'm a german.
LG Blausteinstaub