Back to mods
ItemTweaker project artwork

CurseForge · Minecraft mod

ItemTweaker

Configure any vanilla or modded item's data components, including durability, stack size, attributes, food, and more, from a single JSON file.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which ItemTweaker release matches 26.1.1?

Updated 10 days ago
Best match for your filters 1.0.4
Game version 26.1, 26.1.1, 26.1.2
Loader Fabric

ItemTweaker 1.0.4 targets 26.1, 26.1.1, 26.1.2 with Fabric. The project page does not say whether this file belongs on the client, dedicated server, or both. All 1 required mods have matching files.

Where it goes

Is ItemTweaker required on the client, server, or both?

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does ItemTweaker 1.0.4 need?

1.0.4 on 26.1.1. Every mod below is checked against that same setup.

All 1 required mods have matching files

Install Fabric API first. We found matching files for this game-version and loader setup.

Fabric API Needed by ItemTweaker 1.0.4
required
Matching file found Matched file: [26.1.2] Fabric API 0.155.3+26.1.2

We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add ItemTweaker without breaking your instance.

Built for ItemTweaker 1.0.4 on 26.1.1. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 1.0.4. It targets 26.1, 26.1.1, 26.1.2 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Fabric API first. We found matching files for this game-version and loader setup.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 1.0.4. It opens that exact file at the source.

About this project

What does ItemTweaker add?

ItemTweaker

A lightweight Fabric/NeoForge mod that lets you change item properties from a single JSON config file. No datapacks, no commands, no code. Great for modpack fixes and balancing.

Tweak durability, stack sizes, attack attributes, food values, rarity, enchantments, and any other data component for both vanilla and modded items. Supports tag-based targeting, wildcards, and exclusions so you can change entire categories of items in a single entry.

Requirements: The Fabric version requires Fabric API

Before removing the mod: stacks above an item's normal size are only safe in your inventory and in shelves. Without the mod, chests, barrels, hoppers, ender chests and most other containers cut them down to the normal maximum and delete the excess, shulker boxes lose the whole stack, and bundles holding them can crash the game when hovered. Take oversized stacks out of containers and split them to normal size first.

Everything else is reversible. ItemTweaker doesn't modify game files, so removing it restores default item properties.


Where to configure items

All item modifications belong in:

config/itemtweaker.json

You do not need a separate file for every mod or item.

Reference files are generated in config/itemtweaker/ on startup:

  • README.md — this guide
  • components.md — every data component ItemTweaker knows about
  • attributes.md — every attribute registered by Minecraft and mods
  • tags.md — every item tag you can target

Basic structure

Each entry in the items object uses a selector as its key. Three kinds of selector are supported:

Selector Matches
"namespace:item_id" A single specific item
"#namespace:tag_id" Every item in that tag
"*" Every registered item

Examples:

  • minecraft:bread — just bread
  • #minecraft:swords — every item tagged as a sword (vanilla + modded)
  • * — every item in the game

Components are placed inside the selector's components object.

JSON value types

Depending on the component, values can be:

  • Integer: 32
  • Decimal: 1.5
  • Boolean: true
  • String: "example"
  • Object: { ... }
  • Array: [ ... ]

The correct value structure depends on the component's codec.

Full example

{
  "items": {
    "minecraft:bread": {
      "components": {
        "minecraft:max_stack_size": 32,
        "minecraft:food": {
          "nutrition": 8,
          "saturation": 1.5,
          "can_always_eat": true
        }
      }
    },
    "#minecraft:swords": {
      "components": {
        "minecraft:max_damage": 5000
      }
    },
    "*": {
      "components": {
        "minecraft:rarity": "epic"
      }
    }
  }
}

Selector precedence

Multiple selectors can match the same item. They are applied in the order they appear in your config, so later entries override earlier ones.

{
  "items": {
    "*":                       { "components": { "minecraft:max_stack_size": 99 } },
    "#minecraft:swords":       { "components": { "minecraft:max_stack_size": 1 } },
    "minecraft:diamond_sword": { "components": { "minecraft:max_damage": 2000 } }
  }
}

In this example, the diamond sword gets:

  • max_stack_size: 1 — from the swords tag (overrides the * value of 99)
  • max_damage: 2000 — from its direct selector
  • Any other components inherited from * that aren't overridden

