-
Notifications
You must be signed in to change notification settings - Fork 2
/
moredoor.lua
55 lines (40 loc) · 3.23 KB
/
moredoor.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
-- LUALOCALS < ---------------------------------------------------------
local ItemStack, minetest, nodecore, pairs, vector
= ItemStack, minetest, nodecore, pairs, vector
-- LUALOCALS > ---------------------------------------------------------
local modname = minetest.get_current_modname()
-- ================================================================== --
-- <> One Does Not Simply Walk Into Moredoor <> --
-- ================================================================== --
nodecore.register_door(modname, "cornplank", "Popped", "nc_woodwork:staff", 1)
nodecore.register_door(modname, "plank_stained", "Stained Wood", "nc_woodwork:staff", 1)
nodecore.register_door("nc_flora", "thatch", "Rattan", "nc_woodwork:staff", 1)
--nodecore.register_door("nc_flora", "wicker", "Wicker", "nc_woodwork:staff", 1)
--nodecore.register_door("nc_optics", "glass", "Glass", "nc_lode:rod_tempered", 3)
--nodecore.register_door("nc_optics", "glass_float", "Clear", "nc_lode:rod_tempered", 3)
nodecore.register_door("nc_optics", "glass_opaque", "Chromatic", "nc_lode:rod_tempered", 3)
nodecore.register_door("nc_lode", "block_annealed", "Lode", "nc_lode:rod_tempered", 5)
-- ================================================================== --
-- <> One Does Not Simply Walk Into Moredoor <> --
-- ================================================================== --
-- I see what the problem with adding allfaces and allfaces_optional doortypes is now.
-- Even the overrides with alpha blending seem broken due to MT rendering issues.
--minetest.override_item(modname.. ":panel_wicker",{drawtype = "normal", use_texture_alpha = true,})
--minetest.override_item(modname.. ":door_wicker",{drawtype = "normal", use_texture_alpha = true,})
--minetest.override_item(modname.. ":panel_glass",{drawtype = "normal", use_texture_alpha = true,})
--minetest.override_item(modname.. ":door_glass",{drawtype = "normal", use_texture_alpha = true,})
--minetest.override_item(modname.. ":panel_glass_float",{drawtype = "normal", use_texture_alpha = true,})
--minetest.override_item(modname.. ":door_glass_float",{drawtype = "normal", use_texture_alpha = true,})
-- ================================================================== --
-- <> One Does Not Simply Walk Into Moredoor <> -- Never gets old --
-- ================================================================== --
minetest.register_alias(modname.. ":panel_cornplank", "nc_doors:panel_cornplank")
minetest.register_alias(modname.. ":door_cornplank", "nc_doors:door_cornplank")
minetest.register_alias(modname.. ":panel_thatch", "nc_doors:panel_thatch")
minetest.register_alias(modname.. ":door_thatch", "nc_doors:door_thatch")
minetest.register_alias(modname.. ":panel_glass_opaque", "nc_doors:panel_glass_opaque")
minetest.register_alias(modname.. ":door_glass_opaque", "nc_doors:door_glass_opaque")
minetest.register_alias(modname.. ":panel_block_annealed", "nc_doors:panel_block_annealed")
minetest.register_alias(modname.. ":door_block_annealed", "nc_doors:door_block_annealed")
minetest.register_alias(modname .. ":panel_plank", modname .. ":panel_plank_stained")
minetest.register_alias(modname .. ":door_plank", modname .. ":door_plank_stained")