{
  "description": "Rumble Tumble",
  "supported_items": "minecraft:golden_sword",
  "weight": 1,
  "max_level": 1,
  "min_cost": {
    "base": 9999,
    "per_level_above_first": 999
  },
  "max_cost": {
    "base": 9999,
    "per_level_above_first": 9999
  },
  "anvil_cost": 9999,
  "slots": [
    "mainhand"
  ],
  "effects": {   
    "minecraft:post_attack": [
      {
        "requirements": [
          {
            "condition": "minecraft:entity_properties",
            "entity": "attacker",
            "predicate": {
              "effects": {
                "minecraft:wind_charged": {
                  "amplifier": {
                    "min": 4,
                    "max": 6
                  },
                  "duration": {
                    "max": 30
                  }
                }
              }
            }
          }
        ],
        "effect": {
          "type": "minecraft:all_of",
          "effects": [
            {
              "type": "minecraft:play_sound",
              "sound": "minecraft:entity.player.attack.sweep",
              "volume": 1,
              "pitch": 2
            },
            {
              "type": "minecraft:apply_mob_effect",
              "to_apply": "minecraft:wind_charged",
              "min_duration": 1.5,
              "max_duration": 1.5,
              "min_amplifier": 5,
              "max_amplifier": 5
            }
          ]
        },
        "enchanted": "attacker",
        "affected": "attacker"
      },
      {
        "requirements": [
          {
            "condition": "minecraft:entity_properties",
            "entity": "attacker",
            "predicate": {
              "effects": {
                "minecraft:wind_charged": {
                  "amplifier": {
                    "min": 3,
                    "max": 3
                  },
                  "duration": {
                    "max": 30
                  }
                }
              }
            }
          }
        ],
        "effect": {
          "type": "minecraft:all_of",
          "effects": [
            {
              "type": "minecraft:apply_mob_effect",
              "to_apply": "minecraft:wind_charged",
              "min_duration": 1.5,
              "max_duration": 1.5,
              "min_amplifier": 4,
              "max_amplifier": 4
            }
          ]
        },
        "enchanted": "attacker",
        "affected": "attacker"
      },
      {
        "requirements": [
          {
            "condition": "minecraft:entity_properties",
            "entity": "attacker",
            "predicate": {
              "effects": {
                "minecraft:wind_charged": {
                  "amplifier": {
                    "min": 2,
                    "max": 2
                  },
                  "duration": {
                    "max": 30
                  }
                }
              }
            }
          }
        ],
        "effect": {
          "type": "minecraft:all_of",
          "effects": [
            {
              "type": "minecraft:apply_mob_effect",
              "to_apply": "minecraft:wind_charged",
              "min_duration": 1.5,
              "max_duration": 1.5,
              "min_amplifier": 3,
              "max_amplifier": 3
            }
          ]
        },
        "enchanted": "attacker",
        "affected": "attacker"
      },
      {
        "requirements": [
          {
            "condition": "minecraft:entity_properties",
            "entity": "attacker",
            "predicate": {
              "effects": {
                "minecraft:wind_charged": {
                  "amplifier": {
                    "min": 1,
                    "max": 1
                  },
                  "duration": {
                    "max": 30
                  }
                }
              }
            }
          }
        ],
        "effect": {
          "type": "minecraft:all_of",
          "effects": [
            {
              "type": "minecraft:apply_mob_effect",
              "to_apply": "minecraft:wind_charged",
              "min_duration": 1.5,
              "max_duration": 1.5,
              "min_amplifier": 2,
              "max_amplifier": 2
            }
          ]
        },
        "enchanted": "attacker",
        "affected": "attacker"
      },
      {
        "effect": {
          "type": "minecraft:all_of",
          "effects": [
            {
              "type": "minecraft:apply_mob_effect",
              "to_apply": "minecraft:wind_charged",
              "min_duration": 1.5,
              "max_duration": 1.5,
              "min_amplifier": 1,
              "max_amplifier": 1
            }
          ]
        },
        "enchanted": "attacker",
        "affected": "attacker"
      }
    ],
    "minecraft:location_changed": [
      {
        "requirements": {
          "condition": "minecraft:entity_properties",
          "entity": "this",
          "predicate": {
            "effects": {
              "minecraft:wind_charged": {
                "amplifier": 5,
                "duration": {
                  "max": 30
                }
              }
            }
          }
        },
        "effect": {
          "type": "minecraft:all_of",
          "effects": [
            {
              "type": "minecraft:attribute",
              "attribute": "minecraft:attack_damage",
              "id": "rumble_axe5",
              "amount": 0.25,
              "operation": "add_multiplied_total"
            },
            {
              "type": "minecraft:attribute",
              "attribute": "minecraft:attack_speed",
              "id": "rumble_axe5",
              "amount": 0.5,
              "operation": "add_multiplied_total"
            }
          ]
        }
      },
      {
        "requirements": {
          "condition": "minecraft:entity_properties",
          "entity": "this",
          "predicate": {
            "effects": {
              "minecraft:wind_charged": {
                "amplifier": 4,
                "duration": {
                  "max": 30
                }
              }
            }
          }
        },
        "effect": {
          "type": "minecraft:all_of",
          "effects": [
            {
              "type": "minecraft:attribute",
              "attribute": "minecraft:attack_damage",
              "id": "rumble_axe4",
              "amount": 0.2,
              "operation": "add_multiplied_total"
            },
            {
              "type": "minecraft:attribute",
              "attribute": "minecraft:attack_speed",
              "id": "rumble_axe4",
              "amount": 0.4,
              "operation": "add_multiplied_total"
            }
          ]
        }
      },
      {
        "requirements": {
          "condition": "minecraft:entity_properties",
          "entity": "this",
          "predicate": {
            "effects": {
              "minecraft:wind_charged": {
                "amplifier": 3,
                "duration": {
                  "max": 30
                }
              }
            }
          }
        },
        "effect": {
          "type": "minecraft:all_of",
          "effects": [
            {
              "type": "minecraft:attribute",
              "attribute": "minecraft:attack_damage",
              "id": "rumble_axe3",
              "amount": 0.15,
              "operation": "add_multiplied_total"
            },
            {
              "type": "minecraft:attribute",
              "attribute": "minecraft:attack_speed",
              "id": "rumble_axe3",
              "amount": 0.3,
              "operation": "add_multiplied_total"
            }
          ]
        }
      },
      {
        "requirements": {
          "condition": "minecraft:entity_properties",
          "entity": "this",
          "predicate": {
            "effects": {
              "minecraft:wind_charged": {
                "amplifier": 2,
                "duration": {
                  "max": 30
                }
              }
            }
          }
        },
        "effect": {
          "type": "minecraft:all_of",
          "effects": [
            {
              "type": "minecraft:attribute",
              "attribute": "minecraft:attack_damage",
              "id": "rumble_axe2",
              "amount": 0.1,
              "operation": "add_multiplied_total"
            },
            {
              "type": "minecraft:attribute",
              "attribute": "minecraft:attack_speed",
              "id": "rumble_axe2",
              "amount": 0.2,
              "operation": "add_multiplied_total"
            }
          ]
        }
      },
      {
        "requirements": {
          "condition": "minecraft:entity_properties",
          "entity": "this",
          "predicate": {
            "effects": {
              "minecraft:wind_charged": {
                "amplifier": 1,
                "duration": {
                  "max": 30
                }
              }
            }
          }
        },
        "effect": {
          "type": "minecraft:all_of",
          "effects": [
            {
              "type": "minecraft:attribute",
              "attribute": "minecraft:attack_damage",
              "id": "rumble_axe1",
              "amount": 0.05,
              "operation": "add_multiplied_total"
            },
            {
              "type": "minecraft:attribute",
              "attribute": "minecraft:attack_speed",
              "id": "rumble_axe1",
              "amount": 0.1,
              "operation": "add_multiplied_total"
            }
          ]
        }
      }
    ]
  }
}
