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

@ -1,4 +1,3 @@
stairsplus.dofile("compat", "stairs")
stairsplus.dofile("compat", "legacy")

View File

@ -6,7 +6,7 @@ local api = stairsplus.api
function stairsplus:register_all(modname, subname, recipeitem, fields)
api.register_all(recipeitem, fields)
local old_name = ("%s:%s"):format(modname, subname)
local old_name = ("%s:%s"):format(modname, subname)
if old_name ~= recipeitem then
api.register_alias_all(old_name, recipeitem)
end

View File

@ -4,7 +4,7 @@ More Blocks: registrations
Copyright © 2011-2020 Hugo Locurcio and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
--]]
local S = moreblocks.S
local S = stairsplus.S
-- default registrations
if minetest.get_modpath("default") then
local default_nodes = { -- Default stairs/slabs/panels/microblocks:
@ -120,7 +120,7 @@ if minetest.get_modpath("basic_materials") then
description = S("Concrete"),
tiles = {"basic_materials_concrete_block.png", },
groups = {cracky = 1, level = 2, concrete = 1},
sounds = moreblocks.node_sound_stone_defaults(),
sounds = stairsplus.node_sound_stone_defaults(),
})
minetest.register_alias("prefab:concrete_stair", "technic:stair_concrete")
@ -130,7 +130,7 @@ if minetest.get_modpath("basic_materials") then
description = S("Cement"),
tiles = {"basic_materials_cement_block.png"},
groups = {cracky = 2, not_in_creative_inventory = 1},
sounds = moreblocks.node_sound_stone_defaults(),
sounds = stairsplus.node_sound_stone_defaults(),
sunlight_propagates = true,
})