{
	"format_version": "1.16.100",
	"minecraft:entity": {
		"description": {
			"identifier": "cc_fairytales:fairy_lava",
			"is_spawnable": true,
			"is_summonable": true,
			"is_experimental": false,
			"animations": {
				"fairy": "controller.animation.cc_fairytales.fairy_day"
			},
			"scripts": {
				"animate": [
					"fairy"
				]
			}
		},
		"component_groups": {
			"reseteado": {
				"minecraft:mark_variant": {
					"value": 1
				}
			},
			"fairy_salvaje": {
				"minecraft:behavior.nearest_attackable_target": {
					"attack_owner": false,
					"must_reach": true,
					"must_see": true,
					"must_see_forget_duration": 3,
					"persist_time": 3,
					"reselect_targets": true,
					"scan_interval": 10,
					"set_persistent": true,
					"target_invisible_multiplier": 0.5,
					"target_search_height": -1,
					"target_sneak_visibility_multiplier": 0.8,
					"entity_types": [
						{
							"filters": {
								"test": "is_family",
								"subject": "other",
								"value": "player"
							},
							"max_dist": 30
						}
					]
				},
				"minecraft:behavior.random_hover": {
					"priority": 8,
					"xz_dist": 8,
					"y_dist": 8,
					"y_offset": -1,
					"interval": 1,
					"hover_height": [
						1,
						4
					]
				},
				"minecraft:type_family": {
					"family": [
						"fairy",
						"mob"
					]
				},
				"minecraft:tameable": {
					"probability": 0.4,
					"tame_items": [
						"cc_fairytales:magic_dust"
					],
					"tame_event": {
						"event": "minecraft:on_tame",
						"target": "self"
					}
				}
			},
			"fairy_tame": {
				"minecraft:type_family": {
					"family": [
						"fairy",
						"mob"
					]
				},
				"minecraft:mark_variant": {
					"value": 1
				},
				"minecraft:is_tamed": {},
				"minecraft:behavior.follow_owner": {
					"priority": 2,
					"speed_multiplier": 1.0,
					"start_distance": 10,
					"stop_distance": 2
				},
				"minecraft:behavior.owner_hurt_target": {
					"priority": 2
				},
				"minecraft:behavior.breed": {
					"priority": 2,
					"speed_multiplier": 1.0
				},
				"minecraft:behavior.look_at_player": {
					"priority": 7,
					"look_distance": 6,
					"probability": 0.02
				},
				"minecraft:behavior.owner_hurt_by_target": {
					"priority": 1
				},
				"minecraft:healable": {
					"items": [
						{
							"item": "blaze_powder",
							"heal_amount": 3
						}
					]
				}
			},
			"fairy_lava": {
				"minecraft:variant": {
					"value": 6
				},
				"minecraft:interact": {
					"interactions": [
						{
							"play_sounds": "ambient.tame",
							"interact_text": "action.interact.fairy.lava.activate",
							"use_item": true,
							"on_interact": {
								"filters": {
									"all_of": [
										{
											"test": "is_family",
											"subject": "other",
											"value": "player"
										},
										{
											"test": "has_component",
											"subject": "self",
											"value": "minecraft:is_tamed"
										},
										{
											"test": "has_equipment",
											"subject": "other",
											"domain": "hand",
											"value": "cc_fairytales:magic_dust"
										}
									]
								},
								"event": "efecto_absorcion"
							}
						},
						{
							"play_sounds": "death",
							"interact_text": "action.interact.fairy.lava.final",
							"on_interact": {
								"filters": {
									"all_of": [
										{
											"test": "is_family",
											"subject": "other",
											"value": "player"
										},
										{
											"test": "has_component",
											"subject": "self",
											"value": "minecraft:is_tamed"
										},
										{
											"test": "has_equipment",
											"subject": "other",
											"domain": "hand",
											"value": "minecraft:blaze_rod"
										}
									]
								},
								"event": "efecto_absorcion2"
							}
						}
					]
				}
			},
			"muerto": {
				"minecraft:instant_despawn": {
					"remove_child_entities": true
				}
			},
			"absorcion": {
				"minecraft:mark_variant": {
					"value": 14
				}
			},
			"absorcion_max": {
				"minecraft:mark_variant": {
					"value": 15
				},
				"minecraft:timer": {
					"time": 1,
					"looping": true,
					"time_down_event": {
						"event": "muerte",
						"target": "self"
					}
				}
			}
		},
		"components": {
			"minecraft:ambient_sound_interval": {
				"event_name": "ambient",
				"range": 16,
				"value": 8
			},
			"minecraft:leashable": {
				"soft_distance": 4.0,
				"hard_distance": 6.0,
				"max_distance": 10.0,
				"on_leash": {
					"event": "minecraft:on_leash",
					"target": "self"
				},
				"on_unleash": {
					"event": "minecraft:on_unleash",
					"target": "self"
				}
			},
			"minecraft:is_hidden_when_invisible": {},
			"minecraft:type_family": {
				"family": [
					"fairy",
					"mob"
				]
			},
			"minecraft:fire_immune": {},
			"minecraft:collision_box": {
				"width": 0.55,
				"height": 0.5
			},
			"minecraft:equipment": {
				"table": "loot_tables/chillcraft/fairy/entities/fuego.json",
				"slot_drop_chance": [
					{
						"drop_chance": 0,
						"slot": "slot.weapon.mainhand"
					}
				]
			},
			"minecraft:attack": {
				"damage": 5
			},
			"minecraft:behavior.melee_box_attack": {
				"priority": 0,
				"track_target": true
			},
			"minecraft:experience_reward": {
				"on_death": "query.last_hit_by_player ? 7"
			},
			"minecraft:mark_variant": {
				"value": 0
			},
			"minecraft:nameable": {},
			"minecraft:health": {
				"value": 20
			},
			"minecraft:movement": {
				"value": 0.3
			},
			"minecraft:flying_speed": {
				"value": 0.3
			},
			"minecraft:hurt_on_condition": {
				"damage_conditions": [
					{
						"filters": {
							"test": "in_contact_with_water",
							"operator": "==",
							"value": true
						},
						"cause": "drowning",
						"damage_per_tick": 1
					}
				]
			},
			"minecraft:navigation.hover": {
				"can_path_over_water": true,
				"can_sink": false,
				"can_pass_doors": false,
				"can_path_from_air": true,
				"avoid_water": true,
				"avoid_damage_blocks": true,
				"avoid_sun": false
			},
			"minecraft:movement.hover": {},
			"minecraft:can_fly": {},
			"minecraft:physics": {
				"has_gravity": false
			},
			"minecraft:pushable": {
				"is_pushable": true,
				"is_pushable_by_piston": true
			},
			"minecraft:conditional_bandwidth_optimization": {},
			"minecraft:behavior.float": {
				"priority": 7
			},
			"minecraft:jump.static": {},
			"minecraft:behavior.hurt_by_target": {
				"priority": 3
			},
			"minecraft:loot": {
				"table": "loot_tables/chillcraft/fairy/entities/fairy_lava.json"
			}
		},
		"events": {
			"minecraft:entity_spawned": {
				"sequence": [
					{
						"add": {
							"component_groups": [
								"fairy_salvaje"
							]
						}
					},
					{
						"add": {
							"component_groups": [
								"fairy_lava"
							]
						}
					}
				]
			},
			"minecraft:on_tame": {
				"remove": {
					"component_groups": [
						"fairy_salvaje"
					]
				},
				"add": {
					"component_groups": [
						"fairy_tame"
					]
				}
			},
			"muerte": {
				"add": {
					"component_groups": [
						"muerto"
					]
				}
			},
			"resetear": {
				"add": {
					"component_groups": [
						"reseteado"
					]
				}
			},
			"efecto_absorcion": {
				"add": {
					"component_groups": [
						"absorcion"
					]
				}
			},
			"efecto_absorcion2": {
				"add": {
					"component_groups": [
						"absorcion_max"
					]
				}
			}
		}
	}
}