{

    "type": "origins:multiple",
	"reload":
	{
		"type": "origins:active_self",
		"cooldown": 600,
		"hud_render": {
			"should_render": true,
			"sprite_location": "origins:textures/gui/community/huang/resource_bar_01.png",
			"bar_index": 16
		},
		"entity_action":{
			"type": "origins:and",
			"actions":[
				{
					"type": "origins:if_else_list",
					"actions":[
						{
							"condition":{
								"type": "origins:equipped_item",
								"equipment_slot": "mainhand",
								"item_condition":{
									"type": "origins:ingredient",
									"ingredient": {
										"item": "minecraft:iron_block"
									}
								}
							},
							"action":{
								"type": "origins:equipped_item_action",
								"equipment_slot": "mainhand",
								"action": {
									"type": "origins:consume",
									"amount": 1
								}
							}
						},
						{
							"condition":{
								"type": "origins:equipped_item",
								"equipment_slot": "offhand",
								"item_condition":{
									"type": "origins:ingredient",
									"ingredient": {
										"item": "minecraft:iron_block"
									}
								}
							},
							"action":{
								"type": "origins:equipped_item_action",
								"equipment_slot": "offhand",
								"action": {
									"type": "origins:consume",
									"amount": 1
								}
							}
						}
					]
				},
				{
					"type": "origins:execute_command",
					"command": "playsound minecraft:block.piston.contract master @a ~ ~ ~ 0.5 0.3"
				},
				{
					"type": "origins:delay",
					"ticks": 10,
					"action":{
						"type": "origins:and",
						"actions":[
							{
								"type": "origins:change_resource",
								"resource": "ordnance:engineer/ammo_box",
								"change": 400
							},
							{
								"type": "origins:execute_command",
								"command": "playsound minecraft:block.piston.extend master @a ~ ~ ~ 0.5 0.3"
							}
						]
					}
				},
				{
					"type": "origins:execute_command",
					"command": "particle angry_villager ~ ~0.5 ~ 0.3 0.3 0.3 0.009 4 normal @a"
				}
			]
		},
		"condition": {
			"type": "origins:and",
			"conditions": [
				{
					"type": "origins:sneaking"
				},
				{
					"type": "origins:or",
					"conditions":[
						{
							"type": "origins:equipped_item",
							"equipment_slot": "mainhand",
							"item_condition":{
								"type": "origins:ingredient",
								"ingredient": {
									"item": "minecraft:iron_block"
								}
							}
						},
						{
							"type": "origins:equipped_item",
							"equipment_slot": "offhand",
							"item_condition":{
								"type": "origins:ingredient",
								"ingredient": {
									"item": "minecraft:iron_block"
								}
							}
						}
					]
				}
			]
		},
		"key": {
			"key":"key.use",
			"continuous": false
		}
	},
	"badges": [
		{
			"type": "origins:keybind",
			"sprite": "origins:textures/gui/badge/active.png",
			"text": "Active ability, use with %s."
		}
	],
	"name": "Overclock Ammunition",
	"description": "You can consume an iron block while sneaking to instantly refill your ammunition."
}