
// new
"xaierg:new": {
	"add": {
	  "component_groups": [
		"new:shoot"
	  ]
	}
  },
  "xaierg:new_reload": {
	"add": {
	  "component_groups": [
		"new:reload"
	  ]
	}
  },
  "xaierg:new_reloading": {
	"add": {
	  "component_groups": [
		"off:reload"
	  ]
	},
	"remove": {
	  "component_groups": [
		"new:reload"
	  ]
	},
	"queue_command": {
		"command": [
				"replaceitem entity @s slot.weapon.mainhand 0 xaierg:new 1 0",
				"clear @s xaierg:awm_ammo 0 1",
				"scoreboard objectives add new dummy",
				"scoreboard players add @s new 15"
		]
	}
  },
  "xaierg:new_remove": {
	"remove": {
	  "component_groups": [
		"new:shoot"
	  ]
	}
  },

  ,
    "controller.animation.new.shoot": {
      "initial_state": "default",
      "states": {
        "default": {
          "transitions": [
		  { "new.shoot": "q.equipped_item_any_tag('slot.weapon.mainhand', 'new') && q.is_using_item && !q.is_sprinting" }]
        },
        "new.shoot": { "animations" : [ "new.shoot" ], "transitions": [{ "default": "!q.equipped_item_any_tag('slot.weapon.mainhand', 'new') || !q.is_using_item || q.is_sprinting" } ]
        }
      }
    }

	,
    "controller.animation.new.reload": {
      "initial_state": "default",
      "states": {
        "default": {
		"on_entry": [ "/event entity @s xaierg:no_reload" ],
          "transitions": [
            { "new_empty": "q.equipped_item_any_tag('slot.weapon.mainhand', 'new_empty') && q.is_using_item" }]
        },

        "new_empty": {
		  "animations" : [ "new.reload" ],
          "transitions": [{ "default": "!q.equipped_item_any_tag('slot.weapon.mainhand', 'new_empty') || q.any_animation_finished" }]
        }
      }
    }