ErrorCraft

|
Return to Home

Itematic 0.2.0 Preview 3

5th of December 2025

The mod is finally starting to get some additional shape! In this preview version the weapon item behaviour was expanded significantly, with some changes to entity behaviour on top of it.

Download it here!

Changes

Entities

Item Behaviour Components

minecraft:weapon

An example based on the minecraft:golden_sword item that sets the damage to 0 when the durability is 1:

{
  "minecraft:weapon": {
    "attack_damage": {
      "default_damage": 4.0,
      "rules": [
        {
          "add_base": false,
          "damage": 0.0,
          "item": {
            "predicates": {
              "minecraft:damage": {
                "durability": 1
              }
            }
          }
        },
        {
          "add_base": true,
          "damage": 3.0,
          "entities": "#minecraft:proficient_with_golden_weapons"
        }
      ]
    },
    "attack_speed": 0.4
  }
}

Data Components

minecraft:weapon_attack_damage

Example:

{
  "default_damage": 4.0,
  "rules": [
    {
      "add_base": true,
      "damage": 3.0,
      "entities": "#minecraft:proficient_with_golden_weapons"
    }
  ]
}

Weapon Rules

A weapon rule dictates what damage amount should be used and whether it should add the entity's base attack damage on top of the weapon's damage or not.

Fields

Example

{
  "add_base": true,
  "damage": 3.0,
  "entities": "#minecraft:proficient_with_golden_weapons"
}