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/slime.entity.json
Mike Ammerlaan a3b394c507 1.19.30
Initial layout
2022-09-23 06:24:26 -07:00

38 lines
1.2 KiB
JSON

{
"format_version": "1.8.0",
"minecraft:client_entity": {
"description": {
"identifier": "minecraft:slime",
"materials": {
"default": "slime",
"outer": "slime_outer"
},
"textures": {
"default": "textures/entity/slime/slime"
},
"geometry": {
"default": "geometry.slime",
"armor": "geometry.slime.armor"
},
"scripts": {
"pre_animation": [
"variable.squish_factor = (query.previous_squish_value + (query.current_squish_value - query.previous_squish_value) * query.frame_alpha);",
"variable.bounce = 1 / ((variable.squish_factor / (query.variant * 0.5 + 1)) + 1);",
"variable.horizontal_scale_amount = variable.bounce * query.variant;",
"variable.vertical_scale_amount = (1 / variable.bounce) * query.variant;"
],
"scaleX": "variable.horizontal_scale_amount",
"scaleY": "variable.vertical_scale_amount",
"scaleZ": "variable.horizontal_scale_amount"
},
"render_controllers": [
"controller.render.slime",
"controller.render.slime_armor"
],
"spawn_egg": {
"texture": "spawn_egg",
"texture_index": 10
}
}
}
}