2
Custom Log Model Issue
i've been trying to variate the block model for the oak log and i havent been able to get it working, heres the blockstate file:
{
"variants": {
"axis=x": {
"model": "block/oak_log_horizontal", "weight": 40 , "x": 90, "y": 90 },
"axis=y": {
"model": "minecraft:block/oak_log", "weight": 40 },
"axis=z": {
"model": "minecraft:block/oak_log_horizontal", "weight": 40 , "x": 90 }
"axis=x": {
"model": "minecraft:block/oak_log_1_horizontal", "weight": 2 , "x": 90, "y": 90 },
"axis=y": {
"model": "minecraft:block/oak_log", "weight": 2 },
"axis=z": {
"model": "minecraft:block/oak_log_1_horizontal", "weight": 2 , "x": 90 }
}
}
if you see something wrong with the code, or have another way to fix this please let me know!
{
"variants": {
"axis=x": {
"model": "block/oak_log_horizontal", "weight": 40 , "x": 90, "y": 90 },
"axis=y": {
"model": "minecraft:block/oak_log", "weight": 40 },
"axis=z": {
"model": "minecraft:block/oak_log_horizontal", "weight": 40 , "x": 90 }
"axis=x": {
"model": "minecraft:block/oak_log_1_horizontal", "weight": 2 , "x": 90, "y": 90 },
"axis=y": {
"model": "minecraft:block/oak_log", "weight": 2 },
"axis=z": {
"model": "minecraft:block/oak_log_1_horizontal", "weight": 2 , "x": 90 }
}
}
if you see something wrong with the code, or have another way to fix this please let me know!
3
You’re missing a comma after the first “axis=z”. Also you have repeated variants - that is not how you do block model variants.
it should be:
{
"variants": {
"axis=x": [
{"model": "block/oak_log_horizontal", "weight": 40 , "x": 90, "y": 90 },
{"model": "block/oak_log_1_horizontal", "weight": 40 , "x": 90, "y": 90 }
],
"axis=y": [
{"model": "minecraft:block/oak_log", "weight": 40 },
{"model": "minecraft:block/oak_log_1", "weight": 40 }
]
"axis=z": [
{“model": "minecraft:block/oak_log_horizontal", "weight": 40 , "x": 90 },
{can’t be bothered to type the rest out you can probably guess what goes here}
]
}
that was difficult to type out on mobile, the weights and names are definitely wrong but hopefully it makes some sense
it should be:
{
"variants": {
"axis=x": [
{"model": "block/oak_log_horizontal", "weight": 40 , "x": 90, "y": 90 },
{"model": "block/oak_log_1_horizontal", "weight": 40 , "x": 90, "y": 90 }
],
"axis=y": [
{"model": "minecraft:block/oak_log", "weight": 40 },
{"model": "minecraft:block/oak_log_1", "weight": 40 }
]
"axis=z": [
{“model": "minecraft:block/oak_log_horizontal", "weight": 40 , "x": 90 },
{can’t be bothered to type the rest out you can probably guess what goes here}
]
}
that was difficult to type out on mobile, the weights and names are definitely wrong but hopefully it makes some sense
Thanks! I kind of winged it with the code because I couldn't find any information about it. I see what you mean about the repeated variants. again, thanks a lot!
no problem, let me know if you have any further issues :)
