forked from minetest-mods/quartz
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
3b520ff47a
76
init.lua
76
init.lua
@ -69,6 +69,22 @@ minetest.register_node("quartz:pillar", {
|
|||||||
on_place = minetest.rotate_node
|
on_place = minetest.rotate_node
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- Stairs & Slabs
|
||||||
|
stairs.register_stair_and_slab("quartzblock", "quartz:block",
|
||||||
|
{cracky=3, oddly_breakable_by_hand=1},
|
||||||
|
{"quartz_block.png"},
|
||||||
|
S("Quartz stair"),
|
||||||
|
S("Quartz slab"),
|
||||||
|
default.node_sound_glass_defaults())
|
||||||
|
|
||||||
|
stairs.register_stair_and_slab("quartzstair", "quartz:pillar",
|
||||||
|
{cracky=3, oddly_breakable_by_hand=1},
|
||||||
|
{"quartz_pillar_top.png", "quartz_pillar_top.png",
|
||||||
|
"quartz_pillar_side.png"},
|
||||||
|
S("Quartz Pillar stair"),
|
||||||
|
S("Quartz Pillar slab"),
|
||||||
|
default.node_sound_glass_defaults())
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Crafting
|
-- Crafting
|
||||||
--
|
--
|
||||||
@ -134,46 +150,36 @@ minetest.register_abm({
|
|||||||
--
|
--
|
||||||
|
|
||||||
if minetest.global_exists("stairsplus") then
|
if minetest.global_exists("stairsplus") then
|
||||||
local nodename = "quartz:block"
|
stairsplus:register_all("quartz", "block", "quartz:block", {
|
||||||
local ndef = table.copy(minetest.registered_nodes[nodename])
|
description = "Quartz Block",
|
||||||
ndef.sunlight_propagates = true
|
tiles = {"quartz_block.png"},
|
||||||
ndef.place_param2 = nil
|
groups = {cracky=3, oddly_breakable_by_hand=1},
|
||||||
stairsplus:register_all("quartz", "block", nodename, ndef)
|
sounds = default.node_sound_glass_defaults()
|
||||||
|
})
|
||||||
|
|
||||||
nodename = "quartz:chiseled"
|
stairsplus:register_all("quartz", "chiseled", "quartz:chiseled", {
|
||||||
ndef = table.copy(minetest.registered_nodes[nodename])
|
description = "Chiseled Quartz",
|
||||||
ndef.sunlight_propagates = true
|
tiles = {"quartz_chiseled.png"},
|
||||||
ndef.place_param2 = nil
|
groups = {cracky=3, oddly_breakable_by_hand=1},
|
||||||
stairsplus:register_all("quartz", "chiseled", nodename, ndef)
|
sounds = default.node_sound_glass_defaults()
|
||||||
|
})
|
||||||
|
|
||||||
nodename = "quartz:pillar"
|
stairsplus:register_all("quartz", "pillar", "quartz:pillar", {
|
||||||
ndef = table.copy(minetest.registered_nodes[nodename])
|
description = "Quartz Pillar",
|
||||||
ndef.sunlight_propagates = true
|
tiles = {"quartz_pillar_top.png", "quartz_pillar_top.png",
|
||||||
ndef.place_param2 = nil
|
|
||||||
stairsplus:register_all("quartz", "pillar", nodename, ndef)
|
|
||||||
|
|
||||||
minetest.register_alias("stairs:stair_quartzblock", "quartz:stair_block")
|
|
||||||
minetest.register_alias("stairs:slab_quartzblock", "quartz:slab_block")
|
|
||||||
minetest.register_alias("stairs:stair_quartzstair", "quartz:stair_pillar")
|
|
||||||
minetest.register_alias("stairs:slab_quartzstair", "quartz:slab_pillar")
|
|
||||||
else
|
|
||||||
-- Stairs & Slabs
|
|
||||||
stairs.register_stair_and_slab("quartzblock", "quartz:block",
|
|
||||||
{cracky=3, oddly_breakable_by_hand=1},
|
|
||||||
{"quartz_block.png"},
|
|
||||||
S("Quartz stair"),
|
|
||||||
S("Quartz slab"),
|
|
||||||
default.node_sound_glass_defaults())
|
|
||||||
|
|
||||||
stairs.register_stair_and_slab("quartzstair", "quartz:pillar",
|
|
||||||
{cracky=3, oddly_breakable_by_hand=1},
|
|
||||||
{"quartz_pillar_top.png", "quartz_pillar_top.png",
|
|
||||||
"quartz_pillar_side.png"},
|
"quartz_pillar_side.png"},
|
||||||
S("Quartz Pillar stair"),
|
groups = {cracky=3, oddly_breakable_by_hand=1},
|
||||||
S("Quartz Pillar slab"),
|
sounds = default.node_sound_glass_defaults()
|
||||||
default.node_sound_glass_defaults())
|
})
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- NALC aliases
|
||||||
|
minetest.register_alias("stairs:stair_quartzblock", "quartz:stair_block")
|
||||||
|
minetest.register_alias("stairs:slab_quartzblock", "quartz:slab_block")
|
||||||
|
minetest.register_alias("stairs:stair_quartzstair", "quartz:stair_pillar")
|
||||||
|
minetest.register_alias("stairs:slab_quartzstair", "quartz:slab_pillar")
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Deprecated
|
-- Deprecated
|
||||||
--
|
--
|
||||||
|
Loading…
Reference in New Issue
Block a user