1
0
mirror of https://github.com/Mojang/bedrock-samples.git synced 2024-11-23 13:36:18 +00:00
bedrock-samples/resource_pack/entity/phantom.entity.json
Mike Ammerlaan e304be6ab8 v1.20.80.5
2024-04-23 09:20:49 -07:00

57 lines
1.6 KiB
JSON

{
"format_version": "1.10.0",
"minecraft:client_entity": {
"description": {
"identifier": "minecraft:phantom",
"materials": {
"default": "phantom",
"invisible": "phantom_invisible"
},
"textures": {
"default": "textures/entity/phantom"
},
"geometry": {
"default": "geometry.phantom"
},
"scripts": {
"pre_animation": [
"variable.wingRotZ = 16.0 * Math.sin((variable.RuntimeID * 3 + query.life_time * 20.0) * 7.448454);",
"variable.tailRotX = -5.0 * Math.sin((variable.RuntimeID * 3 + query.life_time * 20.0) * 14.896908) - 5.0;"
],
"initialize": [
"variable.runtimeid = 0;",
"variable.tailrotx = -5.0;",
"variable.wingrotz = 0.0;"
],
"animate": [
"phantom_base_pose_controller",
"move"
],
"should_update_effects_offscreen": "1.0"
},
"animations": {
"phantom_base_pose": "animation.phantom.base_pose",
"move": "animation.phantom.move",
"phantom_base_pose_controller": "controller.animation.phantom.base_pose"
},
"animation_controllers": [
{
"phantom_base_pose": "controller.animation.phantom.base_pose"
},
{
"move": "controller.animation.phantom.move"
}
],
"particle_effects": {
"wing_dust": "minecraft:phantom_trail_particle"
},
"render_controllers": [
"controller.render.phantom"
],
"spawn_egg": {
"texture": "spawn_egg",
"texture_index": 51
}
}
}
}