#Render-controller / Display multiple texture on entity

1 messages · Page 1 of 1 (latest)

last hedge
#

my render-controller :
{
"format_version": "1.8.0",
"render_controllers": {
"controller.render.easter_egg": {
"geometry": "Geometry.default",
"materials": [
{
"*": "Material.default"
}
],
"arrays": {
"textures": {
"Array.t": [
"Texture.1",
"Texture.2",
"Texture.3",
"Texture.4",
"Texture.5",
"Texture.6",
"Texture.7",
"Texture.8",
"Texture.9"
]
}
},
"textures": [
"Array.t[query.variant]"
],
"light_color_multiplier": 1.25,
"ignore_lighting": true
}
}
}
Thats Code doesent work

I want a Entity with random variants of texture on spawing

limpid vector
#

Or you could do


"component_groups": {
"minecraft:color0": {
        "minecraft:variant": {
          "value": 0
        }
      },
"minecraft:color1": {
       "minecraft:variant": {
          "value": 1
        }
      }
}


"events": {
      "minecraft:entity_spawned": { 
      "sequence": [
          {
            "randomize": [
              {
                "weight": 1,
                "remove": {
                },
                "add": {
                  "component_groups": [
                    "minecraft:color0"
                  ]
                }
              },
              {
                "weight": 1,
                "remove": {
                },
                "add": {
                  "component_groups": [
                    "minecraft:color1"
                  ]
                }
              }
            ]
  },
}

limpid vector