0

Implement some mossy blocks

This adds:
- mossy stone brick stairs
- mossy cobblestone stairs
- mossy stone brick walls

We also add another block class for walls, and while we're at it,
clean up the stairs texture function to not have a huge sprawling
elif mess for loading textures, but instead to a cheeky dictionary
lookup.

In case you're wondering, yes I am just as disgusted by this code as
you are.
This commit is contained in:
Nicolas F
2019-07-15 17:23:25 +02:00
parent 634e13c92c
commit 7e2cb56c1b
7 changed files with 56 additions and 43 deletions

View File

@@ -390,7 +390,7 @@ generate_pseudo_data(RenderState* state, uint16_t ancilData) {
}
}
return data;
} else if (state->block == block_cobblestone_wall) {
} else if (block_class_is_subset(state->block, block_class_wall, block_class_wall_len)) {
/* check for walls and add one bit with the type of wall (mossy or cobblestone)*/
if (ancilData == 0x1) {
return check_adjacent_blocks(state, x, y, z, state->block) | 0x10;