diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-01-31 19:39:31 -0500 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-01-31 19:39:31 -0500 |
commit | 39f5cba27eef35877c91291f518974f34130fcb6 (patch) | |
tree | 117a9d1b7d4ee5f78f73e1216e982c366ed9ecc6 /lrfurn/init.lua | |
parent | 2922421f4a88e56a0a1c819f62bf2bc287835388 (diff) | |
download | dreambuilder_modpack-39f5cba27eef35877c91291f518974f34130fcb6.tar dreambuilder_modpack-39f5cba27eef35877c91291f518974f34130fcb6.tar.gz dreambuilder_modpack-39f5cba27eef35877c91291f518974f34130fcb6.tar.bz2 dreambuilder_modpack-39f5cba27eef35877c91291f518974f34130fcb6.tar.xz dreambuilder_modpack-39f5cba27eef35877c91291f518974f34130fcb6.zip |
Huge update - lots of mods:
areas, biome_lib, blox, bobblocks, boost_cart, homedecor, mobs,
coloredwood, ilights, inbox, item_tweaks, moreblocks, moreores,
pipeworks, plasticbox, signs_lib, stainedglass, roads, unifieddyes,
vines, worldedit, xban2, maybe some others I didn't think about ;-)
Diffstat (limited to 'lrfurn/init.lua')
-rw-r--r-- | lrfurn/init.lua | 44 |
1 files changed, 28 insertions, 16 deletions
diff --git a/lrfurn/init.lua b/lrfurn/init.lua index 64e2ab9..6434136 100644 --- a/lrfurn/init.lua +++ b/lrfurn/init.lua @@ -1,3 +1,6 @@ + +local S = homedecor_i18n.gettext + lrfurn = {} screwdriver = screwdriver or {} @@ -8,22 +11,22 @@ lrfurn.fdir_to_fwd = { { -1, 0 }, } -lrfurn.colors = { -- mod changed to use colorize feature of minetest engine (cg72) - { "black", "#000000:230" }, - { "brown", "#251005:225" }, - { "blue", "#0000d0:225" }, - { "cyan", "#009fa7:250" }, - { "dark_grey", "#101010:175" }, - { "dark_green", "#007000:230" }, - { "green", "#00d000:250" }, - { "grey", "#101010:100" }, - { "magenta", "#e0048b:250" }, - { "orange", "#ee9000:240" }, - { "pink", "#ff90b0:250" }, - { "red", "#800000:240" }, - { "violet", "#9000d0:250" }, - { "white", "#000000:000" }, - { "yellow", "#dde000:240" } +lrfurn.colors = { + "black", + "brown", + "blue", + "cyan", + "dark_grey", + "dark_green", + "green", + "grey", + "magenta", + "orange", + "pink", + "red", + "violet", + "white", + "yellow", } function lrfurn.check_forward(pos, fdir, long, placer) @@ -57,6 +60,15 @@ function lrfurn.check_forward(pos, fdir, long, placer) return true end +function lrfurn.fix_rotation(pos, placer, itemstack, pointed_thing) + local node = minetest.get_node(pos) + local yaw = placer:get_look_yaw() + local dir = minetest.yaw_to_dir(yaw) + local fdir = minetest.dir_to_wallmounted(dir) + + minetest.swap_node(pos, { name = node.name, param2 = fdir }) +end + dofile(minetest.get_modpath("lrfurn").."/longsofas.lua") dofile(minetest.get_modpath("lrfurn").."/sofas.lua") dofile(minetest.get_modpath("lrfurn").."/armchairs.lua") |