{
  "anvil_cost": 1000,
  "description": "Firesalt Coating",
  "effects": {
    "minecraft:post_attack": [
      {
        "requirements": {
          "condition": "minecraft:entity_properties",
          "entity": "direct_attacker",
          "predicate": {
            "type": [
              "minecraft:snowball",
              "minecraft:spectral_arrow",
              "minecraft:arrow"
            ]
          }
        },
        "effect": {
          "type": "minecraft:all_of",
          "effects": [
            {
              "type": "minecraft:damage_entity",
              "damage_type": "minecraft:explosion",
              "min_damage": {
                "type": "minecraft:linear",
                "base": 1,
                "per_level_above_first": 1
              },
              "max_damage": {
                "type": "minecraft:linear",
                "base": 2,
                "per_level_above_first": 2
              }
            },
            {
              "type": "minecraft:explode",
              "damage_type": "minecraft:explosion",
              "knockback_multiplier": {
                "type": "minecraft:linear",
                "base": 10,
                "per_level_above_first": 1
              },
              "radius": {
                "type": "minecraft:linear",
                "base": 1,
                "per_level_above_first": 1
              },
              "create_fire": true,
              "block_interaction": "tnt",
              "small_particle": {
                "type": "minecraft:flame"
              },
              "large_particle": {
                "type": "minecraft:soul_fire_flame"
              },
              "sound": "minecraft:item.firecharge.use"
            }
          ]
        },
        "enchanted": "attacker",
        "affected": "victim"
      },
      {
        "requirements": {
          "condition": "minecraft:entity_properties",
          "entity": "direct_attacker",
          "predicate": {
            "flags": {
              "is_flying": false
            },
            "slots": {
              "weapon.mainhand": {
                "items": "#minecraft:enchantable/mace"
              }
            },
            "movement": {
              "fall_distance": {
                "min": 5
              }
            }
          }
        },
        "effect": {
          "type": "minecraft:apply_mob_effect",
          "to_apply": "minecraft:resistance",
          "min_duration": 2,
          "max_duration": 2,
          "min_amplifier": 5,
          "max_amplifier": 5
        },
        "enchanted": "attacker",
        "affected": "attacker"
      },
      {
        "requirements": {
          "condition": "minecraft:entity_properties",
          "entity": "direct_attacker",
          "predicate": {
            "flags": {
              "is_flying": false
            },
            "slots": {
              "weapon.mainhand": {
                "items": "#minecraft:enchantable/mace"
              }
            },
            "movement": {
              "fall_distance": {
                "min": 5
              }
            }
          }
        },
        "effect": {
          "type": "minecraft:explode",
          "attribute_to_user": true,
          "damage_type": "minecraft:player_explosion",
          "radius": {
            "type": "minecraft:linear",
            "base": 1,
            "per_level_above_first": 1
          },
          "create_fire": true,
          "block_interaction": "tnt",
          "small_particle": {
            "type": "minecraft:flame"
          },
          "large_particle": {
            "type": "minecraft:soul_fire_flame"
          },
          "sound": {
            "sound_id": "minecraft:entity.generic.explode",
            "range": 100
          }
        },
        "enchanted": "attacker",
        "affected": "victim"
      }
    ],
    "minecraft:hit_block": [
      {
        "requirements": {
          "condition": "minecraft:entity_properties",
          "entity": "this",
          "predicate": {
            "type": [
              "minecraft:snowball",
              "minecraft:spectral_arrow",
              "minecraft:arrow"
            ]
          }
        },
        "effect": {
          "type": "minecraft:explode",
          "attribute_to_user": true,
          "damage_type": "minecraft:explosion",
          "radius": {
            "type": "minecraft:linear",
            "base": 1,
            "per_level_above_first": 1
          },
          "create_fire": true,
          "block_interaction": "tnt",
          "small_particle": {
            "type": "minecraft:flame"
          },
          "large_particle": {
            "type": "minecraft:soul_fire_flame"
          },
          "sound": "minecraft:entity.generic.explode"
        }
      }
    ]
  },
  "max_cost": {
    "base": 1000,
    "per_level_above_first": 1000
  },
  "max_level": 10,
  "min_cost": {
    "base": 1000,
    "per_level_above_first": 1000
  },
  "slots": [
    "mainhand"
  ],
  "supported_items": "#backrooms:enchantable/firesalt",
  "weight": 2
}