Registrations
-Simplify and add alias for xdecor
Micreoblocks, panels, slabs, stairs
-Simplify for forcing alias or normal
-Add function for convert block xdecor
-Add alias in register.
Init
function
uppercase
calculate the number of capital letters for lbm name
normal_alias_or_force
....
Add function for alll alias Xdecor
Add Settingtypes
Only make aliases automatically for stairs and slabs from MTG stairs mod. Let other mods worry about aliasing themselves. Fixes minetest-mods/moreblocks#45
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.
Keeps the old behavior of sneak == force wall (rather than invert).
Add protection/ownership checking. Can be phased out later after protection
mods start taking advantage of the engine's built-in ownershi-checking
functions.
Got rid of the /st command, since it didn't work anyway.
Minor re-arrangement of init.lua to put the mod's title block at the top
where it belongs :-)