-
Notifications
You must be signed in to change notification settings - Fork 49
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
Block type, unknown 6th bit #171
Comments
Thanks for the info! I found the types in brackets by looking at the blocktypes generated by tgen. I'm sure some of the solid types are used for e.g. ice/snow, so if you could figure that out, that would be great! |
I'll try my best, but it may take a while ;) |
I have had a look at the tgen output and found the following: All these blocks are solid and accept colors (even the "Not found" ones). There also seems to be an at least one block high layer above the terrain that's values are not always 0, i.e. in lava lands it is a layer with value 2 which normally is water, but in this case it is rendered as air (=empty). Maybe one of the unknown 2 upper bits specifies another usage of the value than using it in the mesh renderer, I will have a closer look at this soon. |
After having a closer look at it, I figured out that it was a bug within my code (reading over array bounds -.-), sorry for that. So there is no mysterious invisible layer above the world. |
I've committed the new block types - let me know if you disagree with the naming! |
The names are good, except the LAVA_TYPE, even if it is explained in the comments, it is a little misleading. When I would be reading this, I would think of liquid lava that burns you if you get in contact with it. Something like LAVA_ROCK_TYPE would be more clear. I've seen another interesting point when exploring the world a little, you maybe know it already: Cube World seems to have a sea level that ranges from 0 (including) down. If terrain is generated that starts below or at level 0, the empty blocks are filled with water. This water is not contained in the data arrays from tgen. You can see this in the mapviewer with seed 26880 in the chunk (32500, 32800). Around some structures, i.e. rocks breaking through the water surface, there is air generated around them. I've got still a little question: Could you add me to the special thanks list please? :-) |
Just to let you know: I have had a closer look at the block types to find out what exactly they do. What I figured out is that the "unknown" 6th bit seems to specify whether blocks can be broken (by bombs, huge boss monsters etc.). I did this by connecting to the server, sending a block update (cuwo.packet.Packet4Struct1) to the client, then closing / aborting the cuwo process so the client is set into his singleplayer world. Finally I tried if I could break the changed blocks using bombs (so I did no RE).
I created the following table in the process, maybe you can get some useful info from it ;)
PS: Sorry for the table layout, for some reason markdown doesn't work
The text was updated successfully, but these errors were encountered: