//bridge-file-version: #1
{
	"format_version": "1.8.0",
	"minecraft:client_entity": {
		"description": {
			"identifier": "mythmob:goblin",
			"materials": {
				"default": "goblin"
			},
			"textures": {
				"default": "textures/entity/mythmob/goblin"
			},
			"geometry": {
				"default": "geometry.goblin"
			},
			"scripts": {
				"pre_animation": [
					"variable.tcos0 = (Math.cos(query.modified_distance_moved * 38.17) * query.modified_move_speed / variable.gliding_speed_value) * 57.3;",
					"variable.tcos1 = -variable.tcos0;",
					"variable.internal_swim_pos = Math.mod(query.modified_distance_moved, 26.0);"
				]
			},
			"animations": {
				"humanoid_base_pose": "animation.goblin.general",
				"move": "animation.goblin.walk",
				"attack.rotations": "animation.humanoid.attack.rotations",
				"scared": "animation.goblin.scared"
			},
			"animation_controllers": [
				{
					"humanoid_base_pose": "controller.animation.humanoid.base_pose"
				},
				{
					"look_at_target": "controller.animation.humanoid.look_at_target"
				},
				{
					"move": "controller.animation.villager.move"
				},
				{
					"attack": "controller.animation.humanoid.attack"
				},
				{
					"idle": "controller.animation.goblin.idle"
				}
			],
			"render_controllers": [
				"controller.render.goblin"
			],
			"enable_attachables": true,
			"spawn_egg": {
				"base_color": "#0a2603",
				"overlay_color": "#123e07"
			}
		}
	}
}