Order your config from broadest (*) to most specific if you want direct item selectors to win.

Excluding items from a selector

Any selector entry can carry an optional exclude array that removes specific items or tags from its match set:

{
  "items": {
    "*": {
      "exclude": ["minecraft:bedrock", "#minecraft:swords"],
      "components": {
        "minecraft:rarity": "uncommon"
      }
    }
  }
}

That marks every item in the game as "uncommon" except bedrock and anything tagged as a sword.

Exclusions accept the same formats as the main selector:

  • "minecraft:bedrock" — a specific item
  • "#minecraft:swords" — every item in a tag
  • The leading ! is optional; "!minecraft:bedrock" and "minecraft:bedrock" mean the same thing inside an exclude list.

Exclusions only block their own entry. If another selector in your config matches the excluded item, that selector still applies.

Attribute modifiers

minecraft:attribute_modifiers takes a plain array of modifier objects (not an object with a "modifiers" key).

{
  "minecraft:attribute_modifiers": [
    {
      "type": "minecraft:attack_damage",
      "id": "minecraft:base_attack_damage",
      "amount": 11,
      "operation": "add_value",
      "slot": "mainhand"
    },
    {
      "type": "minecraft:attack_speed",
      "id": "minecraft:base_attack_speed",
      "amount": -2.0,
      "operation": "add_value",
      "slot": "mainhand"
    }
  ]
}

Modifier merging

ItemTweaker merges your modifiers with the item's existing defaults.

  • If an existing modifier has the same id as one of yours, yours replaces it.
  • Any existing modifier you don't mention is preserved.

So if you only want to change the attack speed of a diamond sword and leave its attack damage untouched, you only need to specify the attack speed entry. The damage stays as the item intended.

Removing an existing modifier

To strip a default modifier entirely, list its id under the special itemtweaker:remove_attributes key:

{
  "items": {
    "minecraft:diamond_sword": {
      "components": {
        "itemtweaker:remove_attributes": [
          "minecraft:base_attack_speed"
        ]
      }
    }
  }
}

You can combine removal and replacement in a single config entry. Removals happen before merging, so you can remove a stock modifier and add a fresh one with any ID in the same block:

{
  "items": {
    "minecraft:netherite_axe": {
      "components": {
        "itemtweaker:remove_attributes": [
          "minecraft:base_attack_speed"
        ],
        "minecraft:attribute_modifiers": [
          {
            "type": "minecraft:attack_damage",
            "id": "minecraft:base_attack_damage",
            "amount": 15,
            "operation": "add_value",
            "slot": "mainhand"
          }
        ]
      }
    }
  }
}

Player base values

The player's base values are added on top of your amounts:

Stat Player base amount → total
Attack damage 1 11 → 12 total
Attack speed 4 -2.0 → 2.0 total

See attributes.md for the full list of valid attribute IDs.

Hiding modifiers in tooltips

Use the separate minecraft:tooltip_display component:

{
  "minecraft:tooltip_display": {
    "hidden_components": ["minecraft:attribute_modifiers"]
  }
}

Finding components, attributes, and tags

The config/itemtweaker/ folder contains three generated references regenerated on every startup:

  • components.md — data components you can configure
  • attributes.md — attribute IDs for attribute_modifiers
  • tags.md — item tags you can use as #tag selectors

The references contain IDs, not complete usage instructions. Check the relevant Minecraft wiki page for each component's JSON structure.

Important

  • Always use valid JSON.
  • Item IDs and tag IDs must be registered by a loaded mod.
  • Component IDs must be registered.
  • Invalid component values are reported in the log.
  • Default-component changes require a restart.
  • Not every item property is a data component.

Troubleshooting

Log message Cause
Not a json array attribute_modifiers must be [...], not {"modifiers": [...]}.
Selector … did not match any items Typo, missing mod, or an empty tag.
Unknown component Misspelled, or from an unloaded mod.
Cannot configure transient component Runtime-only component; cannot be configured from JSON.
Invalid selector Selector isn't a valid ID, #tag, or *.
Invalid exclusion An entry inside exclude isn't a valid item ID, #tag, or *.

Project description from CurseForge.

Pick your setup

ItemTweaker by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

8 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

ItemTweaker versions and loaders

1 of 4 releases match
Clear filters

Looking for an older file? The official CurseForge project page is in Resources.