ErrorCraft

|
Return to Home

Itematic 0.3.0 Preview 1

21st of December 2025

In this preview version the item holder behaviour was expanded and a new resource pack feature for item bars was added.

Download it here!

Changes

Assets

Items

Example:

{
  "base": {
    "item_bar_style": "minecraft:bundle",
    "translation_key": "item.minecraft.bundle"
  }
}

Item Behaviour Components

minecraft:item_holder

An example from the minecraft:bundle item:

[
  {
    "type": "minecraft:reject",
    "condition": {
      "items": "#minecraft:banned_bundle_items"
    }
  },
  {
    "type": "minecraft:fraction_with_occupancy_held_items",
    "condition": {
      "behavior": [
        "minecraft:item_holder"
      ]
    },
    "fraction": {
      "denominator": 16,
      "numerator": 1
    }
  },
  {
    "type": "minecraft:fraction",
    "condition": {
      "data_components": [
        "minecraft:bees"
      ]
    },
    "fraction": {
      "denominator": 1,
      "numerator": 1
    }
  }
]

Example:

{
  "denominator": 4,
  "numerator": 1
}

Data Components

Example:

{
  "rules": [
    {
      "type": "minecraft:reject",
      "condition": {
        "items": "#minecraft:banned_bundle_items"
      }
    }
  ],
  "items": [
    {
      "item": "minecraft:stick",
      "count": 4
    },
    {
      "item": "minecraft:cobblestone",
      "count": 6
    }
  ]
}

minecraft:item_bar_style

minecraft:item_holder_capacity

Examples:

Item Bar Styles

An item bar style determines the visuals for the item bar that is displayed on top of an item stack. They are specified under the item_bar_style folder in a resource pack. Format:

Example:

{
  "color": {
    "type": "minecraft:hue_shift",
    "end": 0,
    "start": 120
  },
  "progress": "minecraft:damage",
  "textures": [
    "minecraft:item_bar/progress/13",
    "minecraft:item_bar/progress/12",
    "minecraft:item_bar/progress/11",
    "minecraft:item_bar/progress/10",
    "minecraft:item_bar/progress/9",
    "minecraft:item_bar/progress/8",
    "minecraft:item_bar/progress/7",
    "minecraft:item_bar/progress/6",
    "minecraft:item_bar/progress/5",
    "minecraft:item_bar/progress/4",
    "minecraft:item_bar/progress/3",
    "minecraft:item_bar/progress/2",
    "minecraft:item_bar/progress/1",
    "minecraft:item_bar/progress/0"
  ]
}

Colour Providers

A colour provider determines the colour to apply over the texture. Format: A map with fields determined by the type in the type field. Example:

{
  "type": "minecraft:hue_shift",
  "end": 0,
  "start": 120
}

minecraft:constant

Progress Providers

A progress provider determines whether to display the item bar and what value to use that determines its texture.

minecraft:damage

minecraft:item_holder_occupancy

Item Holder Rules

An item holder rule determines whether an item stack can be added to an item holder or not and decides how much room it takes. Its format is a map with fields determined by the type in the type field, as well as an optional condition field that is an item predicate. All possible types are shown below.

Example:

{
  "type": "minecraft:reject",
  "condition": {
    "items": "#minecraft:banned_bundle_items"
  }
}

minecraft:fraction

Example:

{
  "type": "minecraft:fraction",
  "condition": {
    "data_components": [
      "minecraft:bees"
    ]
  },
  "fraction": {
    "denominator": 1,
    "numerator": 1
  }
}

minecraft:fraction_with_occupancy_held_items

Example:

{
  "type": "minecraft:fraction_with_occupancy_held_items",
  "condition": {
    "behavior": [
      "minecraft:item_holder"
    ]
  },
  "fraction": {
    "denominator": 16,
    "numerator": 1
  }
}

minecraft:reject

Example:

{
  "type": "minecraft:reject",
  "condition": {
    "items": "#minecraft:banned_bundle_items"
  }
}

Extras

Fractions

Example:

{
  "denominator": 4,
  "numerator": 1
}

Item Predicates