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/iron_golem.entity.json
Mike Ammerlaan e304be6ab8 v1.20.80.5
2024-04-23 09:20:49 -07:00

58 lines
1.9 KiB
JSON

{
"format_version": "1.10.0",
"minecraft:client_entity": {
"description": {
"identifier": "minecraft:iron_golem",
"materials": {
"default": "iron_golem"
},
"textures": {
"default": "textures/entity/iron_golem",
"cracked_high": "textures/entity/iron_golem/cracked_high",
"cracked_med": "textures/entity/iron_golem/cracked_medium",
"cracked_low": "textures/entity/iron_golem/cracked_low",
"cracked_none": "textures/entity/iron_golem/cracked_none"
},
"geometry": {
"default": "geometry.irongolem"
},
"animations": {
"walk": "animation.iron_golem.walk",
"move": "animation.iron_golem.move",
"attack": "animation.iron_golem.attack",
"flower": "animation.iron_golem.flower",
"look_at_target": "animation.common.look_at_target",
"walk_to_target": "animation.iron_golem.walk_to_target",
"move_to_target": "animation.iron_golem.move_to_target",
"move_controller": "controller.animation.iron_golem.move",
"arm_controller": "controller.animation.iron_golem.arm_movement"
},
"animation_controllers": [
{
"move": "controller.animation.iron_golem.move"
},
{
"arm": "controller.animation.iron_golem.arm_movement"
}
],
"render_controllers": [
"controller.render.iron_golem",
"controller.render.iron_golem_cracks"
],
"scripts": {
"pre_animation": [
"variable.modified_tcos0 = Math.clamp(((Math.cos(query.modified_distance_moved * 13.5) * Math.min(query.modified_move_speed, 0.6) / variable.gliding_speed_value) * 25.0), -12.5, 12.5);"
],
"animate": [
"look_at_target",
"move_controller",
"arm_controller"
]
},
"spawn_egg": {
"base_color": "#dbcdc2",
"overlay_color": "#74a332"
}
}
}
}