I'm trying to create a block which uses a custom model and is rotatable on an axis like wood blocks.
The specific error is:
[02:54:06] [Server-Worker-2/WARN] [minecraft/ModelBakery]: Exception loading blockstate definition: 'jdyntreesmod:blockstates/block_oak_medium.json' missing model for variant: 'jdyntreesmod:block_oak_medium#axis=y'
[02:54:06] [Server-Worker-2/WARN] [minecraft/ModelBakery]: Exception loading blockstate definition: 'jdyntreesmod:blockstates/block_oak_medium.json' missing model for variant: 'jdyntreesmod:block_oak_medium#axis=z'
[02:54:06] [Server-Worker-2/WARN] [minecraft/ModelBakery]: Exception loading blockstate definition: 'jdyntreesmod:blockstates/block_oak_medium.json' missing model for variant: 'jdyntreesmod:block_oak_medium#axis=x'
[02:54:06] [Server-Worker-2/WARN] [minecraft/ModelBakery]: Exception loading blockstate definition: 'jdyntreesmod:blockstates/block_oak_medium.json' in resourcepack: 'main': com.google.gson.stream.MalformedJsonException: Expected name at line 6 column 6 path $.variants.
The Blockstate File:
{
"variants": {
"axis=y": { "model": "jdyntreesmod:models/blocks/model_block_oak_medium" },
"axis=z": { "model": "jdyntreesmod:models/blocks/model_block_oak_medium", "x": 90 },
"axis=x": { "model": "jdyntreesmod:models/blocks/model_block_oak_medium", "x": 90, "y": 90 },
}
}
Before you ask: i removed the axis=none line because it was throwing the following error
[02:54:06] [Server-Worker-2/WARN] [minecraft/ModelBakery]: Exception loading blockstate definition: 'jdyntreesmod:blockstates/block_oak_small.json' in resourcepack: 'main' for variant: 'axis=none': Unknown value: 'none' for blockstate property: 'axis' [x, y, z]
The code i used to create the java File is identical to RotatedPillarBlock (For testing purposes)
This is the Model .json
{
"credit": "Made with Blockbench",
"parent": "minecraft:block/block",
"ambientocclusion": false,
"texture_size": [32, 16],
"textures": {
"particle": "jdyntreesmod:blocks/block_oak_medium"
},
"elements": [
{
"name": "oakLogMedium",
"from": [3, 1, 3],
"to": [13, 16, 13],
"rotation": {"angle": 0, "axis": "z", "origin": [13, 16, 3]},
"faces": {
"north": {"uv": [2.5, 5, 5, 12.5], "texture": "#particle"},
"east": {"uv": [0, 5, 2.5, 12.5], "texture": "#particle"},
"south": {"uv": [7.5, 5, 10, 12.5], "texture": "#particle"},
"west": {"uv": [5, 5, 7.5, 12.5], "texture": "#particle"},
"up": {"uv": [5, 5, 2.5, 0], "texture": "#particle"},
"down": {"uv": [7.5, 0, 5, 5], "texture": "#particle"}
}
}
],
"display": {
"thirdperson_righthand": {
"rotation": [75, 45, 0],
"translation": [0, 2.5, 0],
"scale": [0.375, 0.375, 0.375]
}
}
}
Is the axis=none line the cause of the issue? If so, what can i do to fix the error associated with it?
I hate jsons.