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/villager_v2.render_controllers.json
Mike Ammerlaan a3b394c507 1.19.30
Initial layout
2022-09-23 06:24:26 -07:00

90 lines
2.4 KiB
JSON

{
"format_version": "1.8.0",
"render_controllers": {
"controller.render.villager_v2_base": {
"arrays": {
"textures": {
"Array.skins": [
"Texture.base",
"Texture.base2",
"Texture.base3",
"Texture.base4",
"Texture.base5",
"Texture.base6"
]
}
},
"geometry": "Geometry.default",
"materials": [
{ "*": "Material.default" }
],
"textures": [
"Array.skins[query.skin_id]"
]
},
"controller.render.villager_v2_masked": {
"arrays": {
"textures": {
"Array.biomes": [
"Texture.plains",
"Texture.desert",
"Texture.jungle",
"Texture.savanna",
"Texture.snow",
"Texture.swamp",
"Texture.taiga"
],
"Array.professions": [
"Texture.unskilled",
"Texture.farmer",
"Texture.fisherman",
"Texture.shepherd",
"Texture.fletcher",
"Texture.librarian",
"Texture.cartographer",
"Texture.cleric",
"Texture.armorer",
"Texture.weapon_smith",
"Texture.tool_smith",
"Texture.butcher",
"Texture.leatherworker",
"Texture.stonemason",
"Texture.nitwit"
]
}
},
"geometry": "Geometry.default",
"materials": [
{ "*": "(query.is_baby || variable.profession_index == 0) ? Material.default : Material.masked" }
],
"textures": [
"Array.biomes[query.mark_variant]",
"Array.professions[variable.profession_index]"
]
},
"controller.render.villager_v2_level": {
"arrays": {
"textures": {
"Array.levels": [
"Texture.level_stone",
"Texture.level_iron",
"Texture.level_gold",
"Texture.level_emerald",
"Texture.level_diamond"
]
}
},
"rebuild_animation_matrices": true,
"geometry": "Geometry.default",
// If we are not babies, unskilled, or nitwits we can have a job level
"part_visibility": [ { "*": "!query.is_baby && variable.profession_index != 0 && variable.profession_index != 14" } ],
"materials": [
{ "*": "Material.default" }
],
"textures": [
"Array.levels[variable.level_index]"
]
}
}
}