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

53 lines
1.9 KiB
JSON

{
"format_version": "1.8.0",
"minecraft:client_entity": {
"description": {
"identifier": "minecraft:tropicalfish",
"materials": {
"default": "tropicalfish"
},
"textures": {
"typeA": "textures/entity/fish/tropical_a",
"typeB": "textures/entity/fish/tropical_b",
"aPattern1": "textures/entity/fish/tropical_a_pattern_1",
"aPattern2": "textures/entity/fish/tropical_a_pattern_2",
"aPattern3": "textures/entity/fish/tropical_a_pattern_3",
"aPattern4": "textures/entity/fish/tropical_a_pattern_4",
"aPattern5": "textures/entity/fish/tropical_a_pattern_5",
"aPattern6": "textures/entity/fish/tropical_a_pattern_6",
"bPattern1": "textures/entity/fish/tropical_b_pattern_1",
"bPattern2": "textures/entity/fish/tropical_b_pattern_2",
"bPattern3": "textures/entity/fish/tropical_b_pattern_3",
"bPattern4": "textures/entity/fish/tropical_b_pattern_4",
"bPattern5": "textures/entity/fish/tropical_b_pattern_5",
"bPattern6": "textures/entity/fish/tropical_b_pattern_6"
},
"scripts": {
"pre_animation": [
"variable.ZRot = !query.is_in_water ? Math.cos((query.time_stamp + query.frame_alpha) * 0.25) * 90 : 0.0;",
"variable.AnimationAmountBlend = Math.lerp(variable.AnimationAmountPrev, variable.AnimationAmount, query.frame_alpha);"
]
},
"geometry": {
"typeA": "geometry.tropicalfish_a",
"typeB": "geometry.tropicalfish_b"
},
"animations": {
"flop": "animation.tropicalfish.flop",
"swim": "animation.tropicalfish.swim"
},
"animation_controllers": [
{
"general": "controller.animation.fish.general"
}
],
"render_controllers": [
"controller.render.tropicalfish"
],
"spawn_egg": {
"texture": "spawn_egg",
"texture_index": 44
}
}
}
}