{
	"type": "origins:multiple",
	"fire_weapon":{
		"type": "origins:active_self",
		"cooldown": 40,
		"hud_render": {
			"should_render": false,
			"sprite_location":"origins:textures/gui/community/spiderkolo/resource_bar_03.png",
			"bar_index": 7
		},
		"entity_action":{
			"type": "origins:and",
			"actions":[
				{
					"type": "origins:execute_command",
					"command": "resource change @s ordnance:engineer/ammo_box -50"
				},
				{
					"type": "origins:execute_command",
					"command": "effect give @s minecraft:slowness 2 2 true"
				},
				{
					"type": "origins:execute_command",
					"command": "summon ocelot ^ ^2 ^ {CustomName:'[{\"text\":\"Autoturret\",\"color\":\"dark_red\",\"bold\":true}]',Silent:1b,Tags:[\"turret\"],cardinal_components:{\"apoli:powers\":{Powers:[{Type:\"ordnance:weapons/weaponry_turret\",Data:1b,Sources:[\"minecraft:turret\"]}]}}}"
				},
				{
					"type": "origins:delay",
					"ticks": 5,
					"action":{
						"type": "origins:and",
						"actions":[
							{
								"type": "origins:execute_command",
								"command": "playsound minecraft:entity.generic.explode master @a ~ ~ ~ 0.5 0.3"
							},
							{
								"type": "origins:execute_command",
								"command": "particle minecraft:poof ^ ^1 ^ 0 0 0 0.5 10 force @a"
							},
							{
								"type": "origins:execute_command",
								"command": "particle minecraft:explosion ^ ^1 ^ 0 0 0 0 3 normal @a"
							},
							{
								"type": "origins:if_else_list",
								"actions": [
									{
										"condition": {
											"type": "origins:sneaking",
											"inverted": true
										},
										"action": {
											"type": "origins:add_velocity",
											"z": -0.4,
											"space": "local"
										}
									}
								]
							},
							{
								"type": "origins:delay",
								"ticks": 20,
								"action":{
									"type": "origins:and",
									"actions":[
										{
											"type": "origins:execute_command",
											"command": "playsound minecraft:block.piston.contract master @a ~ ~ ~ 0.5 0.3"
										},
										{
											"type": "origins:delay",
											"ticks": 10,
											"action":{
												"type": "origins:and",
												"actions":[
													{
														"type": "origins:execute_command",
														"command": "playsound minecraft:block.piston.extend master @a ~ ~ ~ 0.5 0.3"
													},
													{
														"type": "origins:execute_command",
														"command": "effect clear @s minecraft:slowness"
													}
												]
											}
										}
									]
								}
							}
						]
					}
				}
			]
		},
		"key": {
			"key":"key.origins.primary_active",
			"continuous": false
		}
	},
    "gun_illegal":
	{
		"type": "origins:active_self",
		"cooldown": 40,
		"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": "Le Turret",
	"description": "When you press your Primary Ability key, you summon a turret. It is violent. Run."
}