Stairs+ nodes now check which side of the face (top/bottom for
horizontal, left/right for vertical placement) is being clicked to
decide on the orientation of the placed node. The aux key can be used
to place the node as if from the opposite side.
When the under node and placed node are the same category (e.g. slab to
slab) then by default the orientation of the under node is copied,
flippingit if placing above or below an upright or upside-down node. The
aux key can be used to place node according to the general (no aux, no
same-cat) rules.
(And yes, this means that it's not possible to place a stair+ node
against another stair+ node as if it were from the other side. Sorry, we
don't have enough special keys.)
Fix minetest-mods/moreblocks#98
Caused by cf1b054a99, 6a996eb86a and minetest/minetest_game@2f46103ff8.
For some unknown reason `default:glass` and `obsidian:glass` have `paramtype2 = "glasslikeliquidlevel"`. After the refactor of `stairsplus/registrations.lua`, all of the source node's defs are passed along to `stairsplus:register_all()`. Prior to cf1b054a99 the paramtype2 setting was discarded.
A regression caused the description of slabs to revert to the source block's description. This commit fixes the regression and adds descriptions which were missing for the recently added slabs (two_sides, three_sides, and three_sides_u).
Closes minetest-mods/moreblocks#96
Only make aliases automatically for stairs and slabs from MTG stairs mod. Let other mods worry about aliasing themselves. Fixes minetest-mods/moreblocks#45
* Refactor stairsplus registrations
- Reorganize and remove redundant code.
- Remove sunlight_propagates=true and default to paramtype="light".
This causes cut blocks to have a shadow but not completely block light.
- Fix several bugs (#90, #91, #92).
* Readd sunlight_propagates=true for compatibility.
* Make wool sawable
Based on my simple research https://github.com/minetest-mods/moreblocks/issues/71 enabling wool should not cause major slowdowns.
Code pasted from gloopblocks
* List wool as optional dependancy
* Added check for wool dependancy
* Make life easier for translators
The code
not type(fields.drop) == "table"
was always false because it compares a boolean with a string,
not (type(fields.drop) == "table")
is the intended logic.
For all glasslike drawtype nodes, the tiles contain up to 2
textures. The second texture is for "connected" glass, but that
likely is a transparent texture. If we use the `tiles` def without
modification, we will make all those slabs/slopes transparent on all
sides except the top.
To fix, we remove the tiles[2] from the tiledef in case the node is
a glasslike drawtype.