1
0
mirror of https://github.com/Mojang/bedrock-samples.git synced 2025-10-22 15:54:18 +00:00
Files
bedrock-samples/resource_pack/entity/creeper.entity.json
2025-03-11 09:11:08 -07:00

63 lines
2.2 KiB
JSON

{
"format_version": "1.10.0",
"minecraft:client_entity": {
"description": {
"identifier": "minecraft:creeper",
"min_engine_version": "1.8.0",
"materials": {
"default": "creeper",
"charged": "charged_creeper"
},
"textures": {
"default": "textures/entity/creeper/creeper",
"charged": "textures/entity/creeper/creeper_armor"
},
"geometry": {
"default": "geometry.creeper.v1.8",
"charged": "geometry.creeper.charged.v1.8"
},
"spawn_egg": {
"texture": "spawn_egg_creeper"
},
"scripts": {
"pre_animation": [
"variable.wobble = Math.sin(query.swell_amount * 5730) * query.swell_amount * 0.01 + 1.0;",
"variable.swelling_scale1 = (Math.pow(Math.clamp(query.swell_amount, 0.0, 1.0), 4.0) * 0.4 + 1.0) * variable.wobble;",
"variable.swelling_scale2 = (Math.pow(Math.clamp(query.swell_amount, 0.0, 1.0), 4.0) * 0.1 + 1.0) / variable.wobble;",
"variable.leg_rot = Math.cos(query.modified_distance_moved * 38.17326) * 80.22 * query.modified_move_speed;",
"variable.flash = Math.mod(Math.Round(query.swell_amount * 10.0), 2.0);"
],
"animate": [
"creeper_head_controller",
"creeper_legs_controller",
"creeper_swelling_controller"
]
},
"animations": {
"creeper_head": "animation.common.look_at_target",
"creeper_legs": "animation.creeper.legs",
"creeper_swelling": "animation.creeper.swelling",
"creeper_head_controller": "controller.animation.creeper.head",
"creeper_legs_controller": "controller.animation.creeper.legs",
"creeper_swelling_controller": "controller.animation.creeper.swelling"
},
"animation_controllers": [
{
"creeper_head": "controller.animation.creeper.head"
},
{
"creeper_legs": "controller.animation.creeper.legs"
},
{
"creeper_swelling": "controller.animation.creeper.swelling"
}
],
"render_controllers": [
"controller.render.creeper",
{
"controller.render.creeper_armor": "query.is_powered"
}
]
}
}
}