{
	"format_version": "1.8.0",
	"minecraft:client_entity": {
		"description": {
			"identifier": "quetz:tusoteuthis",
			"materials": {
				"default": "spider"
			},
			"textures": {
				"red": "textures/entity/tusoteuthis/red",
				"orange": "textures/entity/tusoteuthis/orange",
				"yellow": "textures/entity/tusoteuthis/yellow",
				"green": "textures/entity/tusoteuthis/green",
				"lightblue": "textures/entity/tusoteuthis/blue",
				"darkblue": "textures/entity/tusoteuthis/darkblue",
				"purple": "textures/entity/tusoteuthis/purple",
				"albino": "textures/entity/tusoteuthis/albino",
				"melanistic": "textures/entity/tusoteuthis/melanistic",
				"hypno_a": "textures/entity/tusoteuthis/hypnosis_a",
				"hypno_b": "textures/entity/tusoteuthis/hypnosis_b",
				"hypno_c": "textures/entity/tusoteuthis/hypnosis_c",
				"hypno_d": "textures/entity/tusoteuthis/hypnosis_d",
				"hypno_e": "textures/entity/tusoteuthis/hypnosis_e",
				"hypno_f": "textures/entity/tusoteuthis/hypnosis_f",
				"warn_apexpred": "textures/entity/tusoteuthis/warning_apexpredator",
				"warn_mediumpred": "textures/entity/tusoteuthis/warning_mediumpredator",
				"warn_semiaquatic": "textures/entity/tusoteuthis/warning_semiaquatic",
				"warn_undead": "textures/entity/tusoteuthis/warning_undead",
				"warn_darkentity": "textures/entity/tusoteuthis/warning_darkentity",
				"warn_robot": "textures/entity/tusoteuthis/warning_corruptedmachine"
			},
			"geometry": {
				"default": "geometry.tusoteuthis"
			},
			"scripts": {
				"pre_animation": [
					"variable.moving = query.ground_speed > 0 || query.vertical_speed > 0;",
					"variable.state=query.is_dancing?3:(query.is_sitting?2:(!query.is_on_ground&&!query.is_jumping&&!query.is_riding?0:1));",
					"variable.dance.x=Math.cos(query.life_time*57.3*20.0);",
					"variable.dance.y=-Math.sin(query.life_time*57.3*20.0);",
					"variable.wing_flap=((math.sin(query.wing_flap_position*57.3)+1)*query.wing_flap_speed);"
				]
			},
			"animations": {
				"swim_slow": "animation.tusoteuthis.slow_swim",
				"swim": "animation.tusoteuthis.swim",
				"hypnotize": "animation.tusoteuthis.hypnotize",
				"attack": "animation.tusoteuthis.attack",
				"swim_angle": "animation.tusoteuthis.swim_angle"
			},
			"animation_controllers": [
				{
					"setup": "controller.animation.tusoteuthis.general"
				}
			],
			"render_controllers": ["controller.render.tusoteuthis"],
			"spawn_egg": {
				"base_color": "#8fb0ce",
				"overlay_color": "#4c71d6"
			}
		}
	}
}