Added support for stairsplus

This commit is contained in:
4Evergreen4 2013-11-16 17:11:09 -05:00
parent 08fd97f653
commit 54f9de0299
3 changed files with 36 additions and 1 deletions

View File

@ -1,2 +1,3 @@
default,
stairs
stairs,
moreblocks?

View File

@ -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

3
settings.txt Normal file
View File

@ -0,0 +1,3 @@
-- Set this to true to allow usage of the stairsplus mod in moreblocks
enable_stairsplus = false