Have multiple textures in a Mob | Minecraft Bedrock

Posted by Ragthor - Monday May 7, 2021

Good morning!
In today's video I want to share with you how to use different textures in the same mob, as well as generate a unique texture by using a special tag.

Resource folder

entity

                   
                     
             
"scripts": {
        "pre_animation": [
          "variable.Rag = query.anim_time>0 ? variable.Rag : Math.random(0,999);"
        ]
      }

"textures": {
        "naranja": "textures/entity/naranja",
        "verde": "textures/entity/verde",
        "violeta": "textures/entity/violeta",
        "ragthor": "textures/entity/ymir"
      }

                     

render_controllers

                   
                     
 {
	"format_version": "1.8.0",
	"render_controllers": {
		"controller.render.lostweapons": {
			"arrays": {
				"textures": {
				  "Array.skins": [ "Texture.naranja", 
					"Texture.verde",
					 "Texture.violeta" ]
				}
			  },
			  "geometry": "Geometry.default",
			  "materials": [ { "*": "Material.default" } ],
			  "textures": [ "query.get_name == 'Ragthor' ? Texture.ragthor : Array.skins[variable.Rag]" ]
			}
		  }
		}