ItemBuilder

This page contains information about the S-API itembuilder used in my plugins.

Material

The material of the item.

material: GRASS_BLOCK

Amount

The amount of the item.

amount: 64

Name

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: true

Unbreakable

Makes the item unbreakable.

unbreakable: false

Enchants

Enchants of the item.

enchants:
  - 'INVINITY:1'

Color

The color of the item (e.g. for leather armor).

color: rr,gg,bb

Flags

Itemflags of the item.

flags:
  - HIDE_ENCHANTS

CustomModelData

The CustomModelData of the item.

customModelData: 1000

ItemModel

The ItemModel of the item.

itemModel: 'namespace:custom_model'

PlayerProfile

The player profile of the item.

playerProfile: Username

Sample configuration

Here is an example of an item.

item-config.yml
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