mirror of
https://github.com/Mojang/bedrock-samples.git
synced 2024-11-23 13:36:18 +00:00
a3b394c507
Initial layout
38 lines
1.2 KiB
JSON
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
|
|
}
|
|
}
|
|
}
|
|
} |