1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-11-17 07:40:32 +01:00

Building Blocks Add Alias for bbstairs

This commit is contained in:
Jat15 2017-09-26 16:48:20 +02:00
parent 6c9da755f3
commit 095e34ad7f

View File

@ -4,6 +4,8 @@ local function building_blocks_stairs(nodename, def)
minetest.register_node(nodename, def)
if minetest.get_modpath("moreblocks") or minetest.get_modpath("stairs") then
local mod, name = nodename:match("(.*):(.*)")
minetest.register_alias(mod .. ":slab_" .. name, "stairs:slab_" .. name)
minetest.register_alias(mod .. ":stair_" .. name, "stairs:stair_" .. name)
for groupname,value in pairs(def.groups) do
if groupname ~= "cracky" and
groupname ~= "choppy" and
@ -39,6 +41,13 @@ local function building_blocks_stairs(nodename, def)
end
end
if minetest.get_modpath("moreblocks") or minetest.get_modpath("stairs") then
minetest.register_alias("building_blocks:slab_Adobe", "stairs:slab_adobe")
minetest.register_alias("building_blocks:stair_Adobe", "stairs:stair_adobe")
minetest.register_alias("building_blocks:slab_Roofing", "stairs:slab_roofing")
minetest.register_alias("building_blocks:stair_Roofing", "stairs:stair_roofing")
end
building_blocks_stairs("building_blocks:adobe", {
tiles = {"building_blocks_Adobe.png"},
description = S("Adobe"),