{
	"format_version": "1.16.100",
	"minecraft:entity": {
		"description": {
			"identifier": "cc_fairytales:salamander",
			"is_spawnable": true,
			"is_summonable": true,
			"is_experimental": false
		},
		"component_groups": {
			"salamander_salvaje": {
				"minecraft:rideable": {
					"seat_count": 1,
					"family_types": [
						"player"
					],
					"interact_text": "action.interact.mount",
					"seats": {
						"position": [
							0,
							1.1,
							0.8
						]
					}
				},
				"minecraft:behavior.rise_to_liquid_level": {
					"priority": 1,
					"liquid_y_offset": 1,
					"rise_delta": 0.01,
					"sink_delta": 1
				},
				"minecraft:equipment": {
					"table": "loot_tables/chillcraft/fairy/entities/fuego.json",
					"slot_drop_chance": [
						{
							"drop_chance": 0,
							"slot": "slot.weapon.mainhand"
						}
					]
				},
				"minecraft:lava_movement": {
					"value": 0.4
				},
				"minecraft:attack": {
					"damage": 6
				},
				"minecraft:behavior.melee_box_attack": {
					"priority": 0,
					"track_target": true
				},
				"minecraft:on_target_escape": {
					"target": "self",
					"event": "desaparecer"
				},
				"minecraft:behavior.mount_pathing": {
					"priority": 2,
					"speed_multiplier": 1.5,
					"target_dist": 0,
					"track_target": true
				},
				"minecraft:behavior.nearest_attackable_target": {
					"priority": 3,
					"must_see": true,
					"reselect_targets": true,
					"must_see_forget_duration": 17.0,
					"entity_types": [
						{
							"filters": {
								"test": "is_family",
								"subject": "other",
								"value": "player"
							},
							"max_dist": 40
						}
					]
				},
				"minecraft:tamemount": {
					"min_temper": 0,
					"max_temper": 300,
					"feed_text": "action.interact.feed",
					"ride_text": "action.interact.mount",
					"feed_items": [
						{
							"item": "cc_fairytales:magic_dust",
							"temper_mod": 10
						}
					],
					"auto_reject_items": [
						{
							"item": "saddle"
						}
					],
					"tame_event": {
						"event": "montar_salamander",
						"target": "self"
					}
				}
			},
			"salamander_montar": {
				"minecraft:rideable": {
					"seat_count": 1,
					"crouching_skip_interact": true,
					"family_types": [
						"player"
					],
					"interact_text": "cc.ft.action.interact.ride.salamander",
					"seats": {
						"position": [
							0,
							1.1,
							0.8
						]
					}
				},
				"minecraft:behavior.rise_to_liquid_level": {
					"priority": 1,
					"liquid_y_offset": -2,
					"rise_delta": 0.1,
					"sink_delta": 0.01
				},
				"minecraft:inventory": {
					"inventory_size": 1,
					"container_type": "horse",
					"restrict_to_owner": true
				},
				"minecraft:is_tamed": {},
				"minecraft:behavior.breed": {
					"priority": 2
				},
				"minecraft:lava_movement": {
					"value": 0.3
				},
				"minecraft:breedable": {
					"require_tame": true,
					"inherit_tamed": false,
					"breed_items": [
						"golden_apple",
						"appleEnchanted",
						"cc_fairytales:magic_dust"
					]
				}
			},
			"salamander_con_montura": {
				"minecraft:is_saddled": {},
				"minecraft:input_ground_controlled": {},
				"minecraft:can_power_jump": {},
				"minecraft:behavior.player_ride_tamed": {}
			},
			"despawn": {
				"minecraft:instant_despawn": {
					"remove_child_entities": true
				}
			}
		},
		"components": {
			"minecraft:type_family": {
				"family": [
					"salamander",
					"mob"
				]
			},
			"minecraft:behavior.random_stroll": {
				"priority": 5,
				"speed_multiplier": 1
			},
			"minecraft:experience_reward": {
				"on_death": "query.last_hit_by_player ? 10"
			},
			"minecraft:breathable": {
				"total_supply": 25,
				"suffocate_time": 0
			},
			"minecraft:equippable": {
				"slots": [
					{
						"slot": 0,
						"item": "saddle",
						"accepted_items": [
							"saddle"
						],
						"on_equip": {
							"event": "poner_montura"
						},
						"on_unequip": {
							"event": "quitar_montura"
						}
					}
				]
			},
			"minecraft:movement.basic": {},
			"minecraft:jump.static": {},
			"minecraft:nameable": {},
			"minecraft:horse.jump_strength": {
				"value": 0.7
			},
			"minecraft:fire_immune": {},
			"minecraft:navigation.walk": {
				"can_path_over_lava": true,
				"can_sink": false,
				"can_walk_in_lava": true
			},
			"minecraft:movement": {
				"value": 0.25
			},
			"minecraft:lava_movement": {
				"value": 0.4
			},
			"minecraft:collision_box": {
				"width": 1.6,
				"height": 1.5
			},
			"minecraft:custom_hit_test": {
				"hitboxes": [
					{
						"width": 1.6,
						"height": 1.5,
						"pivot": [
							0,
							0.75,
							0
						]
					},
					{
						"width": 1.6,
						"height": 1.5,
						"pivot": [
							0,
							0.75,
							2
						]
					},
					{
						"width": 1.6,
						"height": 1.5,
						"pivot": [
							0,
							0.75,
							-1.6
						]
					}
				]
			},
			"minecraft:leashable": {
				"soft_distance": 4,
				"hard_distance": 6,
				"max_distance": 10
			},
			"minecraft:healable": {
				"items": [
					{
						"item": "golden_apple",
						"heal_amount": 10
					},
					{
						"item": "cc_fairytales:magic_dust",
						"heal_amount": 10
					},
					{
						"item": "appleEnchanted",
						"heal_amount": 20
					}
				]
			},
			"minecraft:despawn": {
				"despawn_from_distance": {}
			},
			"minecraft:hurt_on_condition": {
				"damage_conditions": [
					{
						"filters": {
							"test": "in_contact_with_water",
							"operator": "==",
							"value": true
						},
						"cause": "drowning",
						"damage_per_tick": 1
					}
				]
			},
			"minecraft:behavior.look_at_player": {
				"priority": 9,
				"look_distance": 6.0,
				"probability": 0.02
			},
			"minecraft:behavior.random_look_around": {
				"priority": 10
			},
			"minecraft:physics": {},
			"minecraft:pushable": {
				"is_pushable": true,
				"is_pushable_by_piston": true
			},
			"minecraft:follow_range": {
				"value": 64,
				"max": 64
			},
			"minecraft:health": {
				"value": 60
			}
		},
		"events": {
			"minecraft:entity_spawned": {
				"sequence": [
					{
						"add": {
							"component_groups": [
								"salamander_salvaje"
							]
						}
					}
				]
			},
			"montar_salamander": {
				"remove": {
					"component_groups": [
						"salamander_salvaje"
					]
				},
				"add": {
					"component_groups": [
						"salamander_montar"
					]
				}
			},
			"poner_montura": {
				"add": {
					"component_groups": [
						"salamander_con_montura"
					]
				}
			},
			"quitar_montura": {
				"remove": {
					"component_groups": [
						"salamander_con_montura"
					]
				}
			},
			"desaparecer": {
				"add": {
					"component_groups": [
						"despawn"
					]
				}
			}
		}
	}
}