Ajout du support stairsplus.
This commit is contained in:
parent
b93f89e793
commit
fea7db99b6
|
@ -1,3 +1,4 @@
|
|||
default
|
||||
stairs
|
||||
wool
|
||||
moreblocks?
|
||||
|
|
24
nodes.lua
24
nodes.lua
|
@ -70,6 +70,7 @@ minetest.register_node("multitest:lamp", {
|
|||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
]]
|
||||
|
||||
minetest.register_alias("multitest:lamp", "lantern:lantern")
|
||||
|
||||
minetest.register_node("multitest:andesite", {
|
||||
|
@ -121,30 +122,43 @@ minetest.register_node("multitest:sandstone_carved", {
|
|||
sounds = default.node_sound_sand_defaults(),
|
||||
})
|
||||
|
||||
-- stairs:stair_blackstone
|
||||
stairs.register_stair_and_slab("blackstone", "multitest:blackstone",
|
||||
if minetest.get_modpath("moreblocks") then
|
||||
local modname = "multitest"
|
||||
local names = {"blackstone", "blackcobble", "blackstone_brick", "blackstone_paved"}
|
||||
|
||||
for _,name in ipairs(names) do
|
||||
local nodename = modname..":"..name
|
||||
local ndef = table.copy(minetest.registered_nodes[nodename])
|
||||
ndef.sunlight_propagates = true
|
||||
ndef.place_param2 = nil
|
||||
stairsplus:register_all(modname, name, nodename, ndef)
|
||||
end
|
||||
else
|
||||
-- stairs:stair_blackstone
|
||||
stairs.register_stair_and_slab("blackstone", "multitest:blackstone",
|
||||
{cracky=3, stone=1},
|
||||
{"multitest_blackstone.png"},
|
||||
"Blackstone Stairs",
|
||||
"Blackstone Slab", nil)
|
||||
|
||||
stairs.register_stair_and_slab("blackcobble", "multitest:blackcobble",
|
||||
stairs.register_stair_and_slab("blackcobble", "multitest:blackcobble",
|
||||
{cracky=3, stone=1},
|
||||
{"multitest_blackcobble.png"},
|
||||
"Black Cobble Stairs",
|
||||
"Black Cobble Slab", nil)
|
||||
|
||||
stairs.register_stair_and_slab("blackstone_bricks", "multitest:blackstone_brick",
|
||||
stairs.register_stair_and_slab("blackstone_bricks", "multitest:blackstone_brick",
|
||||
{cracky=3, stone=1},
|
||||
{"multitest_blackstone_brick.png"},
|
||||
"Blackstonestone brick Stairs",
|
||||
"Blackstone Brick Slab", nil)
|
||||
|
||||
stairs.register_stair_and_slab("blackstone_paved", "multitest:blackstone_paved",
|
||||
stairs.register_stair_and_slab("blackstone_paved", "multitest:blackstone_paved",
|
||||
{cracky=3, stone=1},
|
||||
{"multitest_blackstone_paved.png"},
|
||||
"Paved Blackstone Stairs",
|
||||
"Paved Blackstone Slab", nil)
|
||||
end
|
||||
|
||||
-- others
|
||||
for i, v in ipairs(multitest.colors) do
|
||||
|
|
Loading…
Reference in New Issue
Block a user