mirror of
https://github.com/minetest-mods/quartz.git
synced 2024-11-17 15:58:16 +01:00
Allow quartz to be used in circular saws
This commit is contained in:
parent
1c5dca224d
commit
8c60a1f77d
45
init.lua
45
init.lua
@ -157,34 +157,27 @@ minetest.register_abm({
|
||||
-- Compatibility with stairsplus
|
||||
--
|
||||
|
||||
if minetest.get_modpath("moreblocks") and settings:get_bool("ENABLE_STAIRSPLUS") then
|
||||
register_stair_slab_panel_micro("quartz", "block", "quartz:block",
|
||||
{cracky=3},
|
||||
{"quartz_block.png"},
|
||||
"Quartz Block",
|
||||
"block",
|
||||
0
|
||||
)
|
||||
if minetest.global_exists("stairsplus") then
|
||||
stairsplus:register_all("quartz", "block", "quartz:block", {
|
||||
description = "Quartz Block",
|
||||
tiles = {"quartz_block.png"},
|
||||
groups = {cracky=3},
|
||||
sounds = default.node_sound_glass_defaults()
|
||||
})
|
||||
|
||||
register_stair_slab_panel_micro("quartz", "chiseled", "quartz:chiseled",
|
||||
{cracky=3},
|
||||
{"quartz_chiseled.png"},
|
||||
"Chiseled Quartz",
|
||||
"chiseled",
|
||||
0
|
||||
)
|
||||
stairsplus:register_all("quartz", "chiseled", "quartz:chiseled", {
|
||||
description = "Chiseled Quartz",
|
||||
tiles = {"quartz_chiseled.png"},
|
||||
groups = {cracky=3},
|
||||
sounds = default.node_sound_glass_defaults()
|
||||
})
|
||||
|
||||
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")
|
||||
stairsplus:register_all("quartz", "pillar", "quartz:pillar", {
|
||||
description = "Quartz Pillar",
|
||||
tiles = {"quartz_pillar_top.png", "quartz_pillar_top.png", "quartz_pillar_side.png"},
|
||||
groups = {cracky=3},
|
||||
sounds = default.node_sound_glass_defaults()
|
||||
})
|
||||
end
|
||||
|
||||
--
|
||||
|
Loading…
Reference in New Issue
Block a user