diff --git a/depends.txt b/depends.txt index 00ad82b..40c22ed 100644 --- a/depends.txt +++ b/depends.txt @@ -1,2 +1,3 @@ default, -stairs +stairs, +moreblocks? diff --git a/init.lua b/init.lua index a953d98..cbd4365 100644 --- a/init.lua +++ b/init.lua @@ -1,3 +1,5 @@ +dofile(minetest.get_modpath("quartz").."/settings.txt") + --Node Registration --Quartz Crystal @@ -145,3 +147,32 @@ minetest.register_node("quartz:pillar_horizontal", { sounds = default.node_sound_glass_defaults(), }) + +--Compatibility with stairsplus + +if minetest.get_modpath("moreblocks") and enable_stairsplus then + register_stair_slab_panel_micro("quartz", "block", "quartz:block", + {cracky=3}, + {"quartz_block.png"}, + "Quartz Block", + "block", + 0) + + register_stair_slab_panel_micro("quartz", "chiseled", "quartz:chiseled", + {cracky=3}, + {"quartz_chiseled.png"}, + "Chiseled Quartz", + "chiseled", + 0) + + register_stair_slab_panel_micro("quartz", "pillar", "quartz:pillar", + {cracky=3}, + {"quartz_pillar_top.png", "quartz_pillar_top.png", "quartz_pillar_side.png"}, + "Quartz Pillar", + "pillar", + 0) + + table.insert(circular_saw.known_stairs, "quartz:block") + table.insert(circular_saw.known_stairs, "quartz:chiseled") + table.insert(circular_saw.known_stairs, "quartz:pillar") +end diff --git a/settings.txt b/settings.txt new file mode 100644 index 0000000..17f9749 --- /dev/null +++ b/settings.txt @@ -0,0 +1,3 @@ +-- Set this to true to allow usage of the stairsplus mod in moreblocks + +enable_stairsplus = false