mirror of
https://github.com/Mojang/bedrock-samples.git
synced 2025-10-22 15:54:18 +00:00
62 lines
2.4 KiB
JSON
62 lines
2.4 KiB
JSON
{
|
|
"format_version": "1.10.0",
|
|
"minecraft:client_entity": {
|
|
"description": {
|
|
"identifier": "minecraft:nautilus",
|
|
"min_engine_version": "1.12.0",
|
|
"materials": {
|
|
"default": "nautilus"
|
|
},
|
|
"textures": {
|
|
"default": "textures/entity/nautilus/nautilus",
|
|
"baby": "textures/entity/nautilus/nautilus_baby",
|
|
"saddle": "textures/entity/nautilus/nautilus_saddle"
|
|
},
|
|
"geometry": {
|
|
"default": "geometry.nautilus",
|
|
"baby": "geometry.nautilus.baby",
|
|
"saddle": "geometry.nautilus_saddle"
|
|
},
|
|
"animations": {
|
|
"breathe": "animation.nautilus.breathe",
|
|
"swim": "animation.nautilus.swim",
|
|
"look_at_target": "animation.nautilus.look_at_target",
|
|
"charge_warning": "animation.nautilus.charge_warning",
|
|
"dashing": "animation.nautilus.dashing",
|
|
"sound_controller": "controller.animation.nautilus.sound",
|
|
"general_controller": "controller.animation.nautilus.general",
|
|
"attack_controller": "controller.animation.nautilus.attack"
|
|
},
|
|
"scripts": {
|
|
"pre_animation": [
|
|
"variable.dash_cooldown = (!(variable.last_dash_cooldown ?? true) && query.has_dash_cooldown) ? 2 : ( variable.dash_cooldown ?? 0 );",
|
|
"variable.dash_cooldown = math.max(0, variable.dash_cooldown-query.delta_time);",
|
|
"variable.dash_cooldown_progress = (2 - variable.dash_cooldown) / 2;",
|
|
"variable.xTargetRot = math.clamp(query.target_x_rotation, -10, 10);",
|
|
"variable.xHeadRot = variable.dash_cooldown_progress > 0 ? math.clamp(variable.xTargetRot + (45 * (1 - variable.dash_cooldown_progress)), -25, 70) : variable.xTargetRot;",
|
|
"variable.yHeadRot = math.clamp(query.target_y_rotation, -10, 10);",
|
|
"variable.has_armor = query.has_armor_slot(4);"
|
|
],
|
|
"animate": [
|
|
"general_controller",
|
|
"sound_controller"
|
|
],
|
|
"should_update_effects_offscreen": "1.0"
|
|
},
|
|
"particle_effects": {
|
|
"bubbles": "minecraft:nautilus_bubbles_particle"
|
|
},
|
|
"render_controllers": [
|
|
"controller.render.nautilus_saddle",
|
|
"controller.render.nautilus"
|
|
],
|
|
"enable_attachables": true,
|
|
"spawn_egg": {
|
|
"texture": "spawn_egg_nautilus"
|
|
},
|
|
"sound_effects": {
|
|
"dash": "mob.nautilus.dash"
|
|
}
|
|
}
|
|
}
|
|
} |