1
0
mirror of https://github.com/Mojang/bedrock-samples.git synced 2024-11-27 05:48:55 +00:00
bedrock-samples/resource_pack/entity/creeper.v1.0.entity.json
Mike Ammerlaan e304be6ab8 v1.20.80.5
2024-04-23 09:20:49 -07:00

53 lines
1.8 KiB
JSON

{
"format_version": "1.8.0",
"minecraft:client_entity": {
"description": {
"identifier": "minecraft:creeper",
"materials": {
"default": "creeper",
"charged": "charged_creeper"
},
"textures": {
"default": "textures/entity/creeper/creeper",
"charged": "textures/entity/creeper/creeper_armor"
},
"geometry": {
"default": "geometry.creeper",
"charged": "geometry.creeper.charged"
},
"spawn_egg": {
"texture": "spawn_egg",
"texture_index": 6
},
"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);"
]
},
"animations": {
"creeper_head": "animation.common.look_at_target",
"creeper_legs": "animation.creeper.legs",
"creeper_swelling": "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"
]
}
}
}