functional, except saw, legacy, other compatability

This commit is contained in:
flux
2022-06-14 11:17:06 -07:00
parent 687de31632
commit b9eed16713
22 changed files with 374 additions and 238 deletions

View File

@ -72,6 +72,10 @@ minetest.register_alias("moreblocks:allfacestree", "moreblocks:all_faces_tree")
minetest.register_alias("moreblocks:empty_bookshelf", "moreblocks:empty_shelf")
minetest.register_alias("moreblocks:split_stone_tile_alt", "moreblocks:checker_stone_tile")
if moreblocks.has.stairsplus and cm.jungle_wood then
stairsplus.api.register_alias_all("moreblocks:jungle_wood", cm.jungle_wood)
end
minetest.register_lbm({
name = "moreblocks:reduce_wood_tile_redundancy",
nodenames = {

View File

@ -354,7 +354,6 @@ if cm.glass then
})
end
minetest.register_craft({
output = "moreblocks:trap_clean_glass",
type = "shapeless",

View File

@ -22,7 +22,7 @@ local sound_metal = moreblocks.resources.sounds.metal
local function is_glasslike(def)
return #def.tiles > 1 and (
def.drawtype == "glasslike_framed" or
def.drawtype == "glasslike_framed_optional"
def.drawtype == "glasslike_framed_optional"
)
end
@ -37,14 +37,8 @@ local function register_stairs(name, def)
end
if moreblocks.has.stairsplus then
stairsplus:register_all(modname, name, itemstring, {
description = def.description,
groups = def.groups,
tiles = def.tiles,
sunlight_propagates = def.sunlight_propagates,
light_source = def.light_source,
sounds = def.sounds,
})
stairsplus.api.register_group(itemstring, "common")
elseif moreblocks.has.stairs then
stairs.register_stair_and_slab(
("%s_%s"):format(modname, name),
@ -59,7 +53,6 @@ local function register_stairs(name, def)
end
end
local function tile_tiles(tex)
return {tex, tex, tex, tex, tex .. "^[transformR90", tex .. "^[transformR90"}
end
@ -87,7 +80,6 @@ local function register_all_faces(name, base)
minetest.register_alias(name, itemstring)
end
local function register_trap(name, base)
name = "trap_" .. name
local itemstring = ("%s:%s"):format(modname, name)