{
	"type": "origins:multiple",
	"fire_weapon":{
		"type": "origins:active_self",
		"cooldown": 6,
		"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:resource",
						"comparison": ">",
						"resource": "ordnance:upkeep/passives_munitions",
						"compare_to": 3
					},
					"action": {
						"type": "origins:and",
						"actions": [
							{
								"type": "origins:if_else_list",
								"actions": [
									{
										"condition":{
											"type": "origins:and",
											"conditions": [
												{
													"type": "origins:fall_flying",
													"inverted": true
												}
											]
										},
										"action":{
											"type": "origins:raycast",
											"distance": 20,
											"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": 4,
																"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": 8,
																"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": 14,
																"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": 28,
																"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": 39,
																"source": {
																	"name": "fireworks",
																	"bypasses_armor": true
																}
															}
														}
													]
												}
											},
											"bientity_condition": {
												"type": "origins:and",
												"conditions":
												[
													{
														"type": "origins:can_see"
													},
													{
														"type": "origins:or",
														"conditions":
														[
															{
																"type": "origins:target_condition",
																"condition": {
																	"type": "origins:entity_type",
																	"entity_type": "minecraft:item"
																}
															},
															{
																"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
																						}
																					]
																				}
																			]
																		}
																	]
																}
															}
														]
													}
												]
											},
											"before_action": {
												"type": "origins:and",
												"actions": [
													{
														"type": "origins:execute_command",
														"command": "resource change @s ordnance:upkeep/passives_munitions -4"
													},
													{
														"type": "origins:execute_command",
														"command": "playsound minecraft:entity.firework_rocket.blast master @s ~ ~ ~ 0.5 1.85"
													},
													{
														"type": "origins:execute_command",
														"command": "particle minecraft:smoke ^0.2 ^1.6 ^0.5 0 0 0 2 0 normal @a"
													},
													{
														"type": "origins:execute_command",
														"command": "particle minecraft:enchanted_hit ^0.15 ^1.86 ^2 0 0 0 2 0 normal @a"
													},
													{
														"type": "origins:if_else_list",
														"actions": [
															{
																"condition": {
																	"type": "origins:sneaking",
																	"inverted": true
																},
																"action": {
																	"type": "origins:add_velocity",
																	"z": -0.15,
																	"space": "local"
																}
															}
														]
													},
													{
														"type": "origins:set_fall_distance",
														"fall_distance": 0
													}
												]
											},
											"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:fall_flying"
										},
										"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": 4,
																"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": 8,
																"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": 14,
																"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": 28,
																"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": 39,
																"source": {
																	"name": "fireworks",
																	"bypasses_armor": true
																}
															}
														}
													]
												}
											},
											"before_action": {
												"type": "origins:and",
												"actions": [
													{
														"type": "origins:execute_command",
														"command": "resource change @s ordnance:upkeep/passives_munitions -4"
													},
													{
														"type": "origins:execute_command",
														"command": "playsound minecraft:entity.firework_rocket.blast_far master @s ~ ~ ~ 1 1.85"
													},
													{
														"type": "origins:execute_command",
														"command": "particle minecraft:smoke ^0.2 ^ ^2.6 0 0 0 2 0 normal @a"
													},
													{
														"type": "origins:execute_command",
														"command": "particle minecraft:enchanted_hit ^0.15 ^ ^4.9 0 0 0 2 0 normal @a"
													},
													{
														"type": "origins:set_fall_distance",
														"fall_distance": 0
													}
												]
											},
											"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:resource",
						"comparison": "<",
						"resource": "ordnance:upkeep/passives_munitions",
						"compare_to": 4
					},
					"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.origins.primary_active",
			"continuous": true
		}
	},
    "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:entity_type",
									"entity_type": "minecraft:spider"
								}
							]
						}
					},
					{
						"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.origins.primary_active",
			"continuous": true
		}
	},
	"badges": [
		{
			"type": "origins:keybind",
			"sprite": "origins:textures/gui/badge/active.png",
			"text": "Active ability, use with %s."
		},
		{
			"type": "origins:keybind",
			"sprite": "origins:textures/gui/badge/star.png",
			"text": "Firing weapons will anger the following mobs if they can see you: Zombified Piglin, Warden, Enderman, Bee, Wolf, Spider."
		}
	],
	"name": "Piercing Stinger Cannon",
	"description": "When you hold your Primary Ability key, you use your ammunition to fire the armament described below. Creatures riding you can hold their jump key to also fire this weapon using your munitions with 50% reduced cooldown, power and ammo cost.\n \n- Piercing Stinger Cannon:\nAmmunition Cost: 4\nDamage: 4\nRange: 20 (50 when Airborne)\nSpecial: Protection Piercing\nDamage Type: Fireworks\n \nFires a high velocity armor-piercing projectile in a 20 block long line, which deals 4 damage. If you are flying, the range of the projectile becomes 50 blocks."
}