Ok, so I am almost there.
I can see the block boundaries with the thin lines.
But the texture seems to be applied in the wrong position on the X & Z axis.
The Y axis I am guessing is because of the model.
But is I change the elements from/to to be 0 - 48 then MC complains that it is out of the boundaries.
If I change the from/to back to -16 - 32 then it's not complaining, but it looks wrong.
Also I can walk through the block.
I thought the getRenderBoundingBox would prevent that.
I guess I was wrong on how it works.
This is what I see now when I place the block:
This is my block model:
{
"credit": "Made with Blockbench",
"texture_size": [48, 48],
"textures": {
"0": "testmod:blocks/rune_block",
"particle": "testmod:blocks/rune_block"
},
"elements": [
{
"from": [-16, -16, -16],
"to": [32, 32, 32],
"faces": {
"north": {"uv": [0, 0, 16, 16], "texture": "#0"},
"east": {"uv": [0, 0, 16, 16], "texture": "#0"},
"south": {"uv": [0, 0, 16, 16], "texture": "#0"},
"west": {"uv": [0, 0, 16, 16], "texture": "#0"},
"up": {"uv": [0, 0, 16, 16], "texture": "#0"},
"down": {"uv": [0, 0, 16, 16], "texture": "#0"}
}
}
],
"display": {
"thirdperson_righthand": {
"scale": [0.1, 0.1, 0.1]
},
"thirdperson_lefthand": {
"scale": [0.1, 0.1, 0.1]
},
"firstperson_righthand": {
"scale": [0.1, 0.1, 0.1]
},
"firstperson_lefthand": {
"scale": [0.1, 0.1, 0.1]
},
"ground": {
"translation": [0, 1.25, 0],
"scale": [0.2, 0.2, 0.2]
},
"gui": {
"rotation": [20, -30, 0],
"scale": [0.2, 0.2, 0.2]
},
"head": {
"translation": [0, 9, 0],
"scale": [0.3, 0.3, 0.3]
},
"fixed": {
"scale": [0.3, 0.3, 0.3]
}
}
}