Compare commits

..

No commits in common. "master" and "master" have entirely different histories.

4 changed files with 190 additions and 208 deletions

3
depends.txt Executable file
View File

@ -0,0 +1,3 @@
default
stairs
wool

View File

@ -55,5 +55,3 @@ minetest.register_tool("multitest:scraper", {
}
}
})
minetest.log("action", "[multitest] loaded.")

View File

@ -1,5 +0,0 @@
name = multitest
title = Multitest
description = Adds various nodes
depends = default,stairs,wool
optional_depends = moreblocks

View File

@ -70,7 +70,6 @@ minetest.register_node("multitest:lamp", {
sounds = default.node_sound_glass_defaults(),
})
]]
minetest.register_alias("multitest:lamp", "lantern:lantern")
minetest.register_node("multitest:andesite", {
@ -122,43 +121,30 @@ minetest.register_node("multitest:sandstone_carved", {
sounds = default.node_sound_sand_defaults(),
})
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",
-- 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