{
	"format_version": "1.20.80",
	"minecraft:entity": {
		"description": {
			"identifier": "shapescape_mb:frog_boss_totem",
			"is_spawnable": false,
			"is_summonable": true,
			"is_experimental": false,
			"animations": {
				"ac.health": "controller.animation.frog_boss_totem.health"
			},
			"scripts": {
				"animate": [
					"ac.health"
				]
			},
			"properties": {
				"shapescape_mb:boss_class": {
					"type": "enum",
					"default": "common",
					"values": [
						"common",
						"uncommon",
						"rare",
						"epic",
						"legendary",
						"impossible"
					]
				},
				"shapescape_mb:is_initialized": {
					"type": "bool",
					"client_sync": true,
					"default": false
				}
			}
		},
		"component_groups": {
			"shapescape_mb:spawning": {
				"minecraft:timer": {
					"time": 2,
					"looping": true,
					"time_down_event": {
						"event": "shapescape_mb:set_component_is_initialized_true",
						"target": "self"
					}
				}
			},
			"shapescape_mb:full_health": {
				"minecraft:variant": {
					"value": 0
				}
			},
			"shapescape_mb:damage_1": {
				"minecraft:variant": {
					"value": 1
				}
			},
			"shapescape_mb:damage_2": {
				"minecraft:variant": {
					"value": 2
				}
			},
			"shapescape_mb:despawn": {
				"minecraft:instant_despawn": {}
			},
			"shapescape_mb:common_entity_spawned": {
				"minecraft:health": {
					"value": 100,
					"max": 100
				},
				"minecraft:boss": {
					"hud_range": 55,
					"name": "entity.shapescape_mb:frog_boss_totem.name",
					"should_darken_sky": false
				}
			},
			"shapescape_mb:uncommon_entity_spawned": {
				"minecraft:health": {
					"value": 120,
					"max": 120
				},
				"minecraft:boss": {
					"hud_range": 55,
					"name": "entity.shapescape_mb:frog_boss_totem.name",
					"should_darken_sky": false
				}
			},
			"shapescape_mb:rare_entity_spawned": {
				"minecraft:health": {
					"value": 170,
					"max": 170
				},
				"minecraft:boss": {
					"hud_range": 55,
					"name": "entity.shapescape_mb:frog_boss_totem.name",
					"should_darken_sky": false
				}
			},
			"shapescape_mb:epic_entity_spawned": {
				"minecraft:health": {
					"value": 210,
					"max": 210
				},
				"minecraft:boss": {
					"hud_range": 55,
					"name": "entity.shapescape_mb:frog_boss_totem.name",
					"should_darken_sky": false
				}
			},
			"shapescape_mb:legendary_entity_spawned": {
				"minecraft:health": {
					"value": 240,
					"max": 240
				},
				"minecraft:boss": {
					"hud_range": 55,
					"name": "entity.shapescape_mb:frog_boss_totem.name",
					"should_darken_sky": false
				}
			},
			"shapescape_mb:impossible_entity_spawned": {
				"minecraft:health": {
					"value": 300,
					"max": 300
				},
				"minecraft:boss": {
					"hud_range": 55,
					"name": "entity.shapescape_mb:frog_boss_totem.name",
					"should_darken_sky": false
				}
			}
		},
		"components": {
			"minecraft:damage_sensor": {
				"triggers": [
					{
						"cause": "fall",
						"deals_damage": false
					},
					{
						"cause": "projectile",
						"on_damage": {
							"filters": {
								"test": "is_variant",
								"value": 2
							}
						},
						"deals_damage": false
					}
				]
			},
			"minecraft:type_family": {
				"family": [
					"shapescape_mb_frog_boss_totem"
				]
			},
			"minecraft:physics": {
				"has_gravity": true
			},
			"minecraft:collision_box": {
				"width": 0.8,
				"height": 1.8
			},
			"minecraft:push_through": {
				"value": 1
			},
			"minecraft:pushable": {
				"is_pushable": false,
				"is_pushable_by_piston": true
			},
			"minecraft:knockback_resistance": {
				"value": 1
			}
		},
		"events": {
			"minecraft:entity_spawned": {
				"trigger": "shapescape_mb:common_entity_spawned"
			},
			"shapescape_mb:full_health": {
				"add": {
					"component_groups": [
						"shapescape_mb:full_health"
					]
				}
			},
			"shapescape_mb:damage_1": {
				"add": {
					"component_groups": [
						"shapescape_mb:damage_1"
					]
				}
			},
			"shapescape_mb:damage_2": {
				"add": {
					"component_groups": [
						"shapescape_mb:damage_2"
					]
				}
			},
			"shapescape_mb:set_component_is_initialized_true": {
				"set_property": {
					"shapescape_mb:is_initialized": true
				}
			},
			"shapescape_mb:despawn": {
				"add": {
					"component_groups": [
						"shapescape_mb:despawn"
					]
				}
			},
			"shapescape_mb:common_entity_spawned": {
				"set_property": {
					"shapescape_mb:boss_class": "common"
				},
				"add": {
					"component_groups": [
						"shapescape_mb:common_entity_spawned",
						"shapescape_mb:full_health"
					]
				}
			},
			"shapescape_mb:uncommon_entity_spawned": {
				"set_property": {
					"shapescape_mb:boss_class": "uncommon"
				},
				"add": {
					"component_groups": [
						"shapescape_mb:uncommon_entity_spawned",
						"shapescape_mb:full_health"
					]
				}
			},
			"shapescape_mb:rare_entity_spawned": {
				"set_property": {
					"shapescape_mb:boss_class": "rare"
				},
				"add": {
					"component_groups": [
						"shapescape_mb:rare_entity_spawned",
						"shapescape_mb:full_health"
					]
				}
			},
			"shapescape_mb:epic_entity_spawned": {
				"set_property": {
					"shapescape_mb:boss_class": "epic"
				},
				"add": {
					"component_groups": [
						"shapescape_mb:epic_entity_spawned",
						"shapescape_mb:full_health"
					]
				}
			},
			"shapescape_mb:legendary_entity_spawned": {
				"set_property": {
					"shapescape_mb:boss_class": "legendary"
				},
				"add": {
					"component_groups": [
						"shapescape_mb:legendary_entity_spawned",
						"shapescape_mb:full_health"
					]
				}
			},
			"shapescape_mb:impossible_entity_spawned": {
				"set_property": {
					"shapescape_mb:boss_class": "impossible"
				},
				"add": {
					"component_groups": [
						"shapescape_mb:impossible_entity_spawned",
						"shapescape_mb:full_health"
					]
				}
			}
		}
	}
}