Skip to content

Config Objects

Davi Henrique Linhares edited this page Nov 22, 2023 · 5 revisions

Object

An object can be anything. The contents below this are valid objects.

int

An int is a number without a floating point. They can be negative. Its range is -2147483648 to 2147483647.

long

A long is a number without a floating point. They can be negative. Its range is -9223372036854775808 to 9223372036854775807.

double

A double is a number with floating point. Some objects require a double but they don't require the floating point, some objects needs the floating point. The double range is 4.94065645841246544e-324 to 1.79769313486231570e+308.

boolean

A boolean can have the true and false value.

ItemBuilder

Key Value Type Example Value Description
== String item-builder The value MUST be item-builder
type Material AIR The type of the item
amount int 32 The amount of the item. Optional
damage int 60 The damage of the item. This is how much the item has been used. Optional
display-name String &6Display name The display name of the item. Accepts color codes and hex colors. See the String definition for more details. Optional
lore List<String> - '&6Test'
- '&6Line 2'
The lore of the item. Optional
item-flags List<ItemFlag> - HIDE_ATTRIBUTES
- HIDE_ENCHANTS
The item flags of the item. Optional
enchantments Map<Enchantment, int> minecraft:sharpness: 5
minecraft:unbreaking: 3
The enchantments of the item. Optional
nbt-tags Map<String, Object> test:key_here: value The nbt tags of the item. Optional
unbreakable boolean false If the item is unbreakable. Optional
skull UUID or String Player UUID or skull url The skull of the item. The type must be PLAYER_HEAD. Optional
custom-model-data int 3000 The CustomModelData for the item, is generally used for custom textures. Optional
custom-data Map<Object, Object> key: value The custom data of the item. They are not saved in the item. Planned to be removed. Do not mix it with the custom-model-data, they are different things. Optional
glow boolean true If the item should receive a dummy enchantment to receive the item glint. Optional

Map

A map obeys the key: value format. The key and value types are specified by each object.
Sample Map<String, ItemBuilder>:

key1:
  ==: item-builder
  type: DIAMOND_SWORD
key2:
  ==: item-builder
  type: IRON_SWORD

List

A list has this format:

- Object 1
- Object 2
- Object 3

The list type is specified by each object.
Sample List<ItemBuilder>:

- ==: item-builder
  type: DIAMOND_SWORD
- ==: item-builder
  type: IRON_SWORD
- ==: item-builder
  type: APPLE

UUID

UUIDs have this format: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX

String

Strings are just normal text. Some objects may format the string using color codes and hex colors.
Hex colors are in this format: <#hex>
Example string: '&cI am a red text with a <#5e0b73>purple hex color'

Material

The material is generally the item type or block type. They are listed here.
If you need it for a specific version, choose it here and search for the Material enum.

Enchantment

The enchantment is a Minecraft enchantment. They have this format: namespace:enchantment.
Example enchantment: minecraft:sharpness

ItemFlag

The item flag for an item. They are listed here.

Clone this wiki locally