ItemBuilder
This page contains information about the S-API itembuilder used in my plugins.
Material
The material of the item.
This is required.
material: GRASS_BLOCKAmount
The amount of the item.
amount: 64Name
The displayname of the item (uses MiniMessages).
name: "<red>Test"Lore
The lore of the item (uses MiniMessages).
lore:
- "<green>sample line 1"
- "<b>sample line 2"Glow
Lets the item glow (enchantment glint).
glow: trueUnbreakable
Makes the item unbreakable.
unbreakable: falseEnchants
Enchants of the item.
enchants:
- 'INVINITY:1'Color
The color of the item (e.g. for leather armor).
color: rr,gg,bbFlags
Itemflags of the item.
flags:
- HIDE_ENCHANTSCustomModelData
The CustomModelData of the item.
customModelData: 1000ItemModel
The ItemModel of the item.
itemModel: 'namespace:custom_model'PlayerProfile
The player profile of the item.
playerProfile: UsernameSample configuration
Here is an example of an item.
item:
material: IRON_SWORD
name: "<rainbow><b><i>SUPER SWORD"
lore:
- "<gray>This sword can one hit everything."
glow: true
unbreakable: true
enachnts:
- 'SHARPNESS:255'
flags:
- HIDE_ENCHANTS
itemModel: 'mypack:super_sword'Last updated