{
  "criteria": {
    "generic": {
      "trigger": "minecraft:entity_hurt_player",
      "conditions": {
        "damage": {
          "type": {
            "bypasses_armor": false,
            "bypasses_invulnerability": false,
            "bypasses_magic": false,
            "is_explosion": false,
            "is_fire": false,
            "is_lightning": false,
            "is_magic": false,
            "is_projectile": false
          }
        },
        "player": [
          {
            "condition": "minecraft:value_check",
            "value": {
              "type": "minecraft:score",
              "target": {
                "type": "minecraft:fixed",
                "name": "#smithed.damage.major"
              },
              "score": "load.status"
            },
            "range": 0
          },
          {
            "condition": "minecraft:value_check",
            "value": {
              "type": "minecraft:score",
              "target": {
                "type": "minecraft:fixed",
                "name": "#smithed.damage.minor"
              },
              "score": "load.status"
            },
            "range": 1
          },
          {
            "condition": "minecraft:value_check",
            "value": {
              "type": "minecraft:score",
              "target": {
                "type": "minecraft:fixed",
                "name": "#smithed.damage.patch"
              },
              "score": "load.status"
            },
            "range": 0
          }
        ]
      }
    },
    "bypass_armor": {
      "trigger": "minecraft:entity_hurt_player",
      "conditions": {
        "damage": {
          "type": {
            "bypasses_armor": true
          }
        },
        "player": [
          {
            "condition": "minecraft:value_check",
            "value": {
              "type": "minecraft:score",
              "target": {
                "type": "minecraft:fixed",
                "name": "#smithed.damage.major"
              },
              "score": "load.status"
            },
            "range": 0
          },
          {
            "condition": "minecraft:value_check",
            "value": {
              "type": "minecraft:score",
              "target": {
                "type": "minecraft:fixed",
                "name": "#smithed.damage.minor"
              },
              "score": "load.status"
            },
            "range": 1
          },
          {
            "condition": "minecraft:value_check",
            "value": {
              "type": "minecraft:score",
              "target": {
                "type": "minecraft:fixed",
                "name": "#smithed.damage.patch"
              },
              "score": "load.status"
            },
            "range": 0
          }
        ]
      }
    },
    "bypasses_invulnerability": {
      "trigger": "minecraft:entity_hurt_player",
      "conditions": {
        "damage": {
          "type": {
            "bypasses_invulnerability": true
          }
        },
        "player": [
          {
            "condition": "minecraft:value_check",
            "value": {
              "type": "minecraft:score",
              "target": {
                "type": "minecraft:fixed",
                "name": "#smithed.damage.major"
              },
              "score": "load.status"
            },
            "range": 0
          },
          {
            "condition": "minecraft:value_check",
            "value": {
              "type": "minecraft:score",
              "target": {
                "type": "minecraft:fixed",
                "name": "#smithed.damage.minor"
              },
              "score": "load.status"
            },
            "range": 1
          },
          {
            "condition": "minecraft:value_check",
            "value": {
              "type": "minecraft:score",
              "target": {
                "type": "minecraft:fixed",
                "name": "#smithed.damage.patch"
              },
              "score": "load.status"
            },
            "range": 0
          }
        ]
      }
    },
    "bypasses_magic": {
      "trigger": "minecraft:entity_hurt_player",
      "conditions": {
        "damage": {
          "type": {
            "bypasses_magic": true
          }
        },
        "player": [
          {
            "condition": "minecraft:value_check",
            "value": {
              "type": "minecraft:score",
              "target": {
                "type": "minecraft:fixed",
                "name": "#smithed.damage.major"
              },
              "score": "load.status"
            },
            "range": 0
          },
          {
            "condition": "minecraft:value_check",
            "value": {
              "type": "minecraft:score",
              "target": {
                "type": "minecraft:fixed",
                "name": "#smithed.damage.minor"
              },
              "score": "load.status"
            },
            "range": 1
          },
          {
            "condition": "minecraft:value_check",
            "value": {
              "type": "minecraft:score",
              "target": {
                "type": "minecraft:fixed",
                "name": "#smithed.damage.patch"
              },
              "score": "load.status"
            },
            "range": 0
          }
        ]
      }
    },
    "is_explosion": {
      "trigger": "minecraft:entity_hurt_player",
      "conditions": {
        "damage": {
          "type": {
            "is_explosion": true
          }
        },
        "player": [
          {
            "condition": "minecraft:value_check",
            "value": {
              "type": "minecraft:score",
              "target": {
                "type": "minecraft:fixed",
                "name": "#smithed.damage.major"
              },
              "score": "load.status"
            },
            "range": 0
          },
          {
            "condition": "minecraft:value_check",
            "value": {
              "type": "minecraft:score",
              "target": {
                "type": "minecraft:fixed",
                "name": "#smithed.damage.minor"
              },
              "score": "load.status"
            },
            "range": 1
          },
          {
            "condition": "minecraft:value_check",
            "value": {
              "type": "minecraft:score",
              "target": {
                "type": "minecraft:fixed",
                "name": "#smithed.damage.patch"
              },
              "score": "load.status"
            },
            "range": 0
          }
        ]
      }
    },
    "is_fire": {
      "trigger": "minecraft:entity_hurt_player",
      "conditions": {
        "damage": {
          "type": {
            "is_fire": true
          }
        },
        "player": [
          {
            "condition": "minecraft:value_check",
            "value": {
              "type": "minecraft:score",
              "target": {
                "type": "minecraft:fixed",
                "name": "#smithed.damage.major"
              },
              "score": "load.status"
            },
            "range": 0
          },
          {
            "condition": "minecraft:value_check",
            "value": {
              "type": "minecraft:score",
              "target": {
                "type": "minecraft:fixed",
                "name": "#smithed.damage.minor"
              },
              "score": "load.status"
            },
            "range": 1
          },
          {
            "condition": "minecraft:value_check",
            "value": {
              "type": "minecraft:score",
              "target": {
                "type": "minecraft:fixed",
                "name": "#smithed.damage.patch"
              },
              "score": "load.status"
            },
            "range": 0
          }
        ]
      }
    },
    "is_lightning": {
      "trigger": "minecraft:entity_hurt_player",
      "conditions": {
        "damage": {
          "type": {
            "is_lightning": true
          }
        },
        "player": [
          {
            "condition": "minecraft:value_check",
            "value": {
              "type": "minecraft:score",
              "target": {
                "type": "minecraft:fixed",
                "name": "#smithed.damage.major"
              },
              "score": "load.status"
            },
            "range": 0
          },
          {
            "condition": "minecraft:value_check",
            "value": {
              "type": "minecraft:score",
              "target": {
                "type": "minecraft:fixed",
                "name": "#smithed.damage.minor"
              },
              "score": "load.status"
            },
            "range": 1
          },
          {
            "condition": "minecraft:value_check",
            "value": {
              "type": "minecraft:score",
              "target": {
                "type": "minecraft:fixed",
                "name": "#smithed.damage.patch"
              },
              "score": "load.status"
            },
            "range": 0
          }
        ]
      }
    },
    "is_magic": {
      "trigger": "minecraft:entity_hurt_player",
      "conditions": {
        "damage": {
          "type": {
            "is_magic": false
          }
        },
        "player": [
          {
            "condition": "minecraft:value_check",
            "value": {
              "type": "minecraft:score",
              "target": {
                "type": "minecraft:fixed",
                "name": "#smithed.damage.major"
              },
              "score": "load.status"
            },
            "range": 0
          },
          {
            "condition": "minecraft:value_check",
            "value": {
              "type": "minecraft:score",
              "target": {
                "type": "minecraft:fixed",
                "name": "#smithed.damage.minor"
              },
              "score": "load.status"
            },
            "range": 1
          },
          {
            "condition": "minecraft:value_check",
            "value": {
              "type": "minecraft:score",
              "target": {
                "type": "minecraft:fixed",
                "name": "#smithed.damage.patch"
              },
              "score": "load.status"
            },
            "range": 0
          }
        ]
      }
    }
  },
  "rewards": {
    "function": "smithed.damage:v0.1.0/player/event"
  }
}
