diff options
-rw-r--r-- | aliases.lua | 68 | ||||
-rw-r--r-- | depends.txt | 11 | ||||
-rw-r--r-- | stairsplus/registrations.lua | 6 |
3 files changed, 80 insertions, 5 deletions
diff --git a/aliases.lua b/aliases.lua index b9b2106..b5af080 100644 --- a/aliases.lua +++ b/aliases.lua @@ -77,3 +77,71 @@ minetest.register_abm({ }) end, }) + + + + + + +local stairs_list = +{ +"acacia_wood", +"aspen_wood", +"brick", +"bronzeblock", +"clay", +"cobble", +"copperblock", +"desert_cobble", +"desert_sandstone", +"desert_sandstone_block", +"desert_sandstone_brick", +"desert_stone", +"desert_stone_block", +"desert_stonebrick", +"feldweg", +"goldblock", +"ice", +"junglewood", +"loam", +"obsidian", +"obsidian_block", +"obsidianbrick", +"pine_wood", +"sandstone", +"sandstone_block", +"sandstonebrick", +"silver_sandstone", +"silver_sandstone_block", +"silver_sandstone_brick", +"snowblock", +"steelblock", +"stone", +"stone_block", +"stonebrick", +"straw", +"wood", +} + +for i = 1, #stairs_list do + local n = "default:"..stairs_list[i] + local n1 = "stairs:slab_"..stairs_list[i] + local n2 = "stairs:stair_"..stairs_list[i] + + minetest.log("action", "[moreblocks] "..n.." "..n1.." "..n2) + + minetest.register_craft({ + output = n, + type = "shapeless", + recipe = {n1,n1}, + }) + + minetest.register_craft({ + output = n.." 3", + type = "shapeless", + recipe = {n2,n2,n2,n2}, + }) + +end + + diff --git a/depends.txt b/depends.txt index 380e312..7156efe 100644 --- a/depends.txt +++ b/depends.txt @@ -1,5 +1,6 @@ -default
-intllib?
-farming?
-wool?
-ehlphabet?
+default +intllib? +farming? +wool? +ehlphabet? +maple? diff --git a/stairsplus/registrations.lua b/stairsplus/registrations.lua index 5e07de4..238a4a9 100644 --- a/stairsplus/registrations.lua +++ b/stairsplus/registrations.lua @@ -55,6 +55,12 @@ if minetest.get_modpath("ehlphabet") then table.insert(default_nodes,"ehlphabet:block") end +if minetest.get_modpath("maple") then + table.insert(default_nodes,"maple:maple_tree") + table.insert(default_nodes,"maple:maple_wood") +end + + for _, name in pairs(default_nodes) do local nodename = "default:"..name |