{
	"type": "origins:multiple",
	"fire_weapon":{
		"type": "origins:active_self",
		"cooldown": 2,
		"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:engineer/ammo_box",
						"compare_to": 0
					},
					"action": {
						"type": "origins:and",
						"actions": [
							{
								"type": "origins:raycast",
								"distance": 48,
								"block": true,
								"entity": true,
								"shape_type": "visual",
								"fluid_handling": "none",
								"bientity_action":{
									"type": "origins:target_action",
									"action":{
										"type": "origins:and",
										"actions":[
											{
												"type": "origins:execute_command",
												"command": "tag @s add ordtarget"
											},
											{
												"type": "origins:execute_command",
												"command": "power grant @s ordnance:invisible_ordnance ordnance"
											},
											{
												"type": "origins:execute_command",
												"command": "resource set @s ordnance:invisible_ordnance_targeted 4"
											},
											{
												"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
															}
														}
													}
												]
											}
										]
									}
								},
								"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:engineer/ammo_box -1"
										},
										{
											"type": "origins:execute_command",
											"command": "playsound minecraft:entity.firework_rocket.blast master @s ~ ~ ~ 0.3 1.5"
										},
										{
											"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:and",
														"conditions":[
															{
																"type": "origins:sneaking",
																"inverted": true
															},
															{
																"type": "origins:swimming",
																"inverted": true
															}
														]
													},
													"action": {
														"type": "origins:add_velocity",
														"z": -0.05,
														"space": "local"
													}
												}
											]
										}
									]
								},
								"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:engineer/ammo_box",
						"compare_to": 2
					},
					"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.secondary_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.secondary_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": "Tracer Machine Gun",
	"description": "When you hold your Secondary 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 extended range, but no marking effect.\n \n- Tracer Machine Gun:\nAmmunition Cost: 2\nDamage: 2\nRange: 48\nSpecial: Protection Piercing\nDamage Type: Fireworks\n \nFires a high velocity armor-piercing projectile in a 48 block long line, which deals 2 damage and marks target creatures with Ordnance's Lock-on."
}