Topic category: Help with Minecraft modding (Bedrock Edition)
Hello, I can't get any further and urgently need help. Unfortunately, my English isn't very good and I'm still learning the scripting language, but I've already had some positive successes. But here I need help. I work with notepad++, bridge and blockbench. I created 3 geometries. I want e.g. the cow to randomly spawn alternately with these. The 3rd geo is for the baby because I don't like the standard baby. I also have multiple textures. currently 3. These may be random at all. I have already created 3 component_groups variants for the textures in the BP. In the controller.render.cow I have array.skins with the 3 textures and array.models with the 3 geo. Of course the geo and textures are also listed in the entity file. My coding for this is:
In cow.entity.json by Scripts-initialize:
"variable.random_model = Math.random_integer(0, 1);"
In cow.render_controllers.json
"geometry": "query.is_baby ? geometry.baby : Array.models[variable.random_model]"
"textures": [Array.skins[query.variant]]
But if I start the game for test, my cows are all invisible. I only see walking shadows. What do I wrong? I dried so much. How can I fIx that? Can someone help me?
I believe bridge was in there, not mcreator. This forum is for mcreator, not minecraft modding in general
Oh im sorry ':D