{
	"type": "origins:multiple",
	"charges_max": {
		"type": "origins:resource",
		"min": 1,
		"max": 4,
		"start_value": 1
	},
	"charges": {
		"type": "origins:resource",
		"min": 0,
		"max": 7,
		"start_value": 1,
		"hud_render": {
			"sprite_location": "origins:textures/gui/community/huang/resource_bar_01.png",
			"bar_index": 12,
			"order": 0,
			"condition": {
				"type": "origins:resource",
				"resource": "drpg:armor_restriction",
				"comparison": "==",
				"compare_to": 0
			}
		}
	},
	"charges_locked": {
		"type": "origins:resource",
		"min": 0,
		"max": 7,
		"start_value": 7,
		"hud_render": {
			"sprite_location": "origins:textures/gui/community/spiderkolo/resource_bar_01.png",
			"bar_index": 23,
			"order": 0,
			"condition": {
				"type": "origins:resource",
				"resource": "drpg:armor_restriction",
				"comparison": ">",
				"compare_to": 0
			}
		}
	},
	"restore": {
		"type": "origins:action_on_wake_up",
		"entity_action": {
			"type": "origins:side",
			"action": {
				"type": "origins:modify_resource",
				"modifier": {
					"operation": "set_total",
					"value": 0,
					"resource": "drpg:wizard_arcane_recovery_charges_max"
				},
				"resource": "drpg:wizard_arcane_recovery_charges"
			},
			"side": "server"
		}
	},
	"active": {
		"type": "origins:active_self",
		"entity_action": {
			"type": "origins:and",
			"actions": [
				{
					"type": "origins:execute_command",
					"command": "mana add @s 200"
				},
				{
					"type": "origins:delay",
					"ticks": 1,
					"action": {
						"type": "origins:change_resource",
						"resource": "drpg:wizard_arcane_recovery_charges",
						"change": -1
					}
				},
				{
					"type": "origins:play_sound",
					"sound": "irons_spellbooks:cast.generic.holy",
					"pitch": 1.5
				}
			]
		},
		"condition": {
			"type": "origins:and",
			"conditions": [
				{
					"type": "origins:resource",
					"resource": "drpg:wizard_arcane_recovery_charges",
					"comparison": ">",
					"compare_to": 0
				},
				{
					"type": "origins:resource",
					"resource": "drpg:armor_restriction",
					"comparison": "==",
					"compare_to": 0
				}
			]
		}
	}
}