Allow quartz to be used in circular saws

This commit is contained in:
luk3yx 2019-03-01 17:12:55 +13:00 committed by sofar
parent 1c5dca224d
commit 8c60a1f77d
1 changed files with 19 additions and 26 deletions

View File

@ -157,34 +157,27 @@ minetest.register_abm({
-- Compatibility with stairsplus -- Compatibility with stairsplus
-- --
if minetest.get_modpath("moreblocks") and settings:get_bool("ENABLE_STAIRSPLUS") then if minetest.global_exists("stairsplus") then
register_stair_slab_panel_micro("quartz", "block", "quartz:block", stairsplus:register_all("quartz", "block", "quartz:block", {
{cracky=3}, description = "Quartz Block",
{"quartz_block.png"}, tiles = {"quartz_block.png"},
"Quartz Block", groups = {cracky=3},
"block", sounds = default.node_sound_glass_defaults()
0 })
)
register_stair_slab_panel_micro("quartz", "chiseled", "quartz:chiseled", stairsplus:register_all("quartz", "chiseled", "quartz:chiseled", {
{cracky=3}, description = "Chiseled Quartz",
{"quartz_chiseled.png"}, tiles = {"quartz_chiseled.png"},
"Chiseled Quartz", groups = {cracky=3},
"chiseled", sounds = default.node_sound_glass_defaults()
0 })
)
register_stair_slab_panel_micro("quartz", "pillar", "quartz:pillar", stairsplus:register_all("quartz", "pillar", "quartz:pillar", {
{cracky=3}, description = "Quartz Pillar",
{"quartz_pillar_top.png", "quartz_pillar_top.png", "quartz_pillar_side.png"}, tiles = {"quartz_pillar_top.png", "quartz_pillar_top.png", "quartz_pillar_side.png"},
"Quartz Pillar", groups = {cracky=3},
"pillar", sounds = default.node_sound_glass_defaults()
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 end
-- --