{
	"type": "origins:multiple",
	"guns":
	{
		"type": "origins:active_self",
		"cooldown": 3,
		"hud_render": {
			"should_render": false,
			"sprite_location":"origins:textures/gui/community/spiderkolo/resource_bar_03.png",
			"bar_index": 7
		},
		"entity_action": {
			"type": "origins:if_else_list",
			"actions": [
				{
					"condition":{
						"type": "origins:riding_root",
						"bientity_condition":{
							"type": "origins:target_condition",
							"condition":{
								"type": "origins:or",
								"conditions":[
									{
										"type": "origins:resource",
										"comparison": ">",
										"resource": "ordnance:upkeep/passives_munitions",
										"compare_to": 2
									},
									{
										"type": "origins:resource",
										"comparison": ">",
										"resource": "ordnance:engineer/ammo_box",
										"compare_to": 2
									}
								]
							}
						}
					},
					"action":{
						"type": "origins:raycast",
						"distance": 50,
						"block": true,
						"entity": true,
						"shape_type": "visual",
						"fluid_handling": "none",
						"bientity_action": {
							"type": "origins:target_action",
							"action": {
								"type": "origins:if_else_list",
								"actions": [
									{
										"condition": {
											"type": "origins:and",
											"conditions": [
												{
													"type": "origins:enchantment",
													"enchantment": "minecraft:protection",
													"calculation": "sum",
													"comparison": "<",
													"compare_to": 8
												}
											]
										},
										"action": {
											"type": "origins:damage",
											"amount": 2,
											"source": {
												"name": "fireworks",
												"bypasses_armor": true
											}
										}
									},
									{
										"condition": {
											"type": "origins:and",
											"conditions": [
												{
													"type": "origins:enchantment",
													"enchantment": "minecraft:protection",
													"calculation": "sum",
													"comparison": ">=",
													"compare_to": 8
												},
												{
													"type": "origins:enchantment",
													"enchantment": "minecraft:protection",
													"calculation": "sum",
													"comparison": "<",
													"compare_to": 12
												}
											]
										},
										"action": {
											"type": "origins:damage",
											"amount": 4,
											"source": {
												"name": "fireworks",
												"bypasses_armor": true
											}
										}
									},
									{
										"condition": {
											"type": "origins:and",
											"conditions": [
												{
													"type": "origins:enchantment",
													"enchantment": "minecraft:protection",
													"calculation": "sum",
													"comparison": ">=",
													"compare_to": 12
												},
												{
													"type": "origins:enchantment",
													"enchantment": "minecraft:protection",
													"calculation": "sum",
													"comparison": "<",
													"compare_to": 16
												}
											]
										},
										"action": {
											"type": "origins:damage",
											"amount": 7,
											"source": {
												"name": "fireworks",
												"bypasses_armor": true
											}
										}
									},
									{
										"condition": {
											"type": "origins:and",
											"conditions": [
												{
													"type": "origins:enchantment",
													"enchantment": "minecraft:protection",
													"calculation": "sum",
													"comparison": ">=",
													"compare_to": 16
												},
												{
													"type": "origins:enchantment",
													"enchantment": "minecraft:protection",
													"calculation": "sum",
													"comparison": "<",
													"compare_to": 20
												}
											]
										},
										"action": {
											"type": "origins:damage",
											"amount": 14,
											"source": {
												"name": "fireworks",
												"bypasses_armor": true
											}
										}
									},
									{
										"condition": {
											"type": "origins:or",
											"conditions": [
												{
													"type": "origins:enchantment",
													"enchantment": "minecraft:protection",
													"calculation": "sum",
													"comparison": ">=",
													"compare_to": 20
												}
											]
										},
										"action": {
											"type": "origins:damage",
											"amount": 20,
											"source": {
												"name": "fireworks",
												"bypasses_armor": true
											}
										}
									}
								]
							}
						},
						"before_action": {
							"type": "origins:and",
							"actions": [
								{
									"type": "origins:execute_command",
									"command": "resource change @e[tag=upkeep,sort=nearest,distance=..4,limit=1] ordnance:upkeep/passives_munitions -2"
								},
								{
									"type": "origins:execute_command",
									"command": "resource change @e[tag=upkeeptool,sort=nearest,distance=..4,limit=1] ordnance:engineer/ammo_box -2"
								},
								{
									"type": "origins:execute_command",
									"command": "resource change @e[tag=trerror,sort=nearest,distance=..4,limit=1] ordnance:engineer/ammo_box -2"
								},
								{
									"type": "origins:execute_command",
									"command": "playsound minecraft:entity.firework_rocket.blast_far master @s ~ ~ ~ 1 2"
								},
								{
									"type": "origins:execute_command",
									"command": "particle minecraft:smoke ^0.2 ^1.2 ^0.5 0 0 0 2 0 normal @a"
								},
								{
									"type": "origins:execute_command",
									"command": "particle minecraft:enchanted_hit ^0.15 ^1.4 ^2 0 0 0 2 0 normal @a"
								}
							]
						},
						"command_at_hit": "particle minecraft:scrape ~ ~ ~ 0 0 0 0 1 normal @a",
						"command_step": 1,
						"command_along_ray_only_on_hit": false
					}
				},
				{
					"condition":{
						"type": "origins:riding_root",
						"bientity_condition":{
							"type": "origins:target_condition",
							"condition":{
								"type": "origins:or",
								"conditions":[
									{
										"type": "origins:resource",
										"comparison": "<",
										"resource": "ordnance:upkeep/passives_munitions",
										"compare_to": 3
									},
									{
										"type": "origins:resource",
										"comparison": "<",
										"resource": "ordnance:engineer/ammo_box",
										"compare_to": 3
									}
								]
							}
						}
					},
					"action":{
						"type": "origins:and",
						"actions": [
							{
								"type": "origins:execute_command",
								"command": "playsound minecraft:block.tripwire.attach master @s ~ ~ ~ 0.75 1.5"
							},
							{
								"type": "origins:execute_command",
								"command": "playsound minecraft:block.ancient_debris.hit master @s ~ ~ ~ 0.5 2"
							}
						]
					}
				}
			]
		},
		"key": {
			"key":"key.jump",
			"continuous": true
		}
	},
	"parachute":
	{
		"type": "origins:modify_falling",
		"velocity": 0.01,
		"take_fall_damage": false,
		"condition":{
			"type": "origins:riding",
			"bientity_condition": {
				"type": "origins:target_condition",
				"condition":{
					"type": "origins:and",
					"conditions": [
						{
							"type": "origins:living"
						},
						{
							"type": "origins:power",
							"power": "ordnance:upkeep/invincible_seats"
						}
					]
				}
			}
		}
	},
    "gun_illegal":
	{
		"type": "origins:active_self",
		"cooldown": 200,
		"hud_render": {
			"should_render": false
		},
		"entity_action":{
			"type": "origins:area_of_effect",
			"radius": 25,
			"bientity_action":{
				"type": "origins:and",
				"actions":[
					{
						"type": "origins:damage",
						"amount": 0,
						"damage_type": "minecraft:magic"
					},
					{
						"type": "origins:target_action",
						"action":{
							"type": "origins:execute_command",
							"command": "particle minecraft:angry_villager ^ ^2 ^ 0.5 0 0.5 2 3 force @a"
						}
					}
				]
			},
			"bientity_condition": {
				"type": "origins:and",
				"conditions":
				[
					{
						"type": "origins:can_see"
					},
					{
						"type": "origins:target_condition",
						"condition": {
							"type": "origins:or",
							"conditions":
							[
								{
									"type": "origins:entity_type",
									"entity_type": "minecraft:zombified_piglin"
								},
								{
									"type": "origins:entity_type",
									"entity_type": "minecraft:enderman"
								},
								{
									"type": "origins:entity_type",
									"entity_type": "minecraft:warden"
								},
								{
									"type": "origins:entity_type",
									"entity_type": "minecraft:wolf"
								},
								{
									"type": "origins:entity_type",
									"entity_type": "minecraft:bee"
								}
							]
						}
					},
					{
						"type": "origins:actor_condition",
						"condition":{
							"type": "origins:riding",
							"bientity_condition": {
								"type": "origins:target_condition",
								"condition":{
									"type": "origins:and",
									"conditions": [
										{
											"type": "origins:living"
										},
										{
											"type": "origins:power",
											"power": "ordnance:upkeep/invincible_seats"
										}
									]
								}
							}
						}
					},
					{
						"type": "origins:both",
						"condition": {
							"type": "origins:or",
							"conditions":
							[
								{
									"type": "origins:and",
									"conditions":
									[
										{
											"type": "origins:living"
										},
										{
											"type": "origins:resource",
											"comparison": "==",
											"resource": "othersider:invisible_otherside_otherside",
											"compare_to": 1
										},
										{
											"type": "origins:power",
											"power": "othersider:invisible_otherside_otherside"
										}
									]
								},
								{
									"type": "origins:and",
									"conditions":
									[
										{
											"type": "origins:living"
										},
										{
											"type": "origins:or",
											"conditions":
											[
												{
													"type": "origins:resource",
													"comparison": "==",
													"resource": "othersider:invisible_otherside_otherside",
													"compare_to": 0
												},
												{
													"type": "origins:power",
													"power": "othersider:invisible_otherside_otherside",
													"inverted": true
												}
											]
										}
									]
								}
							]
						}
					}
				]
			}
		},
		"key": {
			"key":"key.jump",
			"continuous": true
		}
	}
}