Ajoute le support de moreblocks (en option)

This commit is contained in:
sys4-fr 2018-12-26 20:17:09 +01:00
parent b63f1fb822
commit ba062094c5
2 changed files with 24 additions and 9 deletions

View File

@ -3,3 +3,4 @@ stairs
mobs
worldedit
watershed?
moreblocks?

View File

@ -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",