#Web variations

1 messages · Page 1 of 1 (latest)

hoary edge
#

Hey, I'm just doing this for fun so if I'm asking in the wrong place please let me know. For the last couple of years I've been creating a private resource pack just for myself and my daughter that's composed of texture varieties from other resource packs. She recently asked me to start adding in different cobwebs and for some reason it won't let me or rather it only uses the first texture defined could someone let me know if I'm doing something wrong?

"web":{
"textures":{
"variations":[
{"path":"textures/blocks/web/6"},
{"path":"textures/blocks/web/0"},
{"path":"textures/blocks/web/1"},
{"path":"textures/blocks/web/2"},
{"path":"textures/blocks/web/3"},
{"path":"textures/blocks/web/4"},
{"path":"textures/blocks/web/5"},
{"path":"textures/blocks/web/7"},
{"path":"textures/blocks/web/8"},
{"path":"textures/blocks/web/9"}
]
}
}

tia

cerulean parrot
#

Hello! A couple of things you may need to update to get the variations working as intended:

  1. Variations require weights - if none are provided, the pipeline will always pick the first texture in the array. So you'll need something like
{"path":"textures/blocks/web/0", "weight": 10},```
and so on! 
More info on variations and samples can be found here: https://learn.microsoft.com/en-us/minecraft/creator/documents/variationsblocktexture?view=minecraft-bedrock-stable

2) You may need to specify the blockshape since the Web block uses the old Block shapes geo, specifically the `cross_texture`. You may need to wrap it as such:
```"web": {
"blockshape": "cross_texture"
"textures":{
"variations": [
{"path":"textures/blocks/web/6"},
{"path":"textures/blocks/web/0"},
{"path":"textures/blocks/web/1"},
{"path":"textures/blocks/web/2"},
{"path":"textures/blocks/web/3"},
{"path":"textures/blocks/web/4"},
{"path":"textures/blocks/web/5"},
{"path":"textures/blocks/web/7"},
{"path":"textures/blocks/web/8"},
{"path":"textures/blocks/web/9"},
]```
Let me know if these fix your issue!

A guide to variations block textures in Minecraft: Bedrock Edition

hoary edge
#

Interesting. Many of the textures I use now work this way without being weighed but I'll try adding them into the webs and see what happens. Thanks for your help and time 🙂

Edit: I've tried what you suggested. First by just adding in the weights, and then with the weights and block shape but neither works. I'll give the article you linked a read but I'm pretty sure I read that before asking here. Thank you again for trying to help.

"web":{
"blockshape": "cross_texture",
"textures":{
"variations":[
{ "path":"textures/blocks/web/6", "weight": 10 },
{ "path":"textures/blocks/web/0", "weight": 10 },
{ "path":"textures/blocks/web/1", "weight": 10 },
{ "path":"textures/blocks/web/2", "weight": 10 },
{ "path":"textures/blocks/web/3", "weight": 10 },
{ "path":"textures/blocks/web/4", "weight": 10 },
{ "path":"textures/blocks/web/5", "weight": 10 },
{ "path":"textures/blocks/web/7", "weight": 10 },
{ "path":"textures/blocks/web/8", "weight": 10 },
{ "path":"textures/blocks/web/9", "weight": 10 }
]
}
},
hoary edge
#

Ok I figured it out. You set me on the right track with the block shape. The block shape needed to be added into the blocks.json and it turns out that I forgot to add the web into the blocks.json at all. Doing this fixed it. Tysm