{
	"type": "origins:multiple",
	"charges_max": {
		"type": "origins:resource",
		"min": 1,
		"max": 6,
		"start_value": 1
	},
	"charges": {
		"type": "origins:resource",
		"min": 0,
		"max": 7,
		"start_value": 1,
		"hud_render": {
			"sprite_location": "origins:textures/gui/community/spiderkolo/resource_bar_02.png",
			"bar_index": 18,
			"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_on_sleep": {
		"type": "origins:action_on_wake_up",
		"entity_action": {
			"type": "origins:side",
			"action": {
				"type": "origins:modify_resource",
				"modifier": {
					"operation": "set_total",
					"value": 0,
					"resource": "drpg:warlock_hex_charges_max"
				},
				"resource": "drpg:warlock_hex_charges"
			},
			"side": "server"
		}
	},
	"restore_on_kill": {
		"type": "origins:self_action_on_kill",
		"target_condition": {
			"type": "origins:status_effect",
			"effect": "minecraft:darkness"
		},
		"entity_action": {
			"type": "origins:modify_resource",
			"modifier": {
				"operation": "set_total",
				"value": 0,
				"resource": "drpg:warlock_hex_charges_max"
			},
			"resource": "drpg:warlock_hex_charges"
		}
	}
}