Properties

Item properties are shared between all content types: Items, blocks and decorations. All properties are optional.

Example with all properties set:

Example

id: mynamespace:clown_horn
vanillaItem: minecraft:paper
models:
  default: mynamespace:custom/misc/clown_horn
properties:
  durability: 100
  stackSize: 64
  lore:
    - "line 1"
    - "line 2"
  fireResistant: false
{
  "id": "mynamespace:clown_horn",
  "vanillaItem": "minecraft:paper",
  "models": {
    "default": "mynamespace:custom/misc/clown_horn"
  },
  "properties": {
    "durability": 100,
    "stackSize": 64,
    "lore": ["line 1", "line 2"],
    "fireResistant": false
  }
}

durability:

Gives the item durability. You can also use the vanilla component for this.

stackSize:

Number of items a stack can hold. Should be between 1 and 99 Values above 99 or 0 and below might cause problems™

Defaults to 64

lore:

List of strings to use as item lore. Supports PlaceholderAPI's simple text formatting.

Example

Example: <c:red>MyLore</c>

Example: <lang:'mymod.lore.mylore'>

fireResistant:

Boolean (true/false) whether the item is fire-resistant.

Defaults to false

copyComponents

Boolean (true/false) whether the components of the vanillaItem should be copied.