update several mods and add a few

updated: blox, bobblocks, castle, homedecor, coloredwood, ilights, stainedglass, unifiedbricks
added:  cheapie's rgblightstone, digistuff, unifiedmesecons, and solidcolor
This commit is contained in:
Vanessa Ezekowitz
2017-02-16 17:05:50 -05:00
parent c66f03b6fe
commit 784ba2e68c
75 changed files with 1762 additions and 91 deletions

View File

@@ -1,13 +1,7 @@
-- This file supplies glowlights
local dirs2 = { 9, 18, 7, 12 }
local S = homedecor_i18n.gettext
local function N_(x) return x end
local colors = { N_("yellow"), N_("white") }
local glowlight_nodebox = {
half = homedecor.nodebox.slab_y(1/2),
quarter = homedecor.nodebox.slab_y(1/4),
@@ -563,7 +557,7 @@ end
minetest.register_lbm({
name = "homedecor:convert_lighting",
label = "Convert homedecor glowlights, table lamps, and standing lamps to use param2 color",
run_at_every_load = true,
run_at_every_load = false,
nodenames = homedecor.old_static_nodes,
action = function(pos, node)
local name = node.name
@@ -579,7 +573,7 @@ minetest.register_lbm({
end
local lampname
if string.find(name, "standing_lamp") then
if string.find(name, "standing_lamp") then
lampname = "homedecor:standing_lamp"
elseif string.find(name, "table_lamp") then
lampname = "homedecor:table_lamp"
@@ -617,7 +611,6 @@ minetest.register_lbm({
local paletteidx, _ = unifieddyes.getpaletteidx("unifieddyes:"..color, false)
local old_node = node.name
local old_fdir
local new_node = newname
local new_fdir = 1
@@ -664,11 +657,10 @@ homedecor.old_static_desk_lamps = {
minetest.register_lbm({
name = "homedecor:convert_desk_lamps",
label = "Convert homedecor desk lamps to use param2 color",
run_at_every_load = true,
run_at_every_load = false,
nodenames = homedecor.old_static_desk_lamps,
action = function(pos, node)
local name = node.name
local newname
local color = string.sub(name, string.find(name, "_", -8) + 1)
if color == "green" then