mojira.dev
MC-70636

Block state model rotation around z axis not possible

When specifying multiple rotation axes within a blockstate, the "z" axis is ignored.

Example:

assets/minecraft/blockstates/someblock.json

{
	"variants": {
		"": { "model": "foobar", "z": 90 }
	}
}

This will not rotate the block 90°.

This makes it impossible to have certain visual results without creating more files. For example turning planks 90 degrees on the z axis would change the planks on all sides, making north, south, east and west vertical, but using x (and y), 2 sides will always have horizontal lines.

Comments 17

You can rotate it into whatever orientation you want using just X and Y, having Z rotation as well is unnecessary.

I think your argument is not correct.
If x denotes 90° clockwise rotation around the x axis (and y around the y axis etc.),
all rotations specifiable in this format are of the form x^i * y^j where i,j are in 0...3 (since x^4 = y^4 = 1 = x^0 = y^0).
We therefore obtain at maximum 4*4=16 different rotations but the rotation symmetry group of the cube has order 24.
Even if we add z, z^2 and z^3, there are at least 5 rotations that can not be specified (more because of identifications, e.g. z^2 = x^2*y^2).

While you are right that z = xyx^3, this term can (to my knowledge) not be written in the given format (remember that rotation is not commutative).

Bump — please reopen.

Confirmed. Impossible to create vertical slatted wood planks with rotation (requires z axis) among others.

Still Broken. Please Reopen

7 more comments

still the case in 1.20.1

Considering the reporter hasn't touched this report since at least 2017, I'd like to request ownership of this report.

I will modify the report then to have more clear examples of impossible options as a result of the lack of z rotation.

We can just request ownership?

 

If the reporter is inactive, yes.

How is this coming along? is it a bug or a feature?

womc

user-f2760

(Unassigned)

Confirmed

Block states

resource-pack

Minecraft 1.8, Minecraft 1.9, Minecraft 1.11, 1.14.4, 20w07a, 1.20.1, 1.20.2, 23w43b

Retrieved