![]() |
VOOZH | about |
A Request for more information on Functionality that didn't exist was Filed To Hitbox, If We can reach a consensus on this then It can Either be Removed or any information regarding this will be compiled and added – Unsigned comment added by MinerMinerMain (talk • contribs) at 21:42, 29 July 2022 (UTC). Sign comments with ~~~~
Just as there's a section for entities, there could be one for blocks.
But that would require some work. The idea would be to list all blocks that are not 16×16×16. A quick look at the code shows 133 instances of getShape.
Before starting the list, it would be important to define rules for how we will discuss the formats, considering more complex cases, block state variations, etc.
Edit: Perhaps we could use a notation based on the game's code. For example:
box(x,y,z,X,Y,Z) = (x,y,z) to (X,Y,Z)column(x,z,y,Y) = box(8-x/2,y,8-z/2,8+x/2,Y,8+z/2)column(xz,y,Y) = column(xz,xz,y,Y)cube(x,y,z) = column(x,z,8-y/2,8+y/2)cube(l) = cube(l,l,l)boxZ(x,y,Y,z,Z) = box(8-x/2,y,z,8+x/2,Y,Z)boxZ(x,y,z,Z) = boxZ(x,8-y/2,8+y/2,z,Z)boxZ(xy,z,Z) = boxZ(xy,xy,z,Z)The code is a little different, but we could have that too:
shape1+shape2 = Union of shape1 and shape2shape1-shape2 = Remove shape2 from shape1