-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Veselin Plochev edited this page May 13, 2026
·
10 revisions
UNDER CONSTRUCTION
/dg help or /datagear help - help command in-game
data/<namespace>/datagear/modify/<file>.json
{
"target": ["minecraft:diamond_helmet", "#c:tools/melee_weapons"], // What items should the modifiers target (Mandatory)
"exclude": ["minecraft:wooden_sword", "#datagear:stone_weapons"], // Exclude from a tag (Optional)
"operation": "add", // add, set, multiply (Mandatory)
"priority": 0, // In what order should this .json apply (Optional, default 0)
"slot": "mainhand", // What slot should the modifiers target (Optional)
"conditions": { // Conditions, Modifiers only apply if these are met (Optional)
"attack_damage": { "min": 5.0 }, // OR, NOT, statements on the same level are read as AND
"armor": { "min": 2.0 }, // Supports min and max
"equipment_slot": "chest",
"OR": [
{ "max_damage": { "min": 100.0 } },
{ "unbreakable": true }
],
"NOT": { "attack_speed": 1.6 }
},
"modifiers": { // Applied modifiers on the item (Mandatory)
"attack_damage": 3.0,
"max_damage": 500,
"mining_speed": 2.5,
"unbreakable": true,
"equipment_slot": "chest",
"lore": ["Line one", "{\"text\":\"colored\",\"color\":\"red\"}"],
"item_name": ["My Sword"],
"somemod:custom_component": 10.0
}
}