1
0
mirror of https://github.com/Mojang/bedrock-samples.git synced 2024-11-27 04:38:56 +00:00
bedrock-samples/resource_pack/render_controllers/persona.render_controllers.json
Mike Ammerlaan 1440438305 v1.21.30.3
2024-09-17 09:13:33 -07:00

176 lines
9.9 KiB
JSON

{
"format_version": "1.8.0",
"render_controllers": {
"controller.render.persona_animated_face.first_person": {
"rebuild_animation_matrices": true,
"geometry": "Geometry.animated_face",
"materials": [ { "*": "Material.animated" } ],
"textures": [ "Texture.animated_face" ],
"part_visibility": [
{ "*": false },
{ "rightArm": "query.get_equipped_item_name(0, 1) == '' || query.get_equipped_item_name(0, 1) == 'map'" },
{ "rightSleeve": "query.get_equipped_item_name(0, 1) == '' || query.get_equipped_item_name(0, 1) == 'map'" },
{ "leftArm": "(query.get_equipped_item_name(0, 1) == 'map' && query.get_equipped_item_name('off_hand') != 'shield') || (query.get_equipped_item_name('off_hand') == 'map' && !query.item_is_charged) || (!query.item_is_charged && (variable.item_use_normalized > 0 && variable.item_use_normalized < 1.0))" },
{ "leftSleeve": "(query.get_equipped_item_name(0, 1) == 'map' && query.get_equipped_item_name('off_hand') != 'shield') || (query.get_equipped_item_name('off_hand') == 'map' && !query.item_is_charged) || (!query.item_is_charged && (variable.item_use_normalized > 0 && variable.item_use_normalized < 1.0))" }
],
"uv_anim": {
"offset": [ 0.0, "variable.use_blinking_animation ? variable.is_blinking * 0.5 : Math.mod(Math.floor(query.life_time * 7),variable.animation_frames_face)/variable.animation_frames_face" ],
"scale": [ 1.0, 1.0 ]
}
},
"controller.render.persona_animated_32x32.first_person": {
"rebuild_animation_matrices": true,
"geometry": "Geometry.animated_32x32",
"materials": [ { "*": "Material.animated" } ],
"textures": [ "Texture.animated_32x32" ],
"part_visibility": [
{ "*": false },
{ "rightArm": "query.get_equipped_item_name(0, 1) == '' || query.get_equipped_item_name(0, 1) == 'map'" },
{ "rightSleeve": "query.get_equipped_item_name(0, 1) == '' || query.get_equipped_item_name(0, 1) == 'map'" },
{ "leftArm": "(query.get_equipped_item_name(0, 1) == 'map' && query.get_equipped_item_name('off_hand') != 'shield') || (query.get_equipped_item_name('off_hand') == 'map' && !query.item_is_charged) || (!query.item_is_charged && (variable.item_use_normalized > 0 && variable.item_use_normalized < 1.0))" },
{ "leftSleeve": "(query.get_equipped_item_name(0, 1) == 'map' && query.get_equipped_item_name('off_hand') != 'shield') || (query.get_equipped_item_name('off_hand') == 'map' && !query.item_is_charged) || (!query.item_is_charged && (variable.item_use_normalized > 0 && variable.item_use_normalized < 1.0))" }
],
"uv_anim": {
"offset": [ 0.0, "Math.mod(Math.floor(query.life_time * 7),variable.animation_frames_32x32)/variable.animation_frames_32x32" ],
"scale": [ 1.0, 1.0 ]
}
},
"controller.render.persona_animated_128x128.first_person": {
"rebuild_animation_matrices": true,
"geometry": "Geometry.animated_128x128",
"materials": [ { "*": "Material.animated" } ],
"textures": [ "Texture.animated_128x128" ],
"part_visibility": [
{ "*": false },
{ "rightArm": "query.get_equipped_item_name(0, 1) == '' || query.get_equipped_item_name(0, 1) == 'map'" },
{ "rightSleeve": "query.get_equipped_item_name(0, 1) == '' || query.get_equipped_item_name(0, 1) == 'map'" },
{ "leftArm": "(query.get_equipped_item_name(0, 1) == 'map' && query.get_equipped_item_name('off_hand') != 'shield') || (query.get_equipped_item_name('off_hand') == 'map' && !query.item_is_charged) || (!query.item_is_charged && (variable.item_use_normalized > 0 && variable.item_use_normalized < 1.0))" },
{ "leftSleeve": "(query.get_equipped_item_name(0, 1) == 'map' && query.get_equipped_item_name('off_hand') != 'shield') || (query.get_equipped_item_name('off_hand') == 'map' && !query.item_is_charged) || (!query.item_is_charged && (variable.item_use_normalized > 0 && variable.item_use_normalized < 1.0))" }
],
"uv_anim": {
"offset": [ 0.0, "Math.mod(Math.floor(query.life_time * 7),variable.animation_frames_128x128)/variable.animation_frames_128x128" ],
"scale": [ 1.0, 1.0 ]
}
},
"controller.render.persona_animated_face.third_person": {
"rebuild_animation_matrices": true,
"geometry": "Geometry.animated_face",
"materials": [ { "*": "query.is_spectator ? Material.spectator : Material.animated" } ],
"textures": [ "Texture.animated_face" ],
"part_visibility": [
{ "*": "!query.is_spectator" },
{ "head": true },
{ "hat": true },
{ "helmet": "variable.helmet_layer_visible" },
{ "leftLegging": "variable.leg_layer_visible && !query.is_spectator" },
{ "rightLegging": "variable.leg_layer_visible && !query.is_spectator" },
{ "leftBoot": "variable.boot_layer_visible && !query.is_spectator" },
{ "rightBoot": "variable.boot_layer_visible && !query.is_spectator" },
{ "leftSock": "variable.boot_layer_visible && variable.leg_layer_visible && !query.is_spectator" },
{ "rightSock": "variable.boot_layer_visible && variable.leg_layer_visible && !query.is_spectator" },
{ "bodyArmor": "variable.chest_layer_visible && !query.is_spectator" },
{ "leftArmArmor": "variable.chest_layer_visible && !query.is_spectator" },
{ "rightArmArmor": "variable.chest_layer_visible && !query.is_spectator" },
{ "belt": "variable.chest_layer_visible && variable.leg_layer_visible && !query.is_spectator" },
{ "cape": "query.has_cape && !query.is_spectator" }
],
"uv_anim": {
"offset": [ 0.0, "variable.use_blinking_animation ? variable.is_blinking * 0.5 : Math.mod(Math.floor(query.life_time * 7),variable.animation_frames_face)/variable.animation_frames_face" ],
"scale": [ 1.0, 1.0 ]
},
"color": {
"r": "1.0f",
"g": "1.0f",
"b": "1.0f",
"a": "0.3f"
}
},
"controller.render.persona_animated_32x32.third_person": {
"rebuild_animation_matrices": true,
"geometry": "Geometry.animated_32x32",
"materials": [ { "*": "query.is_spectator ? Material.spectator : Material.animated" } ],
"textures": [ "Texture.animated_32x32" ],
"part_visibility": [
{ "*": "!query.is_spectator" },
{ "head": true },
{ "hat": true },
{ "helmet": "variable.helmet_layer_visible" },
{ "leftLegging": "variable.leg_layer_visible && !query.is_spectator" },
{ "rightLegging": "variable.leg_layer_visible && !query.is_spectator" },
{ "leftBoot": "variable.boot_layer_visible && !query.is_spectator" },
{ "rightBoot": "variable.boot_layer_visible && !query.is_spectator" },
{ "leftSock": "variable.boot_layer_visible && variable.leg_layer_visible && !query.is_spectator" },
{ "rightSock": "variable.boot_layer_visible && variable.leg_layer_visible && !query.is_spectator" },
{ "bodyArmor": "variable.chest_layer_visible && !query.is_spectator" },
{ "leftArmArmor": "variable.chest_layer_visible && !query.is_spectator" },
{ "rightArmArmor": "variable.chest_layer_visible && !query.is_spectator" },
{ "belt": "variable.chest_layer_visible && variable.leg_layer_visible && !query.is_spectator" },
{ "cape": "query.has_cape && !query.is_spectator" }
],
"uv_anim": {
"offset": [ 0.0, "Math.mod(Math.floor(query.life_time * 7),variable.animation_frames_32x32)/variable.animation_frames_32x32" ],
"scale": [ 1.0, 1.0 ]
},
"color": {
"r": "1.0f",
"g": "1.0f",
"b": "1.0f",
"a": "0.3f"
}
},
"controller.render.persona_animated_128x128.third_person": {
"rebuild_animation_matrices": true,
"geometry": "Geometry.animated_128x128",
"materials": [ { "*": "query.is_spectator ? Material.spectator : Material.animated" } ],
"textures": [ "Texture.animated_128x128" ],
"part_visibility": [
{ "*": "!query.is_spectator" },
{ "head": true },
{ "hat": true },
{ "helmet": "variable.helmet_layer_visible" },
{ "leftLegging": "variable.leg_layer_visible && !query.is_spectator" },
{ "rightLegging": "variable.leg_layer_visible && !query.is_spectator" },
{ "leftBoot": "variable.boot_layer_visible && !query.is_spectator" },
{ "rightBoot": "variable.boot_layer_visible && !query.is_spectator" },
{ "leftSock": "variable.boot_layer_visible && variable.leg_layer_visible && !query.is_spectator" },
{ "rightSock": "variable.boot_layer_visible && variable.leg_layer_visible && !query.is_spectator" },
{ "bodyArmor": "variable.chest_layer_visible && !query.is_spectator" },
{ "leftArmArmor": "variable.chest_layer_visible && !query.is_spectator" },
{ "rightArmArmor": "variable.chest_layer_visible && !query.is_spectator" },
{ "belt": "variable.chest_layer_visible && variable.leg_layer_visible && !query.is_spectator" },
{ "cape": "query.has_cape && !query.is_spectator" }
],
"uv_anim": {
"offset": [ 0.0, "Math.mod(Math.floor(query.life_time * 7),variable.animation_frames_128x128)/variable.animation_frames_128x128" ],
"scale": [ 1.0, 1.0 ]
},
"color": {
"r": "1.0f",
"g": "1.0f",
"b": "1.0f",
"a": "0.3f"
}
},
"controller.render.player.map.persona": {
"arrays": {
"geometries": {
"Array.geos": [ "Geometry.default", "Geometry.animated_face" ]
}
},
"geometry": "Array.geos[query.is_persona_or_premium_skin]",
"materials": [ { "*": "Material.animated" } ],
"textures": [ "Texture.animated_face" ],
"part_visibility": [
{ "*": false },
{ "head": true },
{ "hat": true },
{ "helmet": true }
],
"uv_anim": {
"offset": [ 0.0, "variable.is_blinking * 0.5" ],
"scale": [ 1.0, 1.0 ]
}
}
}
}