//bridge-file-version: #12
{
	"format_version": "1.16.0",
	"minecraft:entity": {
		"description": {
			"identifier": "sc:bunzo_bunny",
			"is_spawnable": true,
			"is_summonable": true,
			"is_experimental": false,
			"animations": {
				"target": "controller.animation.sc_ppt_jumpscare",
				"jumpscare": "animation.ftl_bonzo_jumpscare",
				"noride": "controller.animation.sc_noride"
			},
			"scripts": {
				"animate": [
					"target",
					"noride"
				]
			}
		},
		"component_groups": {
			"can_jumpscare": {
				"minecraft:rideable": {
					"seat_count": 1,
					"seats": [
						{
							"position": [
								0,
								0.5,
								1.8
							],
							"rotate_rider_by": 180,
							"lock_rider_rotation": 0
						}
					]
				}
			},
			"jumpscare": {
				"minecraft:timer": {
					"looping": false,
					"randomInterval": false,
					"time": 0.54,
					"time_down_event": {
						"event": "jumpscare2"
					}
				}
			},
			"normal": {
				"minecraft:variant": {
					"value": 0
				}
			},
			"landing": {
				"minecraft:variant": {
					"value": 1
				}
			},
			"landing2": {
				"minecraft:variant": {
					"value": 2
				}
			},
			"j_cooldown": {
				"minecraft:timer": {
					"looping": false,
					"randomInterval": false,
					"time": 10,
					"time_down_event": {
						"event": "j_cooldown_done"
					}
				}
			}
		},
		"components": {
			"minecraft:is_hidden_when_invisible": {},
			"minecraft:nameable": {},
			"minecraft:type_family": {
				"family": [
					"monster",
					"bunzo"
				]
			},
			"minecraft:collision_box": {
				"width": 0.8,
				"height": 2.9
			},
			"minecraft:movement.basic": {},
			"minecraft:navigation.walk": {
				"is_amphibious": true,
				"can_pass_doors": true,
				"can_walk": true,
				"can_break_doors": true
			},
			"minecraft:movement": {
				"value": 0.27
			},
			"minecraft:annotation.break_door": {},
			"minecraft:scale": {
				"value": 0.75
			},
			"minecraft:jump.static": {},
			"minecraft:can_climb": {},
			"minecraft:attack": {
				"damage": 28
			},
			"minecraft:health": {
				"value": 100,
				"max": 100
			},
			"minecraft:follow_range": {
				"value": 30,
				"max": 30
			},
			"minecraft:leashable": {
				"soft_distance": 4,
				"hard_distance": 6,
				"max_distance": 10,
				"can_be_stolen": true
			},
			"minecraft:loot": {
				"table": "loot_tables/entities/zombie.json"
			},
			"minecraft:behavior.nearest_attackable_target": {
				"priority": 2,
				"must_see": true,
				"reselect_targets": true,
				"within_radius": 25,
				"must_see_forget_duration": 17,
				"entity_types": [
					{
						"filters": {
							"any_of": [
								{
									"test": "is_family",
									"subject": "other",
									"value": "player"
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "snowgolem"
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "irongolem"
								}
							]
						},
						"max_dist": 35
					},
					{
						"filters": {
							"any_of": [
								{
									"test": "is_family",
									"subject": "other",
									"value": "villager"
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "wandering_trader"
								}
							]
						},
						"max_dist": 35,
						"must_see": false
					},
					{
						"filters": {
							"all_of": [
								{
									"test": "is_family",
									"subject": "other",
									"value": "baby_turtle"
								},
								{
									"test": "in_water",
									"subject": "other",
									"operator": "!=",
									"value": true
								}
							]
						},
						"max_dist": 35
					}
				]
			},
			"minecraft:behavior.melee_attack": {
				"priority": 3,
				"track_target": true,
				"speed_multiplier": 1.25
			},
			"minecraft:behavior.random_stroll": {
				"priority": 7,
				"speed_multiplier": 1
			},
			"minecraft:behavior.look_at_player": {
				"priority": 8,
				"look_distance": 6,
				"probability": 0.02
			},
			"minecraft:behavior.random_look_around": {
				"priority": 9
			},
			"minecraft:behavior.hurt_by_target": {
				"priority": 1
			},
			"minecraft:knockback_resistance": {
				"value": 10
			},
			"minecraft:physics": {},
			"minecraft:pushable": {
				"is_pushable": true,
				"is_pushable_by_piston": true
			}
		},
		"events": {
			"minecraft:entity_spawned": {
				"add": {
					"component_groups": [
						"normal"
					]
				}
			},
			"can_jumpscare": {
				"add": {
					"component_groups": [
						"can_jumpscare"
					]
				}
			},
			"cant_jumpscare": {
				"remove": {
					"component_groups": [
						"can_jumpscare"
					]
				}
			},
			"jumpscare": {
				"add": {
					"component_groups": [
						"jumpscare"
					]
				},
				"run_command": {
					"command": [
						"effect @s slowness 1 50 true",
						"tp @s ~ ~ ~",
						"tp @s ~ ~ ~",
						"tp @s ~ ~ ~",
						"playsound ftl_sc.bunzo.attack @a",
						"ride @a[r=5,c=1,m=!c] start_riding @s teleport_rider until_full"
					],
					"target": "self"
				}
			},
			"jumpscare2": {
				"run_command": {
					"command": [
						"tag @a remove j",
						"tag @s remove r",
						"damage @a[r=5,m=!c,c=1] 60",
						"tag @s add j_cooldown",
						"ride @a[r=5,c=1,m=!c] stop_riding"
					],
					"target": "self"
				},
				"remove": {
					"component_groups": [
						"jumpscare"
					]
				},
				"add": {
					"component_groups": [
						"j_cooldown"
					]
				}
			},
			"landing": {
				"remove": {
					"component_groups": [
						"normal",
						"landing2"
					]
				},
				"add": {
					"component_groups": [
						"landing"
					]
				}
			},
			"landing2": {
				"remove": {
					"component_groups": [
						"normal",
						"landing"
					]
				},
				"add": {
					"component_groups": [
						"landing2"
					]
				}
			},
			"normal": {
				"remove": {
					"component_groups": [
						"landing2",
						"landing"
					]
				},
				"add": {
					"component_groups": [
						"normal"
					]
				}
			},
			"j_cooldown_done": {
				"run_command": {
					"command": [
						"tag @s remove j_cooldown"
					],
					"target": "self"
				}
			}
		}
	}
}
\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\\\"": \\\\""?\]}}}}}