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
|
||||
worldedit
|
||||
watershed?
|
||||
moreblocks?
|
||||
|
32
nodes.lua
32
nodes.lua
@ -6,15 +6,29 @@ minetest.register_node("lavatemple:brick", {
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
stairs.register_stair_and_slab(
|
||||
"lavatemple_brick",
|
||||
"lavatemple:brick",
|
||||
{dark=1},
|
||||
{"lavatemple_brick.png"},
|
||||
"Darkbrick Stair",
|
||||
"Darkbrick Slab",
|
||||
default.node_sound_stone_defaults()
|
||||
)
|
||||
if minetest.get_modpath("moreblocks") then
|
||||
local nodename = "lavatemple:brick"
|
||||
local ndef = table.copy(minetest.registered_nodes[nodename])
|
||||
ndef.sunlight_propagates = true
|
||||
ndef.place_param2 = nil
|
||||
|
||||
stairsplus:register_all(
|
||||
"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", {
|
||||
description = "Darkbrick Ladder",
|
||||
|
Loading…
Reference in New Issue
Block a user