{
    "format_version": "1.10.0",
    "minecraft:client_entity": {
        "description": {
            "identifier": "bd:poppy_bd",
            "materials": {
                "default": "npc"
            },
            "textures": {
                "default": "textures/entity/poppy_bd"
            },
            "geometry": {
                "default": "geometry.poppy_bd"
            },
            "animations": {
                "moving": "animation.poppy_bd.moving",
				"poppy_bd_general": "animation.poppy_bd.general",
				"look_at": "animation.poppy_bd.look_at",
				
				"mouth": "controller.animation.poppy_bd.mouth",
                "general": "controller.animation.poppy_bd.general",
				"look": "controller.animation.poppy_bd.look"
            },
            "scripts": {
                "animate": [
					"general",
					"look"
                ],
				"pre_animation": [
				  "variable.random = math.round(math.random(0,1));",
				  "variable.attack = Math.sin(variable.attack_time * 30.0);",
				  "variable.random2 = math.floor(math.random(0,1));"
				]
            },
			"sound_effects": {
				"eat": "mob.poppy_bd.jumpscare",
				"groan": "mob.poppy_bd.groan",
				"fall": "mob.huggy_wuggy.fall",
				"attack": "mob.poppy_bd.attack"
			},
            "render_controllers": [
                "controller.render.skeleton"
            ],
			"enable_attachables": true,
            "spawn_egg": {
                "base_color": "#c7cfdd",
                "overlay_color": "#2d7cd7"
            }
        }
    }
}