mirror of
https://github.com/minetest-mods/quartz.git
synced 2024-11-17 15:58:16 +01:00
Added support for stairsplus
This commit is contained in:
parent
08fd97f653
commit
54f9de0299
@ -1,2 +1,3 @@
|
||||
default,
|
||||
stairs
|
||||
stairs,
|
||||
moreblocks?
|
||||
|
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
|
||||
|
3
settings.txt
Normal file
3
settings.txt
Normal file
@ -0,0 +1,3 @@
|
||||
-- Set this to true to allow usage of the stairsplus mod in moreblocks
|
||||
|
||||
enable_stairsplus = false
|
Loading…
Reference in New Issue
Block a user