Skip to content

Custom Weapons

Type ID: item:sword

Fields

Field Type Default Description
name String optional The display name of the item. Can be a literal string or a translation key. If none is given, it'll default to item.namespace.path.
lore Array of Strings optional Lines of text below an item.
item_powers Array of Item Powers optional The powers your item will have.
durability Integer 100 How many uses the item has.
item_group Item Group "misc" The tab you can find the item in.
start_colour Colour optional The start colour gradient of the Durability bar.
end_colour Colour optional The end colour gradient of the Durability bar.
fuel_tick Integer 0 How long the item can smelt for in a furnace.
attack_speed Integer 0 How fast you can swing the weapon.
attack_damage Integer 0 the amount of damage that a weapon does.
enchantability Integer 0 How likely you are to get good enchantments.
repair_item Identifier optional The item used to repair this item.

Example Code

{
    "type": "item:sword",
    "durability": 550,
    "mining_speed_multiplier": 0,
    "attack_damage": 8,
    "attack_speed": 1.7,
    "mining_level": 0,
    "enchantability": 12,
    "lore": [
        "a fragile weapon"
    ]
}