Item Attributes Mod
Description (English)
Item Attributes Mod allows you to customize item attributes in Minecraft with high flexibility. Add, remove, or modify attributes such as attack damage, critical chance, armor, and mana capacity on any item, including both vanilla and modded items like those from Iron's Spellbooks.
The mod supports precise control over attribute operations — addition, multiplication, and base value adjustment — applied only in specific equipment slots such as main hand, chest, legs, feet, and spellbook slots for curios and mods.
It integrates seamlessly with the Curios API and enables customization via JSON datapacks or programmatic API calls, empowering modders and pack creators to balance and create unique items effortlessly.
Examples (tested with vanilla items and Iron's Spellbooks):
[
{
"itemId": "minecraft:netherite_sword",
"attributeId": "attributeslib:crit_damage",
"amount": 0.5,
"operationType": 0,
"remove": false,
"isCurio": false,
"slot": "MAINHAND"
},
{
"itemId": "minecraft:netherite_sword",
"attributeId": "attributeslib:crit_chance",
"amount": 0.2,
"operationType": 1,
"remove": false,
"isCurio": false,
"slot": "MAINHAND"
},
{
"itemId": "minecraft:diamond_chestplate",
"attributeId": "minecraft:generic.armor",
"amount": 0.1,
"operationType": 2,
"remove": false,
"isCurio": false,
"slot": "CHEST"
}
]
[
{
"itemId": "irons_spellbooks:diamond_spell_book",
"attributeId": "irons_spellbooks:max_mana",
"amount": 0,
"operationType": 0,
"remove": true,
"isCurio": true,
"slot": "SPELLBOOK"
}
]
Note: The last example includes the slot "SPELLBOOK" which is required for Iron's Spellbooks mod items, ensuring attribute modifications apply correctly.
Descripción (Español)
Item Attributes Mod te permite personalizar los atributos de los Ãtems en Minecraft con gran flexibilidad. Puedes añadir, eliminar o modificar atributos como daño de ataque, probabilidad de crÃtico, armadura y capacidad de maná en cualquier Ãtem, incluyendo Ãtems vanilla y moddeados como los de Iron's Spellbooks.
El mod soporta control preciso sobre las operaciones de atributos — suma, multiplicación y ajuste del valor base — aplicados únicamente en las ranuras de equipamiento especÃficas, como mano principal, pecho, piernas, pies y ranura de libros de hechizos para curios y mods.
Se integra perfectamente con la API Curios y permite la personalización mediante datapacks JSON o llamadas de API programáticas, facilitando a modders y creadores de packs el balance y la creación de Ãtems únicos fácilmente.
Ejemplos (probados con Ãtems vanilla y Iron's Spellbooks):
[
{
"itemId": "minecraft:netherite_sword",
"attributeId": "attributeslib:crit_damage",
"amount": 0.5,
"operationType": 0,
"remove": false,
"isCurio": false,
"slot": "MAINHAND"
},
{
"itemId": "minecraft:netherite_sword",
"attributeId": "attributeslib:crit_chance",
"amount": 0.2,
"operationType": 1,
"remove": false,
"isCurio": false,
"slot": "MAINHAND"
},
{
"itemId": "minecraft:diamond_chestplate",
"attributeId": "minecraft:generic.armor",
"amount": 0.1,
"operationType": 2,
"remove": false,
"isCurio": false,
"slot": "CHEST"
}
]
[
{
"itemId": "irons_spellbooks:diamond_spell_book",
"attributeId": "irons_spellbooks:max_mana",
"amount": 0,
"operationType": 0,
"remove": true,
"isCurio": true,
"slot": "SPELLBOOK"
}
]
How to Use
-
Place your attribute modification JSON files inside your datapack at: data/item_attributes_mod/item_attributes/
-
Define each attribute modification with the fields:
-
itemId: the item to modify.
-
attributeId: the attribute identifier.
-
amount: the value amount to apply.
-
operationType: 0 (add), 1 (add percentage), 2 (multiply).
-
remove: whether to remove the attribute.
-
isCurio: if the item uses Curios slots.
-
slot: exact equipment slot (MAINHAND, CHEST, LEGS, FEET, OFFHAND, SPELLBOOK, etc.) where the modification should apply.
-
-
Reload the datapack or restart the game to apply changes dynamically.