1
0
mirror of https://github.com/Mojang/bedrock-samples.git synced 2025-10-22 06:34:19 +00:00
Files
bedrock-samples/resource_pack/entity/cow.entity.json
2025-02-19 09:06:29 -08:00

52 lines
1.4 KiB
JSON

{
"format_version": "1.10.0",
"minecraft:client_entity": {
"description": {
"identifier": "minecraft:cow",
"min_engine_version": "1.8.0",
"materials": {
"default": "cow",
"cold": "cow_cold"
},
"textures": {
"default": "textures/entity/cow/cow_v2",
"warm": "textures/entity/cow/cow_warm",
"cold": "textures/entity/cow/cow_cold"
},
"geometry": {
"default": "geometry.cow.v2",
"warm": "geometry.cow.warm",
"cold": "geometry.cow.cold"
},
"animations": {
"setup": "animation.cow.setup",
"walk": "animation.quadruped.walk",
"look_at_target": "animation.common.look_at_target",
"baby_transform": "animation.cow.baby_transform"
},
"scripts": {
"animate": [
"setup",
{
"walk": "query.modified_move_speed"
},
"look_at_target",
{
"baby_transform": "query.is_baby"
}
],
"pre_animation": [
"t.variant = query.property('minecraft:climate_variant');",
"v.index = (t.variant == 'temperate') ? 0 : ((t.variant == 'warm') ? 1 : 2);",
"v.is_cold = t.variant == 'cold';"
]
},
"render_controllers": [
"controller.render.cow.v2"
],
"spawn_egg": {
"texture": "spawn_egg_cow"
}
}
}
}