{
	"type": "origins:multiple",
	"channel_divinity": {
		"type": "origins:active_self",
		"entity_action": {
			"type": "origins:and",
			"actions": [
				{
					"type": "origins:area_of_effect",
					"radius": 8,
					"bientity_action": {
						"type": "origins:target_action",
						"action": {
							"type": "origins:damage",
							"amount": 10,
							"damage_type": "minecraft:wither"
						}
					}
				},
				{
					"type": "origins:delay",
					"ticks": 1,
					"action": {
						"type": "origins:modify_resource",
						"modifier": {
							"operation": "add_base_early",
							"value": 0,
							"resource": "drpg:cleric_channel_divinity_cooldown"
						},
						"resource": "drpg:cleric_channel_divinity_charge"
					}
				},
				{
					"type": "origins:play_sound",
					"sound": "irons_spellbooks:spell.earthquake.cast",
					"pitch": 0.8
				}
			]
		},
		"condition": {
			"type": "origins:or",
			"conditions": [
				{
					"type": "origins:and",
					"conditions": [
						{
							"type": "origins:resource",
							"resource": "drpg:cleric_channel_divinity_cooldown",
							"comparison": ">",
							"compare_to": 30
						},
						{
							"type": "origins:resource",
							"resource": "drpg:cleric_channel_divinity_charge",
							"comparison": "==",
							"compare_to": 0
						},
						{
							"type": "origins:resource",
							"resource": "drpg:armor_restriction",
							"comparison": "==",
							"compare_to": 0
						}
					]
				},
				{
					"type": "origins:and",
					"conditions": [
						{
							"type": "origins:resource",
							"resource": "drpg:cleric_channel_divinity_cooldown",
							"comparison": "<=",
							"compare_to": 30
						},
						{
							"type": "origins:resource",
							"resource": "drpg:cleric_channel_divinity_charge",
							"comparison": "<=",
							"compare_to": 30
						},
						{
							"type": "origins:resource",
							"resource": "drpg:armor_restriction",
							"comparison": "==",
							"compare_to": 0
						}
					]
				}
			]
		}
	}
}