1

Block Variants (resourcepack)

Jnaejnae •3/22/15 1:35 am
•
341
•
3/26/2015 9:46 am
With 1.8, you can edit your block state and model jsons to make a block randomly select from different textures. I want my stone to just have two variants so its less repetitive. The name for the texture of my variant is "stone_a"

Blockstate json
Click to reveal
{
"variants": {
"normal": [
{ "model": "stone" },
{ "model": "stone_a" }
]
}
}


Model json
Click to reveal
{
"parent": "block/cube_all",
"textures": {
"all": "blocks/stone"
}
}


It may be because I dont have that spacing with the brackets, I actually forgot how to (brainfart), How do you do those big spaces for coding again. It may be the problem but its also likely its not the case. Anyone with experience pls help. Many thanks
Posted by
Jnaejnae
Level 38 : Artisan Architect
269

  Have something to say?

Join • Sign in

5

Jnaejnae
• 03/26/2015 9:46 am
• Level 38 : Artisan Architect
can anyone help?
1
Skitto493
• 03/22/2015 4:12 pm
• Level 55 : Grandmaster Dragon
You said the texture was named stone_a, BUT you've typed "model" into the code, so its looking for a model, not the texture.
1
Jnaejnae
• 03/22/2015 6:18 pm
• Level 38 : Artisan Architect
btw ur texture packs are pretty cool
1
Jnaejnae
• 03/22/2015 6:16 pm
• Level 38 : Artisan Architect
I made a model, with the texture in the model. So it should work anyways. Can you give me an example how to replace the model with the texture. tanks
1
Jnaejnae
• 03/22/2015 3:11 pm
• Level 38 : Artisan Architect
Anyone?
1

Welcome