{
	"type": "origins:multiple",
	"hex_active": {
		"type": "origins:active_self",
		"entity_action": {
			"type": "origins:and",
			"actions": [
				{
					"type": "origins:raycast",
					"distance": 6,
					"block": false,
					"entity": true,
					"shape_type": "outline",
					"fluid_handling": "none",
					"bientity_action": {
						"type": "origins:target_action",
						"action": {
							"type": "origins:apply_effect",
							"effects": [
								{
									"effect": "minecraft:darkness",
									"duration": 120,
									"amplifier": 0
								},
								{
									"effect": "attributeslib:sundering",
									"duration": 120,
									"amplifier": 0
								}
							]
						}
					}
				},
				{
					"type": "origins:delay",
					"ticks": 1,
					"action": {
						"type": "origins:change_resource",
						"resource": "drpg:warlock_hex_charges",
						"change": -1
					}
				},
				{
					"type": "origins:play_sound",
					"sound": "alexscaves:darkness_incarnate_enter",
					"pitch": 0.9
				}
			]
		},
		"condition": {
			"type": "origins:and",
			"conditions": [
				{
					"type": "origins:resource",
					"resource": "drpg:warlock_hex_charges",
					"comparison": ">",
					"compare_to": 0
				},
				{
					"type": "origins:resource",
					"resource": "drpg:armor_restriction",
					"comparison": "==",
					"compare_to": 0
				}
			]
		}
	}
}