-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmoreblocks code.txt
More file actions
17 lines (15 loc) · 924 Bytes
/
moreblocks code.txt
File metadata and controls
17 lines (15 loc) · 924 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
-- if you ned stairs or similar blocks add this to moreblocks mod
-- basic_trees registrations
if minetest.get_modpath("basic_trees") then
local real_trees_nodes = {"oak_trunk", "birch_trunk", "willow_trunk", "maple_trunk", "cedar_trunk", "sequoia_trunk", "oak_planks", "birch_planks", "willow_planks", "maple_planks", "cedar_planks", "sequoia_planks", "eucalyptus_trunk", "cypress_trunk", "eucalyptus_planks", "cypress_planks"}
for _, name in pairs(real_trees_nodes) do
local mod = "basic_trees"
local nodename = mod .. ":" .. name
local ndef = table.copy(minetest.registered_nodes[nodename])
ndef.sunlight_propagates = true
mod = "moreblocks"
stairsplus:register_all(mod, name, nodename, ndef)
minetest.register_alias_force("stairs:stair_" .. name, mod .. ":stair_" .. name)
minetest.register_alias_force("stairs:slab_" .. name, mod .. ":slab_" .. name)
end
end