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

51 lines
1.4 KiB
JSON

{
"format_version": "1.10.0",
"minecraft:client_entity": {
"description": {
"identifier": "minecraft:pig",
"min_engine_version": "1.8.0",
"materials": {
"default": "pig_v3"
},
"textures": {
"default": "textures/entity/pig/pig_v3",
"saddled": "textures/entity/pig/pig_saddle",
"warm": "textures/entity/pig/pig_warm",
"cold": "textures/entity/pig/pig_cold",
"saddle": "textures/entity/saddle_v2"
},
"geometry": {
"default": "geometry.pig.v3"
},
"animations": {
"setup": "animation.pig.setup",
"walk": "animation.quadruped.walk",
"look_at_target": "animation.common.look_at_target",
"baby_transform": "animation.pig.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);"
]
},
"render_controllers": [
"controller.render.saddle",
"controller.render.pig.v3"
],
"spawn_egg": {
"texture": "spawn_egg_pig"
}
}
}
}