Simple Angled Walls
Out of a fit of boredom, I used the code from the cobwebs in Homedecor, rewrote it, and created a set of angled walls for Minetest. This is accomplished by exploiting the "ceiling" and "floor" modes of the torchlike draw type.
This same method has been used in the past by Jordach to create flat panes before we had nodeboxes, but not in an automatic-find-the-right-wall-angle method.
Supports a dozen of the standard in-game blocks. Adding more wall types is as simple as adding a line to the nodes_list table in the code, and adding a texture to match.
Give yourself the wall you need or craft it and just place it. The code will make an attempt to figure out the right wall angle and place/rotate it accordingly - either to fill a corner between two adjacent blocks, or to extend a previously-placed angled wall of the same kind. Node names are of the form "angled_walls:xxxxxx_corner" where xxxxx is brick, stone, etc.
In order to get the images to align properly at the visual_scale setting used with them, I copied the original textures to new filenames, up-scaled them to 128px without filtering (so they still look like they're 16px), and then added empty space above and below the images.
Crafting: first craft some standard slabs of the material you need, e.g. wood or stone. Then place three of those slabs back in your crafting grid in a diagonal line. You can use Moreblocks' slabs also (the regular-sized ones), as long as all three are the same. Yields 12 wall panels:
Code: Select all
- - X
- X -
X - -
Download: https://github.com/VanessaE/angled_wall ... master.zip
...or browse the code: https://github.com/VanessaE/angled_walls
License: WTFPL for the code, CC-by-SA 3.0 for the textures, which were derived from the ones in minetest_game.
Screenshot: