forked from minetest-mods/quartz
Added support for stairsplus
This commit is contained in:
31
init.lua
31
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
|
||||
|
Reference in New Issue
Block a user