{
	"type": "origins:action_on_callback",
	"entity_action_added": {
		"type": "origins:and",
		"actions": [
			{
			  "type": "origins:execute_command",
			  "command": "particle minecraft:smoke ~ ~1 ~ 1 0.2 1 0 2"
			},
			{
			  "type": "origins:execute_command",
			  "command": "particle minecraft:small_flame ~ ~ ~ 1 0.2 1 0 5"
			},
			{
				"type": "origins:area_of_effect",
				"radius": 3,
				"bientity_action": {
					"type": "origins:target_action",
					"action": {
						"type": "origins:if_else_list",
						"actions": [
							{
								"condition": {
									"type": "origins:and",
									"conditions": [
										{    
											"type": "origins:fluid_height",
											"fluid": "minecraft:water",
											"comparison": ">",
											"compare_to": 0,
											"inverted": true
										},
										{
											"type": "origins:in_rain",
											"inverted": true
										},
										{
											"type": "origins:in_block",
											"block_condition": {
												"type": "origins:block",
												"block": "minecraft:water_cauldron"
											},
											"inverted": true
										}
									]
								},
								"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:and",
												"actions": [
													{
														"type": "origins:execute_command",
														"command": "playsound minecraft:entity.player.hurt_on_fire master @a ~ ~ ~ 1 1"
													},
													{
														"type": "origins:set_on_fire",
														"duration": 10
													},
													{
														"type": "origins:damage",
														"amount": 2,
														"source": {
															"name": "onFire",
															"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:and",
												"actions": [
													{
														"type": "origins:execute_command",
														"command": "playsound minecraft:entity.player.hurt_on_fire master @a ~ ~ ~ 1 1"
													},
													{
														"type": "origins:set_on_fire",
														"duration": 10
													},
													{
														"type": "origins:damage",
														"amount": 6,
														"source": {
															"name": "onFire",
															"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:and",
												"actions": [
													{
														"type": "origins:execute_command",
														"command": "playsound minecraft:entity.player.hurt_on_fire master @a ~ ~ ~ 1 1"
													},
													{
														"type": "origins:set_on_fire",
														"duration": 10
													},
													{
														"type": "origins:damage",
														"amount": 10,
														"source": {
															"name": "onFire",
															"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:and",
												"actions": [
													{
														"type": "origins:execute_command",
														"command": "playsound minecraft:entity.player.hurt_on_fire master @a ~ ~ ~ 1 1"
													},
													{
														"type": "origins:set_on_fire",
														"duration": 10
													},
													{
														"type": "origins:damage",
														"amount": 18.5,
														"source": {
															"name": "onFire",
															"bypasses_armor": true
														}
													}
												]
											}
										},
										{
											"condition":{
												"type": "origins:enchantment",
												"enchantment": "minecraft:protection",
												"calculation": "sum",
												"comparison": ">=",
												"compare_to": 20
											},
											"action": {
												"type": "origins:and",
												"actions": [
													{
														"type": "origins:execute_command",
														"command": "playsound minecraft:entity.player.hurt_on_fire master @a ~ ~ ~ 1 1"
													},
													{
														"type": "origins:set_on_fire",
														"duration": 10
													},
													{
														"type": "origins:damage",
														"amount": 26,
														"source": {
															"name": "onFire",
															"bypasses_armor": true
														}
													}
												]
											}
										}
									]
								}
							}
						]
					}
				},
				"bientity_condition": {
					"type": "origins:and",
					"conditions":
					[
						{
							"type": "origins:can_see"
						},
						{
							"type": "origins:target_condition",
							"condition": {
								"type": "origins:and",
								"conditions":
								[
									{
										"type": "origins:power",
										"power": "ordnance:weapons/weaponry_mine",
										"inverted": true
									},
									{
										"type": "origins:power",
										"power": "ordnance:weapons/weaponry_missile",
										"inverted": true
									},
									{
										"type": "origins:power",
										"power": "ordnance:weapons/weaponry_swarmissile",
										"inverted": true
									},
									{
										"type": "origins:power",
										"power": "ordnance:weapons/weaponry_transport",
										"inverted": true
									},
									{
										"type": "origins:power",
										"power": "ordnance:weapons/weaponry_bomb",
										"inverted": true
									},
									{
										"type": "origins:power",
										"power": "ordnance:weapons/weaponry_friendrone",
										"inverted": true
									},
									{
										"type": "origins:nbt",
										"nbt": "{Tags: ['ordscorcher']}",
										"inverted": true
									},
									{
										"type": "origins:nbt",
										"nbt": "{Tags: ['ordflame']}",
										"inverted": true
									}
								]
							}
						},
						{
							"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
															}
														]
													}
												]
											}
										]
									}
								}
							]
						}
					]
				}
			},
			{
				"type": "origins:delay",
				"ticks": 1,
				"action":{
					"type": "origins:and",
					"actions": [
						{
							"type": "origins:execute_command",
							"command": "kill @s"
						}
					]
				}
			}
		]
	},
	"no_collision": 
	{
		"type": "origins:prevent_entity_collision"
	},
	"death": 
	{
		"type": "origins:resource",
		"min": 0,
		"max": 1,
		"start_value": 1,
		"hud_render": {
			"should_render": false
		}
	},
	"timer": 
	{
		"type": "origins:action_over_time",
		"interval": 9,
		"entity_action": {
			"type": "origins:if_else_list",
			"actions": [
				{
					"condition": {
						"type": "origins:and",
						"conditions": [
							{
								"type": "origins:resource",
								"comparison": ">",
								"resource": "*:*_death",
								"compare_to": 0
							}
						]
					},
					"action": {
						"type": "origins:and",
						"actions": [
							{
								"type": "origins:execute_command",
								"command": "resource change @s ordnance:weapons/weaponry_flamethrower_death -1"
							}
						]
					}
				},
				{
					"condition": {
						"type": "origins:and",
						"conditions": [
							{
								"type": "origins:resource",
								"comparison": "==",
								"resource": "*:*_death",
								"compare_to": 0
							}
						]
					},
					"action": {
						"type": "origins:and",
						"actions": [
							{
								"type": "origins:execute_command",
								"command": "kill @s"
							},
							{
								"type": "origins:execute_command",
								"command": "tp @s ~ ~-300 ~"
							}
						]
					}
				}
			]
		}
	}
}