summaryrefslogtreecommitdiff
path: root/homedecor/init.lua
diff options
context:
space:
mode:
authorVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2019-04-24 18:59:36 -0400
committerVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2019-04-24 18:59:36 -0400
commita5eef1c5de77fa7770877802e66c3e1c53f9a0da (patch)
tree0f36e64a58e5f5bb7d95be6ae692f58f2ebfe483 /homedecor/init.lua
parentdda854cf06f90a04a03844e19c4d4ad220e38fe4 (diff)
downloaddreambuilder_modpack-a5eef1c5de77fa7770877802e66c3e1c53f9a0da.tar
dreambuilder_modpack-a5eef1c5de77fa7770877802e66c3e1c53f9a0da.tar.gz
dreambuilder_modpack-a5eef1c5de77fa7770877802e66c3e1c53f9a0da.tar.bz2
dreambuilder_modpack-a5eef1c5de77fa7770877802e66c3e1c53f9a0da.tar.xz
dreambuilder_modpack-a5eef1c5de77fa7770877802e66c3e1c53f9a0da.zip
update castles, areas, homedecor, plantlife,
gloopblocks, hotbar, inspector, maptools, mesecons, moreblocks, moreores, technic, teleport_request, and worldedit switched to caverealms_lite (with minor fixes by me) switched to CWz's fork of player_textures The homedecor update brings in the big split, and will require you to re-enable all modpack components in order to avoid loss of content.
Diffstat (limited to 'homedecor/init.lua')
-rw-r--r--homedecor/init.lua124
1 files changed, 0 insertions, 124 deletions
diff --git a/homedecor/init.lua b/homedecor/init.lua
deleted file mode 100644
index 1b54359..0000000
--- a/homedecor/init.lua
+++ /dev/null
@@ -1,124 +0,0 @@
--- Home Decor mod by VanessaE
---
--- Mostly my own code, with bits and pieces lifted from Minetest's default
--- lua files and from ironzorg's flowers mod. Many thanks to GloopMaster
--- for helping me figure out the inventories used in the nightstands/dressers.
---
--- The code for ovens, nightstands, refrigerators are basically modified
--- copies of the code for chests and furnaces.
-
-local modpath = minetest.get_modpath("homedecor")
-
-local S = homedecor_i18n.gettext
-
-homedecor = {}
-homedecor.modpath = modpath
-
--- Determine if the item being pointed at is the underside of a node (e.g a ceiling)
-function homedecor.find_ceiling(itemstack, placer, pointed_thing)
- -- most of this is copied from the rotate-and-place function in builtin
- local unode = core.get_node_or_nil(pointed_thing.under)
- if not unode then
- return
- end
- local undef = core.registered_nodes[unode.name]
- if undef and undef.on_rightclick then
- undef.on_rightclick(pointed_thing.under, unode, placer,
- itemstack, pointed_thing)
- return
- end
-
- local above = pointed_thing.above
- local under = pointed_thing.under
- local iswall = (above.y == under.y)
- local isceiling = not iswall and (above.y < under.y)
- local anode = core.get_node_or_nil(above)
- if not anode then
- return
- end
- local pos = pointed_thing.above
- local node = anode
-
- if undef and undef.buildable_to then
- pos = pointed_thing.under
- node = unode
- end
-
- if core.is_protected(pos, placer:get_player_name()) then
- core.record_protection_violation(pos,
- placer:get_player_name())
- return
- end
-
- local ndef = core.registered_nodes[node.name]
- if not ndef or not ndef.buildable_to then
- return
- end
- return isceiling, pos
-end
-
-screwdriver = screwdriver or {}
-
-homedecor.plain_wood = { name = "homedecor_generic_wood_plain.png", color = 0xffa76820 }
-homedecor.mahogany_wood = { name = "homedecor_generic_wood_plain.png", color = 0xff7d2506 }
-homedecor.white_wood = "homedecor_generic_wood_plain.png"
-homedecor.dark_wood = { name = "homedecor_generic_wood_plain.png", color = 0xff39240f }
-homedecor.lux_wood = { name = "homedecor_generic_wood_luxury.png", color = 0xff643f23 }
-
-homedecor.color_black = 0xff303030
-homedecor.color_dark_grey = 0xff606060
-homedecor.color_med_grey = 0xffa0a0a0
-
--- load different handler subsystems
-dofile(modpath.."/handlers/init.lua")
-
--- load various other components
-dofile(modpath.."/misc-nodes.lua") -- the catch-all for all misc nodes
-dofile(modpath.."/tables.lua")
-dofile(modpath.."/electronics.lua")
-dofile(modpath.."/shutters.lua")
-
-dofile(modpath.."/roofing.lua")
-
-dofile(modpath.."/foyer.lua")
-
-dofile(modpath.."/doors_and_gates.lua")
-
-dofile(modpath.."/fences.lua")
-
-dofile(modpath.."/lighting.lua")
-
-dofile(modpath.."/kitchen_appliances.lua")
-dofile(modpath.."/kitchen_furniture.lua")
-dofile(modpath.."/gastronomy.lua")
-
-dofile(modpath.."/bathroom_furniture.lua")
-dofile(modpath.."/bathroom_sanitation.lua")
-
-dofile(modpath.."/bedroom.lua")
-
-dofile(modpath.."/laundry.lua")
-
-dofile(modpath.."/office.lua")
-
-dofile(modpath.."/clocks.lua")
-dofile(modpath.."/electrics.lua")
-
-dofile(modpath.."/window_treatments.lua")
-
-dofile(modpath.."/furniture.lua")
-dofile(modpath.."/furniture_medieval.lua")
-dofile(modpath.."/furniture_recipes.lua")
-dofile(modpath.."/climate-control.lua")
-
-dofile(modpath.."/cobweb.lua")
-dofile(modpath.."/books.lua")
-dofile(modpath.."/exterior.lua")
-dofile(modpath.."/trash_cans.lua")
-dofile(modpath.."/wardrobe.lua")
-
-dofile(modpath.."/crafts.lua")
-
-if minetest.settings:get_bool("log_mod") then
- minetest.log("action", "[HomeDecor] " .. S("Loaded!"))
-end