{
	"type": "origins:multiple",
	"fire_weapon":{
		"type": "origins:active_self",
		"cooldown": 20,
		"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": 99
					},
					"action":{
						"type": "origins:and",
						"actions": [
							{
								"type": "origins:execute_command",
								"command": "resource change @s ordnance:engineer/ammo_box -100"
							},
							{
								"type": "origins:execute_command",
								"command": "playsound minecraft:block.barrel.open master @a ~ ~ ~ 0.5 0.3"
							},
							{
								"type": "origins:execute_command",
								"command": "summon armor_stand ^ ^ ^9 {NoGravity:1b,Silent:1b,Tags:[\"ordtarget\"],cardinal_components:{\"apoli:powers\":{Powers:[{Type:\"ordnance:weapons/marker_brief\",Data:1b,Sources:[\"minecraft:ordweapon\"]}]}}}"
							},
							{
								"type": "origins:execute_command",
								"command": "summon bee ^ ^0.6 ^ {CustomName:'[{\"text\":\"Homing Rocket\",\"color\":\"dark_red\",\"bold\":true}]',NoGravity:1b,Silent:1b,Tags:[\"homket\"],cardinal_components:{\"apoli:powers\":{Powers:[{Type:\"ordnance:weapons/weaponry_homing_rocket\",Data:1b,Sources:[\"minecraft:engiweapon\"]}]}}}"
							}
						]
					}
				}
			]
		},
		"key": {
			"key":"key.origins.primary_active",
			"continuous": false
		}
	},
    "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": "Homing Rocket",
	"description": "When you press your Primary Ability key, you use your ammunition to fire the armament described below.\n \n- Homing Rocket:\nAmmunition Cost: 100\nDamage: 2\nLock-on Distance: 20\nDamage Type: Explosion\n \nFires one homing rocket that seeks the closest target and explodes on impact, or after 10 seconds of flight."
}