1

How do I use the "Block states" folder in my resource pack?

usa 9/27/14 3:55 pm
1.7k
9/27/2014 4:40 pm
How do I use the .json files inside the folder to have alternate textures / models?
Posted by
usa
Level 46 : Master System
123

  Have something to say?

JoinSign in

5

usa
09/27/2014 4:40 pm
Level 46 : Master System
-still haven't found an answer-
1
TheMightyWaffle
09/27/2014 4:19 pm
Level 52 : Grandmaster Pixel Painter
here is the code for my diamond ore model, if you need that too.
(it wont fit here, so i will just post a link.)
copy and paste it into notepad to get a better look at it.
if the link doesnt work, tell me. i will PM the code to you.
Click to reveal
file:///C:/Users/Heather/Desktop/Link.html

warning! its very long.
1
TheMightyWaffle
09/27/2014 4:13 pm
Level 52 : Grandmaster Pixel Painter
i have made a bed model, and it uses lots of different textures. the code for the whole thing is here, so if you need top look at it, then you can do so. i would study from it. i hope it helps! if it doesnt, just ask!

Click to reveal
{
"ambientocclusion": false,
"textures": {
"bed_head_end": "blocks/bed_head_end",
"bed_head_top": "blocks/bed_head_top",
"bed_head_pillow": "blocks/bed_head_pillow",
"bed_head_side": "blocks/bed_head_side",
"planks_oak": "blocks/planks_oak"
},
"elements": [
{
"from": [ 2, 4, 0 ],
"to": [ 14, 5, 1 ],
"faces": {
"down": { "uv": [ 2, 1, 14, 0 ], "texture": "#planks_oak" },
"up": { "uv": [ 2, 0, 14, 1 ], "texture": "#planks_oak" },
"north": { "uv": [ 2, 12, 14, 13 ], "texture": "#planks_oak" },
"south": { "uv": [ 2, 12, 14, 13 ], "texture": "#planks_oak" },
"west": { "uv": [ 0, 12, 1, 13 ], "texture": "#planks_oak" },
"east": { "uv": [ 15, 12, 16, 13 ], "texture": "#planks_oak" }
}
},
{
"from": [ 2, 4, 3 ],
"to": [ 14, 5, 4 ],
"faces": {
"down": { "uv": [ 2, 4, 14, 3 ], "texture": "#planks_oak" },
"up": { "uv": [ 2, 3, 14, 4 ], "texture": "#planks_oak" },
"north": { "uv": [ 2, 12, 14, 13 ], "texture": "#planks_oak" },
"south": { "uv": [ 2, 12, 14, 13 ], "texture": "#planks_oak" },
"west": { "uv": [ 3, 12, 4, 13 ], "texture": "#planks_oak" },
"east": { "uv": [ 12, 12, 13, 13 ], "texture": "#bed_head_side left top" }
}
},
{
"from": [ 2, 4, 6 ],
"to": [ 14, 5, 7 ],
"faces": {
"down": { "uv": [ 2, 7, 14, 6 ], "texture": "#planks_oak" },
"up": { "uv": [ 2, 6, 14, 7 ], "texture": "#planks_oak" },
"north": { "uv": [ 2, 12, 14, 13 ], "texture": "#planks_oak" },
"south": { "uv": [ 2, 12, 14, 13 ], "texture": "#planks_oak" },
"west": { "uv": [ 6, 12, 7, 13 ], "texture": "#planks_oak" },
"east": { "uv": [ 9, 12, 10, 13 ], "texture": "#planks_oak" }
}
},
{
"from": [ 2, 4, 9 ],
"to": [ 14, 5, 10 ],
"faces": {
"down": { "uv": [ 2, 10, 14, 9 ], "texture": "#planks_oak" },
"up": { "uv": [ 2, 9, 14, 10 ], "texture": "#planks_oak" },
"north": { "uv": [ 2, 12, 14, 13 ], "texture": "#planks_oak" },
"south": { "uv": [ 2, 12, 14, 13 ], "texture": "#planks_oak" },
"west": { "uv": [ 9, 12, 10, 13 ], "texture": "#planks_oak" },
"east": { "uv": [ 6, 12, 7, 13 ], "texture": "#planks_oak" }
}
},
{
"from": [ 2, 4, 12 ],
"to": [ 14, 5, 13 ],
"faces": {
"down": { "uv": [ 2, 13, 14, 12 ], "texture": "#planks_oak" },
"up": { "uv": [ 2, 12, 14, 13 ], "texture": "#planks_oak" },
"north": { "uv": [ 2, 12, 14, 13 ], "texture": "#planks_oak" },
"south": { "uv": [ 2, 12, 14, 13 ], "texture": "#planks_oak" },
"west": { "uv": [ 12, 12, 13, 13 ], "texture": "#planks_oak" },
"east": { "uv": [ 3, 12, 4, 13 ], "texture": "#planks_oak" }
}
},
{
"from": [ 2, 4, 15 ],
"to": [ 14, 5, 16 ],
"faces": {
"down": { "uv": [ 2, 16, 14, 15 ], "texture": "#planks_oak" },
"up": { "uv": [ 2, 15, 14, 16 ], "texture": "#planks_oak" },
"north": { "uv": [ 2, 12, 14, 13 ], "texture": "#planks_oak" },
"south": { "uv": [ 2, 12, 14, 13 ], "texture": "#planks_oak" },
"west": { "uv": [ 15, 12, 16, 13 ], "texture": "#planks_oak" },
"east": { "uv": [ 0, 12, 1, 13 ], "texture": "#planks_oak" }
}
},
{
"from": [ 0, 4, 0 ],
"to": [ 2, 5, 16 ],
"faces": {
"down": { "uv": [ 0, 16, 2, 0 ], "texture": "#planks_oak" },
"up": { "uv": [ 0, 0, 2, 16 ], "texture": "#planks_oak" },
"north": { "uv": [ 14, 12, 16, 13 ], "texture": "#planks_oak" },
"south": { "uv": [ 0, 12, 2, 13 ], "texture": "#planks_oak" },
"west": { "uv": [ 0, 12, 16, 13 ], "texture": "#planks_oak" },
"east": { "uv": [ 0, 12, 16, 13 ], "texture": "#planks_oak" }
}
},
{
"from": [ 14, 4, 0 ],
"to": [ 16, 5, 16 ],
"faces": {
"down": { "uv": [ 14, 16, 16, 0 ], "texture": "#planks_oak" },
"up": { "uv": [ 14, 0, 16, 16 ], "texture": "#planks_oak" },
"north": { "uv": [ 0, 12, 2, 13 ], "texture": "#planks_oak" },
"south": { "uv": [ 14, 12, 16, 13 ], "texture": "#planks_oak" },
"west": { "uv": [ 0, 12, 16, 13 ], "texture": "#planks_oak" },
"east": { "uv": [ 0, 12, 16, 13 ], "texture": "#planks_oak" }
}
},
{
"from": [ 2, 8.5, 9 ],
"to": [ 14, 9, 15 ],
"faces": {
"down": { "uv": [ 4, 14, 11, 0 ], "texture": "#bed_head_pillow" },
"up": { "uv": [ 4, 0, 11, 14 ], "texture": "#bed_head_pillow" },
"north": { "uv": [ 4, 0, 11, 0.5 ], "texture": "#bed_head_pillow" },
"south": { "uv": [ 4, 14, 11, 13.5 ], "texture": "#bed_head_pillow" },
"west": { "uv": [ 4, 0, 4.5, 0.5 ], "texture": "#bed_head_pillow" },
"east": { "uv": [ 4.5, 0, 4, 0.5 ], "texture": "#bed_head_pillow" }
}
},
{
"from": [ 0, 5, 0 ],
"to": [ 16, 8.5, 16 ],
"faces": {
"down": { "uv": [ 8, 4, 9, 5 ], "texture": "#bed_head_pillow" },
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#bed_head_top" },
"north": { "uv": [ 0, 7, 16, 11 ], "texture": "#bed_head_side" },
"south": { "uv": [ 0, 7, 16, 11 ], "texture": "#bed_head_end" },
"west": { "uv": [ 0, 7, 16, 11 ], "texture": "#bed_head_side" },
"east": { "uv": [ 16, 7, 0, 11 ], "texture": "#bed_head_side" }
}
},
{
"from": [ 0, 0, 15 ],
"to": [ 1, 4, 16 ],
"faces": {
"down": { "uv": [ 0, 16, 1, 15 ], "texture": "#planks_oak" },
"up": { "uv": [ 0, 15, 1, 16 ], "texture": "#planks_oak" },
"north": { "uv": [ 15, 14, 16, 16 ], "texture": "#planks_oak" },
"south": { "uv": [ 0, 14, 1, 16 ], "texture": "#planks_oak" },
"west": { "uv": [ 15, 14, 16, 16 ], "texture": "#planks_oak" },
"east": { "uv": [ 0, 14, 1, 16 ], "texture": "#planks_oak" }
}
},
{
"from": [ 0, 0, 14 ],
"to": [ 1, 4, 15 ],
"faces": {
"down": { "uv": [ 0, 15, 1, 14 ], "texture": "#planks_oak" },
"up": { "uv": [ 0, 14, 1, 15 ], "texture": "#planks_oak" },
"north": { "uv": [ 15, 14, 16, 16 ], "texture": "#planks_oak" },
"south": { "uv": [ 0, 14, 1, 16 ], "texture": "#planks_oak" },
"west": { "uv": [ 14, 14, 15, 16 ], "texture": "#planks_oak" },
"east": { "uv": [ 1, 14, 2, 16 ], "texture": "#planks_oak" }
}
},
{
"from": [ 1, 0, 15 ],
"to": [ 2, 4, 16 ],
"faces": {
"down": { "uv": [ 1, 16, 2, 15 ], "texture": "#planks_oak" },
"up": { "uv": [ 1, 15, 2, 16 ], "texture": "#planks_oak" },
"north": { "uv": [ 14, 14, 15, 16 ], "texture": "#planks_oak" },
"south": { "uv": [ 1, 14, 2, 16 ], "texture": "#planks_oak" },
"west": { "uv": [ 15, 14, 16, 16 ], "texture": "#planks_oak" },
"east": { "uv": [ 0, 14, 1, 16 ], "texture": "#planks_oak" }
}
},
{
"from": [ 15, 0, 15 ],
"to": [ 16, 4, 16 ],
"faces": {
"down": { "uv": [ 15, 16, 16, 15 ], "texture": "#planks_oak" },
"up": { "uv": [ 15, 15, 16, 16 ], "texture": "#planks_oak" },
"north": { "uv": [ 0, 14, 1, 16 ], "texture": "#planks_oak" },
"south": { "uv": [ 15, 14, 16, 16 ], "texture": "#planks_oak" },
"west": { "uv": [ 15, 14, 16, 16 ], "texture": "#planks_oak" },
"east": { "uv": [ 0, 14, 1, 16 ], "texture": "#planks_oak" }
}
},
{
"from": [ 14, 0, 15 ],
"to": [ 15, 4, 16 ],
"faces": {
"down": { "uv": [ 14, 16, 15, 15 ], "texture": "#planks_oak" },
"up": { "uv": [ 14, 15, 15, 16 ], "texture": "#planks_oak" },
"north": { "uv": [ 1, 14, 2, 16 ], "texture": "#planks_oak" },
"south": { "uv": [ 14, 14, 15, 16 ], "texture": "#planks_oak" },
"west": { "uv": [ 15, 14, 16, 16 ], "texture": "#planks_oak" },
"east": { "uv": [ 0, 14, 1, 16 ], "texture": "#planks_oak" }
}
},
{
"from": [ 15, 0, 14 ],
"to": [ 16, 4, 15 ],
"faces": {
"down": { "uv": [ 15, 15, 16, 14 ], "texture": "#planks_oak" },
"up": { "uv": [ 15, 14, 16, 15 ], "texture": "#planks_oak" },
"north": { "uv": [ 0, 14, 1, 16 ], "texture": "#planks_oak" },
"south": { "uv": [ 15, 14, 16, 16 ], "texture": "#planks_oak" },
"west": { "uv": [ 14, 14, 15, 16 ], "texture": "#planks_oak" },
"east": { "uv": [ 1, 14, 2, 16 ], "texture": "#planks_oak" }
}
},
{
"from": [ 15, 2, 0 ],
"to": [ 16, 3, 14 ],
"faces": {
"down": { "uv": [ 14.5, 14, 15.5, 0 ], "texture": "#planks_oak" },
"up": { "uv": [ 14.5, 0, 15.5, 14 ], "texture": "#planks_oak" },
"north": { "uv": [ 0.5, 13, 1.5, 14 ], "texture": "#planks_oak" },
"south": { "uv": [ 14.5, 13, 15.5, 14 ], "texture": "#planks_oak" },
"west": { "uv": [ 0, 13, 14, 14 ], "texture": "#planks_oak" },
"east": { "uv": [ 2, 13, 16, 14 ], "texture": "#planks_oak" }
}
},
{
"from": [ 0, 2, 0 ],
"to": [ 1, 3, 14 ],
"faces": {
"down": { "uv": [ 0.5, 14, 1.5, 0 ], "texture": "#planks_oak" },
"up": { "uv": [ 0.5, 0, 1.5, 14 ], "texture": "#planks_oak" },
"north": { "uv": [ 14.5, 13, 15.5, 14 ], "texture": "#planks_oak" },
"south": { "uv": [ 0.5, 13, 1.5, 14 ], "texture": "#planks_oak" },
"west": { "uv": [ 0, 13, 14, 14 ], "texture": "#planks_oak" },
"east": { "uv": [ 2, 13, 16, 14 ], "texture": "#planks_oak" }
}
}
]
}
1
TheMightyWaffle
09/27/2014 4:01 pm
Level 52 : Grandmaster Pixel Painter
to make alternate models, you really dont need to have the "blockstates" file in your resourcepack. mine works fine without it. you just need to have the models folder, and actually have something to make the models. i suggest buying cubik, if you haven't already.
1
usa
09/27/2014 4:09 pm
Level 46 : Master System
So basically this:
If I want 2 textures for diamond_ore, I go in the diamond_ore.json file in the models folder, which by default is this:

{
"parent": "block/cube_all",
"textures": {
"all": "blocks/diamond_ore"
}
}

And just keep adding to the "textures":{} part for each texture I make? (so it could end up looking like this)

{
"parent": "block/cube_all",
"textures": {
"all": "blocks/diamond_ore","blocks/diamond_ore_2"
}
}

??
1

Welcome