forked from mff/lavatemple
Ajoute le support de moreblocks (en option)
This commit is contained in:
parent
b63f1fb822
commit
ba062094c5
@ -3,3 +3,4 @@ stairs
|
|||||||
mobs
|
mobs
|
||||||
worldedit
|
worldedit
|
||||||
watershed?
|
watershed?
|
||||||
|
moreblocks?
|
||||||
|
32
nodes.lua
32
nodes.lua
@ -6,15 +6,29 @@ minetest.register_node("lavatemple:brick", {
|
|||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
stairs.register_stair_and_slab(
|
if minetest.get_modpath("moreblocks") then
|
||||||
"lavatemple_brick",
|
local nodename = "lavatemple:brick"
|
||||||
"lavatemple:brick",
|
local ndef = table.copy(minetest.registered_nodes[nodename])
|
||||||
{dark=1},
|
ndef.sunlight_propagates = true
|
||||||
{"lavatemple_brick.png"},
|
ndef.place_param2 = nil
|
||||||
"Darkbrick Stair",
|
|
||||||
"Darkbrick Slab",
|
stairsplus:register_all(
|
||||||
default.node_sound_stone_defaults()
|
"lavatemple",
|
||||||
)
|
"brick",
|
||||||
|
nodename,
|
||||||
|
ndef
|
||||||
|
)
|
||||||
|
else
|
||||||
|
stairs.register_stair_and_slab(
|
||||||
|
"lavatemple_brick",
|
||||||
|
"lavatemple:brick",
|
||||||
|
{dark=1},
|
||||||
|
{"lavatemple_brick.png"},
|
||||||
|
"Darkbrick Stair",
|
||||||
|
"Darkbrick Slab",
|
||||||
|
default.node_sound_stone_defaults()
|
||||||
|
)
|
||||||
|
end
|
||||||
|
|
||||||
minetest.register_node("lavatemple:ladder", {
|
minetest.register_node("lavatemple:ladder", {
|
||||||
description = "Darkbrick Ladder",
|
description = "Darkbrick Ladder",
|
||||||
|
Loading…
Reference in New Issue
Block a user