Skip to content
Veselin Plochev edited this page Apr 25, 2026 · 5 revisions

UNDER CONSTRUCTION

data/<namespace>/datagear/modify/<file>.json

{
  "target": ["minecraft:diamond_helmet", "#c:tools/melee_weapons"],
  "exclude": ["minecraft:wooden_sword", "#datagear:stone_weapons"],
  "operation": "add",
  "priority": 0,
  "slot": "mainhand",
  "conditions": {
    "attack_damage": { "min": 5.0 },
    "armor": { "min": 2.0 },
    "equipment_slot": "chest",
    "OR": [
      { "max_damage": { "min": 100.0 } },
      { "unbreakable": true }
    ],
    "NOT": { "attack_speed": 1.6 }
  },
  "modifiers": {
    "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
  }
}

Clone this wiki locally