Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
3a8863c32f | |||
|
ae65c9c5cb | ||
|
fea7db99b6 |
@ -1,3 +0,0 @@
|
||||
default
|
||||
stairs
|
||||
wool
|
2
init.lua
2
init.lua
@ -55,3 +55,5 @@ minetest.register_tool("multitest:scraper", {
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.log("action", "[multitest] loaded.")
|
||||
|
5
mod.conf
Normal file
5
mod.conf
Normal file
@ -0,0 +1,5 @@
|
||||
name = multitest
|
||||
title = Multitest
|
||||
description = Adds various nodes
|
||||
depends = default,stairs,wool
|
||||
optional_depends = 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