mirror of
https://github.com/Mojang/bedrock-samples.git
synced 2024-11-23 13:36:18 +00:00
39 lines
1023 B
JSON
39 lines
1023 B
JSON
{
|
|
"format_version": "1.8.0",
|
|
"minecraft:client_entity": {
|
|
"description": {
|
|
"identifier": "minecraft:cod",
|
|
"materials": {
|
|
"default": "cod"
|
|
},
|
|
"textures": {
|
|
"default": "textures/entity/fish/cod"
|
|
},
|
|
"geometry": {
|
|
"default": "geometry.cod"
|
|
},
|
|
"scripts": {
|
|
"pre_animation": [
|
|
"variable.ZRot = !query.is_in_water ? Math.cos((query.time_stamp + query.frame_alpha) * 14.32) * 90 : 0.0;",
|
|
"variable.AnimationAmountBlend = Math.lerp(variable.AnimationAmountPrev, variable.AnimationAmount, query.frame_alpha);"
|
|
]
|
|
},
|
|
"animations": {
|
|
"flop": "animation.cod.flop",
|
|
"swim": "animation.cod.swim"
|
|
},
|
|
"animation_controllers": [
|
|
{
|
|
"general": "controller.animation.fish.general"
|
|
}
|
|
],
|
|
"render_controllers": [
|
|
"controller.render.cod"
|
|
],
|
|
"spawn_egg": {
|
|
"texture": "spawn_egg",
|
|
"texture_index": 45
|
|
}
|
|
}
|
|
}
|
|
} |