forked from mff/multitest
Compare commits
No commits in common. "master" and "master" have entirely different histories.
3
depends.txt
Executable file
3
depends.txt
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
default
|
||||||
|
stairs
|
||||||
|
wool
|
2
init.lua
2
init.lua
@ -55,5 +55,3 @@ minetest.register_tool("multitest:scraper", {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.log("action", "[multitest] loaded.")
|
|
||||||
|
5
mod.conf
5
mod.conf
@ -1,5 +0,0 @@
|
|||||||
name = multitest
|
|
||||||
title = Multitest
|
|
||||||
description = Adds various nodes
|
|
||||||
depends = default,stairs,wool
|
|
||||||
optional_depends = moreblocks
|
|
14
nodes.lua
14
nodes.lua
@ -70,7 +70,6 @@ minetest.register_node("multitest:lamp", {
|
|||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
})
|
})
|
||||||
]]
|
]]
|
||||||
|
|
||||||
minetest.register_alias("multitest:lamp", "lantern:lantern")
|
minetest.register_alias("multitest:lamp", "lantern:lantern")
|
||||||
|
|
||||||
minetest.register_node("multitest:andesite", {
|
minetest.register_node("multitest:andesite", {
|
||||||
@ -122,18 +121,6 @@ minetest.register_node("multitest:sandstone_carved", {
|
|||||||
sounds = default.node_sound_sand_defaults(),
|
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:stair_blackstone
|
||||||
stairs.register_stair_and_slab("blackstone", "multitest:blackstone",
|
stairs.register_stair_and_slab("blackstone", "multitest:blackstone",
|
||||||
{cracky=3, stone=1},
|
{cracky=3, stone=1},
|
||||||
@ -158,7 +145,6 @@ else
|
|||||||
{"multitest_blackstone_paved.png"},
|
{"multitest_blackstone_paved.png"},
|
||||||
"Paved Blackstone Stairs",
|
"Paved Blackstone Stairs",
|
||||||
"Paved Blackstone Slab", nil)
|
"Paved Blackstone Slab", nil)
|
||||||
end
|
|
||||||
|
|
||||||
-- others
|
-- others
|
||||||
for i, v in ipairs(multitest.colors) do
|
for i, v in ipairs(multitest.colors) do
|
||||||
|
Loading…
Reference in New Issue
Block a user