//bridge-file-version: #2
{
	"format_version": "1.16.0",
	"minecraft:entity": {
		"description": {
			"identifier": "agp:tornado2",
			"is_spawnable": false,
			"is_summonable": true,
			"is_experimental": false,
			"scripts": {
				"animate": [
					"dir2",
					"SpinCycle2",
					"InDistance",
					"FunnelCloud0",
					"CloudFollow",
					"DB2",
					"Re",
					"SoundEmitt",
					"Spin",
					"GetFam"
				]
			},
			"animations": {
				"dir2": "controller.animation.tornado.dir2",
				"SpinCycle2": "animation.SpinCycle2",
				"InDistance": "animation.InDistance",
				"FunnelCloud0": "animation.FunnelCloud0",
				"DB2": "animation.DB2",
				"Re": "animation.Re",
				"CloudFollow": "animation.CloudFollow",
				"SoundEmitt": "animation.SoundEmitt",
				"Spin": "animation.Spin",
				"GetFam": "animation.GetFam"
			}
		},
		"component_groups": {
			"SizeUp3": {
				"minecraft:transformation": {
					"into": "agp:tornado3"
				}
			},
			"Time3": {
				"minecraft:timer": {
					"looping": false,
					"time": [
						356,
						600
					],
					"time_down_event": {
						"event": "Become_F3"
					}
				}
			},
			"dir1": {
				"minecraft:variant": {
					"value": 0
				}
			},
			"dir2": {
				"minecraft:variant": {
					"value": 1
				}
			},
			"dir3": {
				"minecraft:variant": {
					"value": 2
				}
			},
			"dir4": {
				"minecraft:variant": {
					"value": 3
				}
			},
			"OnWater": {
				"minecraft:transformation": {
					"into": "agp:spout2"
				}
			}
		},
		"components": {
			"minecraft:nameable": {},
			"minecraft:type_family": {
				"family": [
					"tornado",
					"agp",
					"mob"
				]
			},
			"minecraft:movement.basic": {},
			"minecraft:navigation.walk": {
				"is_amphibious": true,
				"can_pass_doors": true,
				"can_walk": true,
				"can_break_doors": true
			},
			"minecraft:jump.static": {},
			"minecraft:can_climb": {},
			"minecraft:breathable": {
				"total_supply": 15,
				"suffocate_time": 0,
				"breathes_air": true,
				"breathes_water": true
			},
			"minecraft:health": {
				"value": 1000000,
				"max": 1000000
			},
			"minecraft:environment_sensor": {
				"triggers": [
					{
						"filters": {
							"test": "in_water",
							"value": true
						},
						"event": "OnWater",
						"target": "self"
					}
				]
			},
			"minecraft:behavior.avoid_block": {
				"priority": 1,
				"search_range": 9,
				"target_blocks": [
					"minecraft:water"
				]
			},
			"minecraft:hurt_on_condition": {
				"damage_conditions": [
					{
						"filters": {
							"test": "in_lava",
							"subject": "self",
							"operator": "==",
							"value": true
						},
						"cause": "lava",
						"damage_per_tick": 4
					}
				]
			},
			"minecraft:behavior.melee_attack": {
				"priority": 3
			},
			"minecraft:behavior.hurt_by_target": {
				"priority": 1
			},
			"minecraft:physics": {},
			"minecraft:pushable": {
				"is_pushable": true,
				"is_pushable_by_piston": true
			}
		},
		"events": {
			"minecraft:entity_spawned": {
				"add": {
					"component_groups": [
						"Time3"
					]
				},
				"trigger": "Random_Dir"
			},
			"Become_F3": {
				"add": {
					"component_groups": [
						"SizeUp3"
					]
				}
			},
			"Random_Dir": {
				"randomize": [
					{
						"weight": 5,
						"add": {
							"component_groups": [
								"dir1"
							]
						}
					},
					{
						"weight": 4.3,
						"add": {
							"component_groups": [
								"dir2"
							]
						}
					},
					{
						"weight": 2,
						"add": {
							"component_groups": [
								"dir3"
							]
						}
					},
					{
						"weight": 3,
						"add": {
							"component_groups": [
								"dir4"
							]
						}
					}
				]
			},
			"OnWater": {
				"add": {
					"component_groups": [
						"OnWater"
					]
				}
			}
		}
	}
}