-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggestion: Add direction to the state of a block #116
Comments
I don't understand the difference between rotation and direction - can you explain? |
@fogleman I think he means one if for rotation around y, and one is for placement in y. So for example you can have stairs that are facing north (the stairs have the pointy end facing north) but they can be upside down or the right side up. At least that is how i understand it. and you could use less bits for that. |
And then you have custom geometry for these special blocks? |
Custom geometry could fall in with the idea I posted of a plugin architecture, but it wouldn't be a walk in the park. Would be cool to add someone's 'stair' plugin to your client and server. |
yep, custom geometry, drawn in a similar manner as how flowers are drawn (e.g., just add another check when drawing blocks around lines 871 in |
Rather than adding another attribute to blocks, another option could be to use multiple block IDs, one for each orientation/rotation of the same block (imho this would be cleaner/simpler/smaller than segmenting the block space). |
What possibilities does this open up? Well, meta-blocks like torches, ladders (where the attach point would otherwise be ambiguous, such as at the corner of two blocks), and the big one I'd like to try and implement at some point: stairs.
@fogleman, thoughts on this? I could work on it, but I'd like to know if it has a good chance of making it into the mainline before putting in a lot of effort. Note that it'd just be for adding a direction (orientation/direction as a single attribute) to blocks (which would be ignored for the blocks in the current game), not adding stairs (which I'd like to do after this, if it gets green-lighted).
The idea is to add another attribute to the blocks, in the form of a
short
(or twounsigned char
?).The text was updated successfully, but these errors were encountered: