2

Custom Log Model Issue

DenseMelon 2/7/22 10:33 pm
118
2/9/2022 3:02 am
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!
Posted by
DenseMelon
Level 49 : Master Unicorn Loremaster
65

  Have something to say?

JoinSign in

3

6_28318530717958
02/08/2022 3:50 am
Level 56 : Grandmaster Cyborg
history
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
2
DenseMelon
02/08/2022 6:16 pm
He/Him • Level 49 : Master Unicorn Loremaster
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!
2
6_28318530717958
02/09/2022 3:02 am
Level 56 : Grandmaster Cyborg
no problem, let me know if you have any further issues :)
1

Welcome