mirror of
https://github.com/Mojang/bedrock-samples.git
synced 2024-11-27 05:48:55 +00:00
58 lines
2.4 KiB
JSON
58 lines
2.4 KiB
JSON
{
|
|
"format_version": "1.8.0",
|
|
"minecraft:client_entity": {
|
|
"description": {
|
|
"identifier": "minecraft:wither",
|
|
"materials": {
|
|
"default": "wither_boss",
|
|
"armor": "wither_boss_armor"
|
|
},
|
|
"textures": {
|
|
"default": "textures/entity/wither_boss/wither",
|
|
"armor_white": "textures/entity/wither_boss/wither_armor_white",
|
|
"armor_blue": "textures/entity/wither_boss/wither_armor_blue",
|
|
"invulnerable": "textures/entity/wither_boss/wither_invulnerable"
|
|
},
|
|
"geometry": {
|
|
"default": "geometry.witherBoss",
|
|
"armor": "geometry.witherBoss.armor"
|
|
},
|
|
"scripts": {
|
|
"pre_animation": [
|
|
"variable.base_scale = 2;",
|
|
"variable.swell_clamped = Math.clamp(query.swell_amount, 0.0, 1.0);",
|
|
"variable.wobble = 1.0 + Math.sin(query.swell_amount * 5730) * query.swell_amount * 0.01;",
|
|
"variable.swell_adjustment = Math.pow(variable.swell_clamped, 4);",
|
|
"variable.scale_xz = (1.0 + variable.swell_adjustment * 0.4) * variable.wobble;",
|
|
"variable.scale_y = (1.0 + variable.swell_adjustment * 0.1) / variable.wobble;",
|
|
"variable.body_base_rotation = Math.cos(query.life_time * 114.6);",
|
|
"variable.upper_body_rotation = (0.065 + 0.05 * variable.body_base_rotation) * 180 + query.target_x_rotation;",
|
|
"variable.is_invulnerable = query.invulnerable_ticks > 0.0;",
|
|
"variable.display_normal_skin = (query.invulnerable_ticks <= 0) || ((query.invulnerable_ticks <= 80) && (Math.mod(query.invulnerable_ticks / 5, 2) == 1));"
|
|
],
|
|
"scalex": "variable.scale_xz * variable.base_scale",
|
|
"scaley": "variable.scale_y * variable.base_scale",
|
|
"scalez": "variable.scale_xz * variable.base_scale"
|
|
},
|
|
"animations": {
|
|
"scale": "animation.wither_boss.scale",
|
|
"move": "animation.wither_boss.move",
|
|
"look_at_target": "animation.wither_boss.look_at_target"
|
|
},
|
|
"animation_controllers": [
|
|
{
|
|
"move": "controller.animation.wither_boss.move"
|
|
}
|
|
],
|
|
"render_controllers": [
|
|
"controller.render.wither_boss",
|
|
"controller.render.wither_boss_armor_white",
|
|
"controller.render.wither_boss_armor_blue"
|
|
],
|
|
"spawn_egg": {
|
|
"base_color": "#141414",
|
|
"overlay_color": "#4d72a0"
|
|
}
|
|
}
|
|
}
|
|
} |