1
0
mirror of https://github.com/Mojang/bedrock-samples.git synced 2024-11-27 05:48:55 +00:00
bedrock-samples/resource_pack/entity/parrot.entity.json
Mike Ammerlaan e304be6ab8 v1.20.80.5
2024-04-23 09:20:49 -07:00

53 lines
1.7 KiB
JSON

{
"format_version": "1.8.0",
"minecraft:client_entity": {
"description": {
"identifier": "minecraft:parrot",
"materials": {
"default": "parrot"
},
"textures": {
"blue": "textures/entity/parrot/parrot_blue",
"green": "textures/entity/parrot/parrot_green",
"red_blue": "textures/entity/parrot/parrot_red_blue",
"yellow_blue": "textures/entity/parrot/parrot_yellow_blue",
"grey": "textures/entity/parrot/parrot_grey"
},
"geometry": {
"default": "geometry.parrot"
},
"scripts": {
"pre_animation": [
"variable.state = query.is_dancing ? 3 : (query.is_sitting ? 2 : (!query.is_on_ground && !query.is_jumping && !query.is_riding ? 0 : 1));",
"variable.dance.x = Math.cos(query.life_time * 57.3 * 20.0);",
"variable.dance.y = -Math.sin(query.life_time * 57.3 * 20.0);",
"variable.wing_flap = ((math.sin(query.wing_flap_position * 57.3) + 1) * query.wing_flap_speed);"
]
},
"animations": {
"moving": "animation.parrot.moving",
"base": "animation.parrot.base",
"dance": "animation.parrot.dance",
"sitting": "animation.parrot.sitting",
"flying": "animation.parrot.flying",
"standing": "animation.parrot.standing",
"look_at_target": "animation.common.look_at_target"
},
"animation_controllers": [
{
"setup": "controller.animation.parrot.setup"
},
{
"move": "controller.animation.parrot.move"
}
],
"render_controllers": [
"controller.render.parrot"
],
"spawn_egg": {
"texture": "spawn_egg",
"texture_index": 43
}
}
}
}