1
0
mirror of https://github.com/Mojang/bedrock-samples.git synced 2024-11-23 13:36:18 +00:00
bedrock-samples/resource_pack/entity/goat.entity.json
Mike Ammerlaan e304be6ab8 v1.20.80.5
2024-04-23 09:20:49 -07:00

46 lines
1.4 KiB
JSON

{
"format_version": "1.10.0",
"minecraft:client_entity": {
"description": {
"identifier": "minecraft:goat",
"materials": {
"default": "goat"
},
"textures": {
"default": "textures/entity/goat/goat"
},
"geometry": {
"default": "geometry.goat"
},
"spawn_egg": {
"base_color": "#c0ac90",
"overlay_color": "#857261"
},
"scripts": {
"pre_animation": [
"variable.tcos_right_side = (Math.cos(query.modified_distance_moved * 38.17) * query.modified_move_speed / variable.gliding_speed_value) * 57.3;",
"variable.tcos_left_side = -variable.tcos_right_side;",
"variable.attack_head_rot = Math.sin(variable.attack_time * 180.0) * -37.3;",
"variable.ram_head_rot = Math.sin(variable.should_bow_head * 90.0) * 37.3;"
],
"animate": [
"walk",
"look_at_target",
{
"attack": "variable.has_target && variable.attack_time >= 0.0"
},
"ram_attack"
]
},
"animations": {
"walk": "animation.goat.walk",
"look_at_target": "animation.goat.look_at_target",
"attack": "animation.goat.attack",
"ram_attack": "animation.goat.ram_attack"
},
"render_controllers": [
"controller.render.goat"
]
}
}
}