mirror of
https://github.com/minetest-mods/quartz.git
synced 2025-01-06 16:00:24 +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
|
-- 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
|
||||||
|
|
||||||
--
|
--
|
||||||
|
Loading…
Reference in New Issue
Block a user