Item Configuration Guide
This section explains how to configure custom items in Better Build. Each item supports various properties like custom names, lore, enchantments, and textures.
Basic Fields
material
The type of material for the item. Use a valid Minecraft Material name.
Default:
STONEExample:
DIAMOND_SWORD
displayName
The custom name displayed for the item. Supports color codes (e.g., &6Golden Sword).
Default:
&fDefault ItemExample:
&aSpecial Sword
amount
The number of items in the stack.
Default:
1Example:
64
lore
A list of strings representing the item's description. Each line is a separate string. Example:
yamlCopyEditlore:
- "&7This is a special item."
- "&eUse it wisely!"Optional Fields
textureURL (For custom-textured items like player heads)
Defines a custom texture URL.
Default:
""(no texture)Example:
http://textures.minecraft.net/texture/...
enchantments
A list of enchantments applied to the item. Use valid enchantment names. Example:
yamlCopyEditenchantments:
- SHARPNESS
- FIRE_ASPECTitemFlags (Hide specific item properties)
A list of item flags to hide attributes like enchantments or durability. Example:
yamlCopyEdititemFlags:
- HIDE_ATTRIBUTES
- HIDE_ENCHANTSglow (Adds a glowing effect without enchantments)
Default:
falseExample:
true
durability (Sets the item's durability)
Default:
0(no durability applied)Example:
100
bannerPatterns (For banners, define patterns using color and type)
Example:
yamlCopyEditbannerPatterns:
- RED_CROSS
- BLACK_BORDERExample Configuration
A fully defined item in the configuration file:
yamlCopyEditItem:
material: "DIAMOND_SWORD"
displayName: "&6Legendary Sword"
amount: 1
lore:
- "&7A weapon of legends."
- "&cHandle with care."
textureURL: "http://textures.minecraft.net/texture/..."
enchantments:
- SHARPNESS
- UNBREAKING
itemFlags:
- HIDE_ENCHANTS
- HIDE_ATTRIBUTES
glow: true
durability: 1561
bannerPatterns:
- RED_CROSS
- WHITE_BORDERKey Features of Custom Items
Enchantments
Add enchantments by listing them in the
enchantmentsfield.Enchantments are case-insensitive.
Custom Textures
Use the
textureURLfield to apply player head textures.
Banner Patterns
Define patterns using
bannerPatterns(e.g.,RED_CROSS).
Glow Effect
Enable the
glowfield to add a glowing effect without enchantments.
Item Flags
Hide specific properties like enchantments or attributes using
itemFlags.
Advanced Example (Banner Configuration)
yamlCopyEditItem:
material: "WHITE_BANNER"
displayName: "&bCustom Banner"
amount: 1
lore:
- "&7A unique banner with custom patterns."
bannerPatterns:
- BLUE_STRIPE_DOWNLEFT
- RED_CIRCLE
itemFlags:
- HIDE_DYELast updated