1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2025-07-01 06:10:25 +02:00

completely rewrote all doors code to condense them

into two files - one with the nodebox models, and one with the
actual node definitions.

In the process, cleaned up the code that handles node_ownership
and protection mods.

Also made the mod automatically enable either left-click or right-click to
open/close a door, depending on whether the game supports it (actually it
checks for the existance of an unrelated function that happened to be added at
the same time as the new right-click function).

Renamed some textures, duplicated all of the _lr.png textures to make it
easier to register the textures in a loop and to allow for more flexible
texturing.
This commit is contained in:
Vanessa Ezekowitz
2013-01-23 05:45:42 -05:00
parent 942841ea67
commit 94af6653fd
25 changed files with 598 additions and 2066 deletions

View File

@ -11,25 +11,6 @@
-- License: LGPL
--
dofile(minetest.get_modpath("homedecor").."/door_wood_plain.lua")
dofile(minetest.get_modpath("homedecor").."/door_glass.lua")
dofile(minetest.get_modpath("homedecor").."/door_glass_and_wood.lua")
dofile(minetest.get_modpath("homedecor").."/door_glass_and_wood_mahogany.lua")
dofile(minetest.get_modpath("homedecor").."/door_glass_and_wood_white.lua")
dofile(minetest.get_modpath("homedecor").."/door_exterior_fancy.lua")
dofile(minetest.get_modpath("homedecor").."/door_closet_oak.lua")
dofile(minetest.get_modpath("homedecor").."/door_closet_mahogany.lua")
dofile(minetest.get_modpath("homedecor").."/lighting.lua")
dofile(minetest.get_modpath("homedecor").."/fences.lua")
dofile(minetest.get_modpath("homedecor").."/kitchen_cabinet.lua")
dofile(minetest.get_modpath("homedecor").."/refrigerator.lua")
dofile(minetest.get_modpath("homedecor").."/oven.lua")
dofile(minetest.get_modpath("homedecor").."/nightstands.lua")
dofile(minetest.get_modpath("homedecor").."/television.lua")
dofile(minetest.get_modpath("homedecor").."/crafts.lua")
local DEBUG = 0
-- Local Functions
@ -809,4 +790,17 @@ minetest.register_node("homedecor:curtain_"..color, {
end
dofile(minetest.get_modpath("homedecor").."/door_models.lua")
dofile(minetest.get_modpath("homedecor").."/door_nodes.lua")
dofile(minetest.get_modpath("homedecor").."/lighting.lua")
dofile(minetest.get_modpath("homedecor").."/fences.lua")
dofile(minetest.get_modpath("homedecor").."/kitchen_cabinet.lua")
dofile(minetest.get_modpath("homedecor").."/refrigerator.lua")
dofile(minetest.get_modpath("homedecor").."/oven.lua")
dofile(minetest.get_modpath("homedecor").."/nightstands.lua")
dofile(minetest.get_modpath("homedecor").."/television.lua")
dofile(minetest.get_modpath("homedecor").."/crafts.lua")
print("[HomeDecor] Loaded!")