-
Bug
-
Resolution: Unresolved
-
None
-
1.20.1, 1.20.2 Pre-release 1, 23w44a
-
None
-
Community Consensus
-
Block states
-
Low
-
Platform
When you load a rotated structure there are blocks which change, such as logs, but if the structure contains another structure block that block doesn't change at all if rotated. I think it would be better if they did, tho, in order to totally rotate the structure.
For example, I have created a structure named "structure" which contains 4 logs:
After that, I created a structure named "hello" which contains a log and a load structure block:
The content of the structure block contained in "hello" is:
Then I tried to load the "hello" structure somewhere else but rotating it:
As you can see, the log has been changed to be rotated, but this hasn't happened for the generated structure block, which has still the same parameters of the original one:
I would have expected this result in this case, tho:
This could be solved with this formula:
taken "x" the x-coordinate of Relative Position of the original block, "z" the z-coordinate of Relative Position of the original block, "angle" the angle of rotation in degrees of the original block and "rotation" the angle of rotation in degrees of the structure that includes the block, the new values will be:
new_x = x*cos(rotation)-z*sin(rotation)
new_z = x*sin(rotation)+z*cos(rotation)
new_angle = (angle+rotation)mod360
In this specific case, the values would be:
angle = 0°, rotation = 90°, x=-1, z=0
and the result:
new_x = -1*cos(90°)-0*sin(90°) = 0
new_z = -1*sin(90°)+0*cos(90°) = -1
new_angle = (0°+90°)mod360 = 90°
- relates to
-
BDS-19316 Structure Block Generation Error
- Resolved
-
MCPE-186845 Nested structures deform when loaded with rotation
- Open