#Variant Textures (not) working weirdly
1 messages ยท Page 1 of 1 (latest)
Render controller?
(I used Blockbenches Entity Wizard and the Cat template. I made sure to remove all their variants and textures though, so idk what else to do)
Controller.render.cat.json?
Neither the DP or RP have a Controller.render.cat.json
you have to assign the variables to each texture. you can use query.variant==0 and query.variant==1
Could you give me and example on how I would do that if you don't mind? I've never done this kinda thing before ๐งโโ๏ธ
Clear. in the part where it says
"render controllers":["Controller.render.cat"]
you do:
"render controllers":[{"Controller.render.cat1":"query.variant==0"},{"Controller.render.cat2":"query.variant==1"}]
then you make the 2 render controllers, each one with the corresponding texture
Oooooh alright, let me try that
ferret.entity.json
{
"format_version": "1.8.0",
"minecraft:client_entity": {
"description": {
"identifier": "cherricraft:ferret",
"materials": {
"default": "cat"
},
"textures": {
"sable": "textures/entity/ferret/sable",
"cinnamon": "textures/entity/ferret/cinnamon"
},
"geometry": {
"default": "geometry.ferret"
},
"animations": {
"sneak": "animation.ferret.sneak",
"walk": "animation.ferret.walk",
"sprint": "animation.ferret.sprint",
"sit": "animation.ferret.sit",
"look_at_target": "animation.common.look_at_target",
"baby_transform": "animation.ferret.baby_transform",
"lie_down": "animation.ferret.lie_down"
},
"animation_controllers": [
{
"look_at_target": "controller.animation.cat.look_at_target"
},
{
"move": "controller.animation.cat.move"
},
{
"baby": "controller.animation.cat.baby"
}
],
"render_controllers": ["controller.render.cat1", "controller.render.cat2"],
"spawn_egg": {
"base_color": "#cdbbac",
"overlay_color": "#73625a"
}
}
}
}
cat.render_controller.json
{
"format_version": "1.8.0",
"render_controllers": {
"controller.render.cat1": {
"arrays": {
"textures": {
"query.variant": [
"Texture.sable"
],
"Array.tame": [
"Texture.sable_tame"
]
}
},
"controller.render.cat2": {
"arrays": {
"textures": {
"query.variant": [
"Texture.cinnamon"
],
"Array.tame": [
"Texture.cinnamon_tame"
]
}
}
},
"geometry": "Geometry.default",
"materials": [ { "*": "Material.default" } ],
"textures": [ "query.is_tamed ? Array.tame[query.variant] : Array.skins[query.variant]"]
}
}
}
idk what else to do and this is getting really frustrating ๐งโโ๏ธ