1
0
mirror of https://github.com/Mojang/bedrock-samples.git synced 2025-10-22 10:04:19 +00:00
Files
bedrock-samples/resource_pack/entity/pillager.entity.json
2025-05-20 08:55:23 -07:00

60 lines
2.7 KiB
JSON

{
"format_version": "1.10.0",
"minecraft:client_entity": {
"description": {
"identifier": "minecraft:pillager",
"materials": {
"default": "pillager"
},
"textures": {
"default": "textures/entity/pillager"
},
"geometry": {
"default": "geometry.pillager"
},
"spawn_egg": {
"texture": "spawn_egg_pillager"
},
"scripts": {
"pre_animation": [
"variable.tcos0 = (Math.cos(query.modified_distance_moved * 38.17) * query.modified_move_speed / variable.gliding_speed_value) * 57.3;",
"variable.riding_y_offset_with_respect_to_player = 1.25;",
"variable.riding_y_offset_on_vehicle_where_other_entites_can_stand = query.is_riding_any_entity_of_type('minecraft:minecart', 'minecraft:boat', 'minecraft:chest_boat') ? -3.0 : 0.0;",
"variable.riding_y_offset = variable.riding_y_offset_with_respect_to_player + variable.riding_y_offset_on_vehicle_where_other_entites_can_stand;"
],
"animate": [
"pillager_root_controller"
]
},
"animations": {
"humanoid_base_pose": "animation.humanoid.base_pose",
"look_at_target_default": "animation.humanoid.look_at_target.default",
"look_at_target_gliding": "animation.humanoid.look_at_target.gliding",
"look_at_target_swimming": "animation.humanoid.look_at_target.swimming",
"move": "animation.humanoid.move",
"riding.arms": "animation.humanoid.riding.arms",
"riding.legs": "animation.humanoid.riding.legs",
"holding": "animation.humanoid.holding",
"attack.rotations": "animation.humanoid.attack.rotations",
"bob": "animation.humanoid.bob",
"crossbow_hold": "animation.pillager.crossbow.hold",
"crossbow_charge": "animation.pillager.crossbow.charge",
"celebrating": "animation.humanoid.celebrating",
"controller_humanoid_base_pose": "controller.animation.humanoid.base_pose",
"controller_look_at_target": "controller.animation.humanoid.look_at_target",
"controller_move": "controller.animation.humanoid.move",
"controller_riding": "controller.animation.humanoid.riding",
"controller_attack": "controller.animation.humanoid.attack",
"controller_bob": "controller.animation.humanoid.bob",
"controller_pillager_attack": "controller.animation.pillager.attack",
"pillager_root_controller": "controller.animation.pillager.root",
"riding.body": "animation.humanoid.riding.body"
},
"render_controllers": [
"controller.render.pillager"
],
"enable_attachables": true,
"hide_armor": true
}
}
}