mirror of
https://github.com/minetest-mods/moreblocks.git
synced 2025-07-08 02:50:34 +02:00
functional, except saw, legacy, other compatability
This commit is contained in:
@ -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 = {
|
||||
|
@ -354,7 +354,6 @@ if cm.glass then
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
minetest.register_craft({
|
||||
output = "moreblocks:trap_clean_glass",
|
||||
type = "shapeless",
|
||||
|
@ -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)
|
||||
|
Reference in New Issue
Block a user