{
	"format_version": "1.10.0",
	"minecraft:client_entity": {
		"description": {
			"identifier": "loadisk:pterodactyl",
			"materials": {
				"default": "entity_alphatest"
			},
			"textures": {
				"default": "textures/mob/pterodactyl/default",
				"hunger_bar": "textures/eui/hunger_bar",
				"dino_egg": "textures/mob/dino_egg"
			},
			"geometry": {
				"default": "geometry.loadisk.pterodactyl",
				"hunger_bar": "geometry.loadisk.hunger_bar",
				"dino_egg": "geometry.loadisk.dino.egg"
			},
			"scripts": {
				"scale": "1.0",
				"animate": ["root","attack.c",{"dy_move":"!q.is_on_ground && !q.is_in_water"}],
				"initialize": [
					"v.update_time = 0.0;",
					"v.pitch = 0.0;",
					"v.yaw = 0.0;",
					"v.can_attack = 0.0;"
				],
				"pre_animation": [
					"v.update_time = q.modified_distance_moved / 8.2;",
					"v.pitch = q.has_rider > 0.0 ? (q.target_y_rotation(0) >= 0.0 ? -30 + q.target_x_rotation(0) * 2.2 + 10 : -20 + q.target_x_rotation(0) * 1.7) : q.target_y_rotation(0);",
					"v.yaw = q.has_rider > 0.0 ? -q.yaw_speed / 8 : 0.0;",
					"v.can_attack = v.attack_time > 0 ? 1 : 0;"

				]
			},
			"animations": {
				"root": "controller.animation.pterodactyl.root",
				"attack.c": "controller.animation.pterodactyl.attack",
				"idle": "animation.pterodactyl.idle",
				"jump": "animation.pterodactyl.jump",
				"attack": "animation.pterodactyl.attack",
				"attack_layer": "animation.pterodactyl.attack_layer",
				"eat": "animation.pterodactyl.eat",
				"fly": "animation.pterodactyl.fly",
				"move": "animation.pterodactyl.walk",
				"swim": "animation.pterodactyl.swim",
				"swim.idle": "animation.pterodactyl.swim_hover",
				"run": "animation.pterodactyl.run",
				"death": "animation.pterodactyl.death",
				"sink": "animation.specdino.death_sink",

				"dy_move": "animation.pterodactyl.dy_move"
			},
			"render_controllers": [
				{"controller.render.default":"!q.is_stunned"},

				{"controller.render.loadisk.dino_egg": "q.is_stunned"}
			],
			"spawn_egg": {"texture": "loadisk:spotted_egg"}
		}
	}
}