{
	"format_version": "1.16.100",
	"minecraft:entity": {
		"description": {
			"identifier": "cc_fairytales:rune",
			"is_spawnable": true,
			"is_summonable": true,
			"is_experimental": false
		},
		"component_groups": {
			"llamando_minotauro": {
				"minecraft:behavior.send_event": {
					"cast_duration": 0,
					"event_choices": [
						{
							"weight": 3,
							"filters": {
								"all_of": [
									{
										"test": "is_family",
										"subject": "other",
										"value": "minotaur"
									}
								]
							},
							"sequence": [
								{
									"event": "runa_destruida"
								}
							]
						}
					]
				}
			},
			"tvida": {
				"minecraft:timer": {
					"time": 0.1,
					"looping": false,
					"time_down_event": {
						"event": "muerte",
						"target": "self"
					}
				},
				"minecraft:scale": {
					"value": 0
				}
			},
			"die": {
				"minecraft:health": {
					"value": 0
				}
			},
			"vida80": {
				"minecraft:variant": {
					"value": 0
				},
				"minecraft:environment_sensor": {
					"triggers": [
						{
							"event": "var1",
							"filters": {
								"all_of": [
									{
										"test": "actor_health",
										"subject": "self",
										"value": 70,
										"operator": "<="
									}
								]
							}
						}
					]
				}
			},
			"vida70": {
				"minecraft:variant": {
					"value": 1
				},
				"minecraft:environment_sensor": {
					"triggers": [
						{
							"event": "var2",
							"filters": {
								"all_of": [
									{
										"test": "actor_health",
										"subject": "self",
										"value": 60,
										"operator": "<="
									}
								]
							}
						}
					]
				}
			},
			"vida60": {
				"minecraft:variant": {
					"value": 2
				},
				"minecraft:environment_sensor": {
					"triggers": [
						{
							"event": "var3",
							"filters": {
								"all_of": [
									{
										"test": "actor_health",
										"subject": "self",
										"value": 50,
										"operator": "<="
									}
								]
							}
						}
					]
				}
			},
			"vida50": {
				"minecraft:variant": {
					"value": 3
				},
				"minecraft:environment_sensor": {
					"triggers": [
						{
							"event": "var4",
							"filters": {
								"all_of": [
									{
										"test": "actor_health",
										"subject": "self",
										"value": 40,
										"operator": "<="
									}
								]
							}
						}
					]
				}
			},
			"vida40": {
				"minecraft:variant": {
					"value": 4
				},
				"minecraft:environment_sensor": {
					"triggers": [
						{
							"event": "var5",
							"filters": {
								"all_of": [
									{
										"test": "actor_health",
										"subject": "self",
										"value": 30,
										"operator": "<="
									}
								]
							}
						}
					]
				}
			},
			"vida30": {
				"minecraft:variant": {
					"value": 5
				},
				"minecraft:environment_sensor": {
					"triggers": [
						{
							"event": "var6",
							"filters": {
								"all_of": [
									{
										"test": "actor_health",
										"subject": "self",
										"value": 20,
										"operator": "<="
									}
								]
							}
						}
					]
				}
			},
			"vida20": {
				"minecraft:variant": {
					"value": 6
				},
				"minecraft:environment_sensor": {
					"triggers": [
						{
							"event": "var7",
							"filters": {
								"all_of": [
									{
										"test": "actor_health",
										"subject": "self",
										"value": 10,
										"operator": "<="
									}
								]
							}
						}
					]
				}
			},
			"vida10": {
				"minecraft:variant": {
					"value": 7
				}
			}
		},
		"components": {
			"minecraft:ambient_sound_interval": {
				"event_name": "ambient",
				"range": 3,
				"value": 3
			},
			"minecraft:physics": {
				"has_gravity": true,
				"has_collision": true
			},
			"minecraft:pushable": {
				"is_pushable": false
			},
			"minecraft:type_family": {
				"family": [
					"rune"
				]
			},
			"minecraft:collision_box": {
				"width": 3,
				"height": 2.4
			},
			"minecraft:push_through": {
				"value": 1
			},
			"minecraft:health": {
				"value": 80
			},
			"minecraft:damage_sensor": {
				"triggers": [
					{
						"on_damage": {
							"filters": {
								"all_of": [
									{
										"test": "has_damage",
										"subject": "self",
										"value": "fatal"
									}
								]
							},
							"event": "llamar_minotauro"
						},
						"deals_damage": false
					}
				]
			},
			"minecraft:behavior.knockback_roar": {
				"priority": 1,
				"duration": 1,
				"attack_time": 0.5,
				"knockback_damage": 20,
				"knockback_horizontal_strength": 5,
				"knockback_vertical_strength": 5,
				"knockback_range": 7,
				"damage_filters": {},
				"cooldown_time": 3
			},
			"minecraft:behavior.delayed_attack": {
				"priority": 7,
				"attack_once": false,
				"track_target": false,
				"require_complete_path": false,
				"random_stop_interval": 0,
				"reach_multiplier": 3,
				"speed_multiplier": 1.0,
				"attack_duration": 2,
				"hit_delay_pct": 0.2
			},
			"minecraft:behavior.nearest_attackable_target": {
				"priority": 3,
				"must_see": true,
				"within_radius": 16.0,
				"entity_types": [
					{
						"filters": {
							"any_of": [
								{
									"subject": "other",
									"test": "is_family",
									"value": "player"
								}
							]
						},
						"max_dist": 16
					}
				]
			},
			"minecraft:knockback_resistance": {
				"value": 100
			}
		},
		"events": {
			"minecraft:entity_spawned": {
				"add": {
					"component_groups": [
						"vida80"
					]
				}
			},
			"llamar_minotauro": {
				"add": {
					"component_groups": [
						"llamando_minotauro",
						"tvida"
					]
				}
			},
			"muerte": {
				"add": {
					"component_groups": [
						"die"
					]
				}
			},
			"var7": {
				"add": {
					"component_groups": [
						"vida10"
					]
				}
			},
			"var6": {
				"add": {
					"component_groups": [
						"vida20"
					]
				}
			},
			"var5": {
				"add": {
					"component_groups": [
						"vida30"
					]
				}
			},
			"var4": {
				"add": {
					"component_groups": [
						"vida40"
					]
				}
			},
			"var3": {
				"add": {
					"component_groups": [
						"vida50"
					]
				}
			},
			"var2": {
				"add": {
					"component_groups": [
						"vida60"
					]
				}
			},
			"var1": {
				"add": {
					"component_groups": [
						"vida70"
					]
				}
			}
		}
	}
}