From 37d9d94c44cbadc7e6550efc22612c7c605a9040 Mon Sep 17 00:00:00 2001 From: kpoppel Date: Wed, 19 Jun 2013 00:24:37 +0200 Subject: [PATCH] Added case study of radiated power through inductive coils. --- technic/init.lua | 4 + technic/lighting.lua | 594 ++++++++++++++++++ technic/power_radiator.lua | 308 +++++++++ ...c_homedecor_glowlight_cube_white_sides.png | Bin 0 -> 255 bytes ...cor_glowlight_cube_white_sides_ceiling.png | Bin 0 -> 258 bytes ...hnic_homedecor_glowlight_cube_white_tb.png | Bin 0 -> 261 bytes ..._homedecor_glowlight_cube_yellow_sides.png | Bin 0 -> 350 bytes ...or_glowlight_cube_yellow_sides_ceiling.png | Bin 0 -> 353 bytes ...nic_homedecor_glowlight_cube_yellow_tb.png | Bin 0 -> 352 bytes ..._homedecor_glowlight_thick_white_sides.png | Bin 0 -> 264 bytes ...decor_glowlight_thick_white_wall_sides.png | Bin 0 -> 265 bytes ...homedecor_glowlight_thick_yellow_sides.png | Bin 0 -> 475 bytes ...ecor_glowlight_thick_yellow_wall_sides.png | Bin 0 -> 478 bytes ...c_homedecor_glowlight_thin_white_sides.png | Bin 0 -> 225 bytes ...edecor_glowlight_thin_white_wall_sides.png | Bin 0 -> 232 bytes ..._homedecor_glowlight_thin_yellow_sides.png | Bin 0 -> 335 bytes ...decor_glowlight_thin_yellow_wall_sides.png | Bin 0 -> 355 bytes .../technic_homedecor_glowlight_white_tb.png | Bin 0 -> 330 bytes .../technic_homedecor_glowlight_yellow_tb.png | Bin 0 -> 633 bytes 19 files changed, 906 insertions(+) create mode 100644 technic/lighting.lua create mode 100644 technic/power_radiator.lua create mode 100644 technic/textures/technic_homedecor_glowlight_cube_white_sides.png create mode 100644 technic/textures/technic_homedecor_glowlight_cube_white_sides_ceiling.png create mode 100644 technic/textures/technic_homedecor_glowlight_cube_white_tb.png create mode 100644 technic/textures/technic_homedecor_glowlight_cube_yellow_sides.png create mode 100644 technic/textures/technic_homedecor_glowlight_cube_yellow_sides_ceiling.png create mode 100644 technic/textures/technic_homedecor_glowlight_cube_yellow_tb.png create mode 100644 technic/textures/technic_homedecor_glowlight_thick_white_sides.png create mode 100644 technic/textures/technic_homedecor_glowlight_thick_white_wall_sides.png create mode 100644 technic/textures/technic_homedecor_glowlight_thick_yellow_sides.png create mode 100644 technic/textures/technic_homedecor_glowlight_thick_yellow_wall_sides.png create mode 100644 technic/textures/technic_homedecor_glowlight_thin_white_sides.png create mode 100644 technic/textures/technic_homedecor_glowlight_thin_white_wall_sides.png create mode 100644 technic/textures/technic_homedecor_glowlight_thin_yellow_sides.png create mode 100644 technic/textures/technic_homedecor_glowlight_thin_yellow_wall_sides.png create mode 100644 technic/textures/technic_homedecor_glowlight_white_tb.png create mode 100644 technic/textures/technic_homedecor_glowlight_yellow_tb.png diff --git a/technic/init.lua b/technic/init.lua index 2248295..6dd7eac 100644 --- a/technic/init.lua +++ b/technic/init.lua @@ -40,6 +40,10 @@ dofile(modpath.."/down_converter_mv.lua") dofile(modpath.."/electric_furnace_mv.lua") dofile(modpath.."/alloy_furnace_mv.lua") dofile(modpath.."/forcefield.lua") +-- These two are a concept study: Supplying appliances with inductive coupled power: +-- lighting and associated textures is taken directly from VanessaE's homedecor and made electric. +dofile(modpath.."/power_radiator.lua") +dofile(modpath.."/lighting.lua") --HV machines dofile(modpath.."/wires_hv.lua") diff --git a/technic/lighting.lua b/technic/lighting.lua new file mode 100644 index 0000000..5aab4c3 --- /dev/null +++ b/technic/lighting.lua @@ -0,0 +1,594 @@ +-- NOTE: The code is takes directly from VanessaE's homedecor mod. +-- I just made it the lights into indictive appliances for this mod. + +-- This file supplies electric powered glowlights + +-- Boilerplate to support localized strings if intllib mod is installed. +local S +if (minetest.get_modpath("intllib")) then + dofile(minetest.get_modpath("intllib").."/intllib.lua") + S = intllib.Getter(minetest.get_current_modname()) +else + S = function ( s ) return s end +end + +function technic_homedecor_node_is_owned(pos, placer) + local ownername = false + if type(IsPlayerNodeOwner) == "function" then -- node_ownership mod + if HasOwner(pos, placer) then -- returns true if the node is owned + if not IsPlayerNodeOwner(pos, placer:get_player_name()) then + if type(getLastOwner) == "function" then -- ...is an old version + ownername = getLastOwner(pos) + elseif type(GetNodeOwnerName) == "function" then -- ...is a recent version + ownername = GetNodeOwnerName(pos) + else + ownername = S("someone") + end + end + end + + elseif type(isprotect)=="function" then -- glomie's protection mod + if not isprotect(5, pos, placer) then + ownername = S("someone") + end + elseif type(protector)=="table" and type(protector.can_dig)=="function" then -- Zeg9's protection mod + if not protector.can_dig(5, pos, placer) then + ownername = S("someone") + end + end + + if ownername ~= false then + minetest.chat_send_player( placer:get_player_name(), S("Sorry, %s owns that spot."):format(ownername) ) + return true + else + return false + end +end + +local dirs1 = { 20, 23, 22, 21 } +local dirs2 = { 9, 18, 7, 12 } + +function technic_homedecor_rotate_and_place(itemstack, placer, pointed_thing) + if not technic_homedecor_node_is_owned(pointed_thing.under, placer) + and not technic_homedecor_node_is_owned(pointed_thing.above, placer) then + local node = minetest.env:get_node(pointed_thing.under) + if not minetest.registered_nodes[node.name] or not minetest.registered_nodes[node.name].on_rightclick then + + local above = pointed_thing.above + local under = pointed_thing.under + local pitch = placer:get_look_pitch() + local pname = minetest.env:get_node(under).name + local node = minetest.env:get_node(above) + local fdir = minetest.dir_to_facedir(placer:get_look_dir()) + local wield_name = itemstack:get_name() + + if not minetest.registered_nodes[pname] + or not minetest.registered_nodes[pname].on_rightclick then + + local iswall = (above.x ~= under.x) or (above.z ~= under.z) + local isceiling = (above.x == under.x) and (above.z == under.z) and (pitch > 0) + local pos1 = above + + if minetest.registered_nodes[pname]["buildable_to"] then + pos1 = under + iswall = false + end + + if not minetest.registered_nodes[minetest.env:get_node(pos1).name]["buildable_to"] then return end + + if iswall then + minetest.env:add_node(pos1, {name = wield_name, param2 = dirs2[fdir+1] }) -- place wall variant + elseif isceiling then + minetest.env:add_node(pos1, {name = wield_name, param2 = 20 }) -- place upside down variant + else + minetest.env:add_node(pos1, {name = wield_name, param2 = 0 }) -- place right side up + end + + if not homedecor_expect_infinite_stacks then + itemstack:take_item() + return itemstack + end + end + else + minetest.registered_nodes[node.name].on_rightclick(pointed_thing.under, node, placer, itemstack) + end + end +end + +-- Yellow -- Half node +minetest.register_node('technic:homedecor_glowlight_half_yellow', { + description = S("Yellow Glowlight (thick)"), + drawtype = "nodebox", + tiles = { + 'technic_homedecor_glowlight_yellow_tb.png', + 'technic_homedecor_glowlight_yellow_tb.png', + 'technic_homedecor_glowlight_thick_yellow_sides.png', + 'technic_homedecor_glowlight_thick_yellow_sides.png', + 'technic_homedecor_glowlight_thick_yellow_sides.png', + 'technic_homedecor_glowlight_thick_yellow_sides.png' + }, + selection_box = { + type = "fixed", + fixed = { -0.5, -0.5, -0.5, 0.5, 0, 0.5 } + }, + node_box = { + type = "fixed", + fixed = { -0.5, -0.5, -0.5, 0.5, 0, 0.5 } + }, + + sunlight_propagates = false, + paramtype = "light", + paramtype2 = "facedir", + walkable = true, + sounds = default.node_sound_wood_defaults(), + + groups = { snappy = 3 }, + on_place = function(itemstack, placer, pointed_thing) + technic_homedecor_rotate_and_place(itemstack, placer, pointed_thing) + return itemstack + end, + on_construct = function(pos) + print("Hello") + technic_inductive_on_construct(pos, 100, "Yellow Glowlight (thick)") + print("Hello2") + end, + on_punch = function(pos, node, puncher) + print("Punch") + technic_inductive_on_punch_off(pos, 100, "technic:homedecor_glowlight_half_yellow_active") + print("Punch2") + end +}) + +minetest.register_node('technic:homedecor_glowlight_half_yellow_active', { + description = S("Yellow Glowlight (thick)"), + drawtype = "nodebox", + tiles = { + 'technic_homedecor_glowlight_yellow_tb.png', + 'technic_homedecor_glowlight_yellow_tb.png', + 'technic_homedecor_glowlight_thick_yellow_sides.png', + 'technic_homedecor_glowlight_thick_yellow_sides.png', + 'technic_homedecor_glowlight_thick_yellow_sides.png', + 'technic_homedecor_glowlight_thick_yellow_sides.png' + }, + selection_box = { + type = "fixed", + fixed = { -0.5, -0.5, -0.5, 0.5, 0, 0.5 } + }, + node_box = { + type = "fixed", + fixed = { -0.5, -0.5, -0.5, 0.5, 0, 0.5 } + }, + + sunlight_propagates = false, + paramtype = "light", + paramtype2 = "facedir", + walkable = true, + light_source = LIGHT_MAX, + sounds = default.node_sound_wood_defaults(), + + groups = { snappy = 3, not_in_creative_inventory=1}, + drop="technic:homedecor_glowlight_half_yellow", + on_place = function(itemstack, placer, pointed_thing) + technic_homedecor_rotate_and_place(itemstack, placer, pointed_thing) + return itemstack + end, + on_construct = function(pos) + technic_inductive_on_construct(pos, 100, "Yellow Glowlight (thick)") + end, + on_punch = function(pos, node, puncher) + technic_inductive_on_punch_on(pos, 0, "technic:homedecor_glowlight_half_yellow") + end +}) + +-- Yellow -- Quarter node +minetest.register_node('technic:homedecor_glowlight_quarter_yellow', { + description = S("Yellow Glowlight (thin)"), + drawtype = "nodebox", + tiles = { + 'technic_homedecor_glowlight_yellow_tb.png', + 'technic_homedecor_glowlight_yellow_tb.png', + 'technic_homedecor_glowlight_thin_yellow_sides.png', + 'technic_homedecor_glowlight_thin_yellow_sides.png', + 'technic_homedecor_glowlight_thin_yellow_sides.png', + 'technic_homedecor_glowlight_thin_yellow_sides.png' + }, + selection_box = { + type = "fixed", + fixed = { -0.5, -0.5, -0.5, 0.5, -0.25, 0.5 } + }, + node_box = { + type = "fixed", + fixed = { -0.5, -0.5, -0.5, 0.5, -0.25, 0.5 } + }, + + sunlight_propagates = false, + paramtype = "light", + paramtype2 = "facedir", + walkable = true, + sounds = default.node_sound_wood_defaults(), + + groups = { snappy = 3 }, + on_place = function(itemstack, placer, pointed_thing) + technic_homedecor_rotate_and_place(itemstack, placer, pointed_thing) + return itemstack + end, + on_construct = function(pos) + technic_inductive_on_construct(pos, 100, "Yellow Glowlight (thin)") + end, + on_punch = function(pos, node, puncher) + technic_inductive_on_punch_off(pos, 100, "technic:homedecor_glowlight_quarter_yellow_active") + end +}) + +minetest.register_node('technic:homedecor_glowlight_quarter_yellow_active', { + description = S("Yellow Glowlight (thin)"), + drawtype = "nodebox", + tiles = { + 'technic_homedecor_glowlight_yellow_tb.png', + 'technic_homedecor_glowlight_yellow_tb.png', + 'technic_homedecor_glowlight_thin_yellow_sides.png', + 'technic_homedecor_glowlight_thin_yellow_sides.png', + 'technic_homedecor_glowlight_thin_yellow_sides.png', + 'technic_homedecor_glowlight_thin_yellow_sides.png' + }, + selection_box = { + type = "fixed", + fixed = { -0.5, -0.5, -0.5, 0.5, -0.25, 0.5 } + }, + node_box = { + type = "fixed", + fixed = { -0.5, -0.5, -0.5, 0.5, -0.25, 0.5 } + }, + + sunlight_propagates = false, + paramtype = "light", + paramtype2 = "facedir", + walkable = true, + light_source = LIGHT_MAX-1, + sounds = default.node_sound_wood_defaults(), + + groups = { snappy = 3, not_in_creative_inventory=1}, + drop="technic:homedecor_glowlight_quarter_yellow", + on_place = function(itemstack, placer, pointed_thing) + technic_homedecor_rotate_and_place(itemstack, placer, pointed_thing) + return itemstack + end, + on_construct = function(pos) + technic_inductive_on_construct(pos, 100, "Yellow Glowlight (thin)") + end, + on_punch = function(pos, node, puncher) + technic_inductive_on_punch_on(pos, 0, "technic:homedecor_glowlight_quarter_yellow") + end +}) + + +-- White -- half node +minetest.register_node('technic:homedecor_glowlight_half_white', { + description = S("White Glowlight (thick)"), + drawtype = "nodebox", + tiles = { + 'technic_homedecor_glowlight_white_tb.png', + 'technic_homedecor_glowlight_white_tb.png', + 'technic_homedecor_glowlight_thick_white_sides.png', + 'technic_homedecor_glowlight_thick_white_sides.png', + 'technic_homedecor_glowlight_thick_white_sides.png', + 'technic_homedecor_glowlight_thick_white_sides.png' + }, + selection_box = { + type = "fixed", + fixed = { -0.5, -0.5, -0.5, 0.5, 0, 0.5 } + }, + node_box = { + type = "fixed", + fixed = { -0.5, -0.5, -0.5, 0.5, 0, 0.5 } + }, + + sunlight_propagates = false, + paramtype = "light", + paramtype2 = "facedir", + walkable = true, + sounds = default.node_sound_wood_defaults(), + + groups = { snappy = 3 }, + on_place = function(itemstack, placer, pointed_thing) + technic_homedecor_rotate_and_place(itemstack, placer, pointed_thing) + return itemstack + end, + on_construct = function(pos) + technic_inductive_on_construct(pos, 100, "White Glowlight (thick)") + end, + on_punch = function(pos, node, puncher) + technic_inductive_on_punch_off(pos, 100, "technic:homedecor_glowlight_half_white_active") + end +}) + +minetest.register_node('technic:homedecor_glowlight_half_white_active', { + description = S("White Glowlight (thick)"), + drawtype = "nodebox", + tiles = { + 'technic_homedecor_glowlight_white_tb.png', + 'technic_homedecor_glowlight_white_tb.png', + 'technic_homedecor_glowlight_thick_white_sides.png', + 'technic_homedecor_glowlight_thick_white_sides.png', + 'technic_homedecor_glowlight_thick_white_sides.png', + 'technic_homedecor_glowlight_thick_white_sides.png' + }, + selection_box = { + type = "fixed", + fixed = { -0.5, -0.5, -0.5, 0.5, 0, 0.5 } + }, + node_box = { + type = "fixed", + fixed = { -0.5, -0.5, -0.5, 0.5, 0, 0.5 } + }, + + sunlight_propagates = false, + paramtype = "light", + paramtype2 = "facedir", + walkable = true, + light_source = LIGHT_MAX, + sounds = default.node_sound_wood_defaults(), + + groups = { snappy = 3, not_in_creative_inventory=1}, + drop="technic:homedecor_glowlight_half_white", + on_place = function(itemstack, placer, pointed_thing) + technic_homedecor_rotate_and_place(itemstack, placer, pointed_thing) + return itemstack + end, + on_construct = function(pos) + technic_inductive_on_construct(pos, 100, "White Glowlight (thick)") + end, + on_punch = function(pos, node, puncher) + technic_inductive_on_punch_on(pos, 0, "technic:homedecor_glowlight_half_white") + end +}) + +-- White -- Quarter node +minetest.register_node('technic:homedecor_glowlight_quarter_white', { + description = S("White Glowlight (thin)"), + drawtype = "nodebox", + tiles = { + 'technic_homedecor_glowlight_white_tb.png', + 'technic_homedecor_glowlight_white_tb.png', + 'technic_homedecor_glowlight_thin_white_sides.png', + 'technic_homedecor_glowlight_thin_white_sides.png', + 'technic_homedecor_glowlight_thin_white_sides.png', + 'technic_homedecor_glowlight_thin_white_sides.png' + }, + selection_box = { + type = "fixed", + fixed = { -0.5, -0.5, -0.5, 0.5, -0.25, 0.5 } + }, + node_box = { + type = "fixed", + fixed = { -0.5, -0.5, -0.5, 0.5, -0.25, 0.5 } + }, + + sunlight_propagates = false, + paramtype = "light", + paramtype2 = "facedir", + walkable = true, + sounds = default.node_sound_wood_defaults(), + + groups = { snappy = 3 }, + on_place = function(itemstack, placer, pointed_thing) + technic_homedecor_rotate_and_place(itemstack, placer, pointed_thing) + return itemstack + end, + on_construct = function(pos) + technic_inductive_on_construct(pos, 100, "White Glowlight (thin)") + end, + on_punch = function(pos, node, puncher) + technic_inductive_on_punch_off(pos, 100, "technic:homedecor_glowlight_quarter_white_active") + end +}) + +minetest.register_node('technic:homedecor_glowlight_quarter_white_active', { + description = S("White Glowlight (thin)"), + drawtype = "nodebox", + tiles = { + 'technic_homedecor_glowlight_white_tb.png', + 'technic_homedecor_glowlight_white_tb.png', + 'technic_homedecor_glowlight_thin_white_sides.png', + 'technic_homedecor_glowlight_thin_white_sides.png', + 'technic_homedecor_glowlight_thin_white_sides.png', + 'technic_homedecor_glowlight_thin_white_sides.png' + }, + selection_box = { + type = "fixed", + fixed = { -0.5, -0.5, -0.5, 0.5, -0.25, 0.5 } + }, + node_box = { + type = "fixed", + fixed = { -0.5, -0.5, -0.5, 0.5, -0.25, 0.5 } + }, + + sunlight_propagates = false, + paramtype = "light", + paramtype2 = "facedir", + walkable = true, + light_source = LIGHT_MAX-1, + sounds = default.node_sound_wood_defaults(), + + groups = { snappy = 3, not_in_creative_inventory=1}, + drop="technic:homedecor_glowlight_quarter_white", + on_place = function(itemstack, placer, pointed_thing) + technic_homedecor_rotate_and_place(itemstack, placer, pointed_thing) + return itemstack + end, + on_construct = function(pos) + technic_inductive_on_construct(pos, 100, "White Glowlight (thin)") + end, + on_punch = function(pos, node, puncher) + technic_inductive_on_punch_on(pos, 0, "technic:homedecor_glowlight_quarter_white") + end +}) + +-- Glowlight "cubes" - yellow +minetest.register_node('technic:homedecor_glowlight_small_cube_yellow', { + description = S("Yellow Glowlight (small cube)"), + drawtype = "nodebox", + tiles = { + 'technic_homedecor_glowlight_cube_yellow_tb.png', + 'technic_homedecor_glowlight_cube_yellow_tb.png', + 'technic_homedecor_glowlight_cube_yellow_sides.png', + 'technic_homedecor_glowlight_cube_yellow_sides.png', + 'technic_homedecor_glowlight_cube_yellow_sides.png', + 'technic_homedecor_glowlight_cube_yellow_sides.png' + }, + selection_box = { + type = "fixed", + fixed = { -0.25, -0.5, -0.25, 0.25, 0, 0.25 } + }, + node_box = { + type = "fixed", + fixed = { -0.25, -0.5, -0.25, 0.25, 0, 0.25 } + }, + + sunlight_propagates = false, + paramtype = "light", + paramtype2 = "facedir", + walkable = true, + sounds = default.node_sound_wood_defaults(), + + groups = { snappy = 3 }, + on_place = function(itemstack, placer, pointed_thing) + technic_homedecor_rotate_and_place(itemstack, placer, pointed_thing) + return itemstack + end, + on_construct = function(pos) + technic_inductive_on_construct(pos, 50, "Yellow Glowlight (small cube)") + end, + on_punch = function(pos, node, puncher) + technic_inductive_on_punch_off(pos, 50, "technic:homedecor_glowlight_small_cube_yellow_active") + end +}) + +minetest.register_node('technic:homedecor_glowlight_small_cube_yellow_active', { + description = S("Yellow Glowlight (small cube)"), + drawtype = "nodebox", + tiles = { + 'technic_homedecor_glowlight_cube_yellow_tb.png', + 'technic_homedecor_glowlight_cube_yellow_tb.png', + 'technic_homedecor_glowlight_cube_yellow_sides.png', + 'technic_homedecor_glowlight_cube_yellow_sides.png', + 'technic_homedecor_glowlight_cube_yellow_sides.png', + 'technic_homedecor_glowlight_cube_yellow_sides.png' + }, + selection_box = { + type = "fixed", + fixed = { -0.25, -0.5, -0.25, 0.25, 0, 0.25 } + }, + node_box = { + type = "fixed", + fixed = { -0.25, -0.5, -0.25, 0.25, 0, 0.25 } + }, + + sunlight_propagates = false, + paramtype = "light", + paramtype2 = "facedir", + walkable = true, + light_source = LIGHT_MAX-1, + sounds = default.node_sound_wood_defaults(), + + groups = { snappy = 3, not_in_creative_inventory=1}, + drop="technic:homedecor_glowlight_cube_yellow", + on_place = function(itemstack, placer, pointed_thing) + technic_homedecor_rotate_and_place(itemstack, placer, pointed_thing) + return itemstack + end, + on_construct = function(pos) + technic_inductive_on_construct(pos, 50, "Yellow Glowlight (small cube)") + end, + on_punch = function(pos, node, puncher) + technic_inductive_on_punch_on(pos, 0, "technic:homedecor_glowlight_small_cube_yellow") + end +}) + +-- Glowlight "cubes" - white +minetest.register_node('technic:homedecor_glowlight_small_cube_white', { + description = S("White Glowlight (small cube)"), + drawtype = "nodebox", + tiles = { + 'technic_homedecor_glowlight_cube_white_tb.png', + 'technic_homedecor_glowlight_cube_white_tb.png', + 'technic_homedecor_glowlight_cube_white_sides.png', + 'technic_homedecor_glowlight_cube_white_sides.png', + 'technic_homedecor_glowlight_cube_white_sides.png', + 'technic_homedecor_glowlight_cube_white_sides.png' + }, + selection_box = { + type = "fixed", + fixed = { -0.25, -0.5, -0.25, 0.25, 0, 0.25 } + }, + node_box = { + type = "fixed", + fixed = { -0.25, -0.5, -0.25, 0.25, 0, 0.25 } + }, + + sunlight_propagates = false, + paramtype = "light", + paramtype2 = "facedir", + walkable = true, + sounds = default.node_sound_wood_defaults(), + + groups = { snappy = 3 }, + on_place = function(itemstack, placer, pointed_thing) + technic_homedecor_rotate_and_place(itemstack, placer, pointed_thing) + return itemstack + end, + on_construct = function(pos) + technic_inductive_on_construct(pos, 50, "White Glowlight (small cube)") + end, + on_punch = function(pos, node, puncher) + technic_inductive_on_punch_off(pos, 50, "technic:homedecor_glowlight_small_cube_white_active") + end +}) + +minetest.register_node('technic:homedecor_glowlight_small_cube_white_active', { + description = S("White Glowlight (small cube)"), + drawtype = "nodebox", + tiles = { + 'technic_homedecor_glowlight_cube_white_tb.png', + 'technic_homedecor_glowlight_cube_white_tb.png', + 'technic_homedecor_glowlight_cube_white_sides.png', + 'technic_homedecor_glowlight_cube_white_sides.png', + 'technic_homedecor_glowlight_cube_white_sides.png', + 'technic_homedecor_glowlight_cube_white_sides.png' + }, + selection_box = { + type = "fixed", + fixed = { -0.25, -0.5, -0.25, 0.25, 0, 0.25 } + }, + node_box = { + type = "fixed", + fixed = { -0.25, -0.5, -0.25, 0.25, 0, 0.25 } + }, + + sunlight_propagates = false, + paramtype = "light", + paramtype2 = "facedir", + walkable = true, + light_source = LIGHT_MAX-1, + sounds = default.node_sound_wood_defaults(), + + groups = { snappy = 3, not_in_creative_inventory=1}, + drop="technic:homedecor_glowlight_cube_white", + on_place = function(itemstack, placer, pointed_thing) + technic_homedecor_rotate_and_place(itemstack, placer, pointed_thing) + return itemstack + end, + on_construct = function(pos) + technic_inductive_on_construct(pos, 50, "White Glowlight (small cube)") + end, + on_punch = function(pos, node, puncher) + technic_inductive_on_punch_on(pos, 0, "technic:homedecor_glowlight_small_cube_white") + end +}) + +register_inductive_machine("technic:homedecor_glowlight_half_yellow") +register_inductive_machine("technic:homedecor_glowlight_half_white") +register_inductive_machine("technic:homedecor_glowlight_quarter_yellow") +register_inductive_machine("technic:homedecor_glowlight_quarter_white") +register_inductive_machine("technic:homedecor_glowlight_small_cube_yellow") +register_inductive_machine("technic:homedecor_glowlight_small_cube_white") diff --git a/technic/power_radiator.lua b/technic/power_radiator.lua new file mode 100644 index 0000000..3383d18 --- /dev/null +++ b/technic/power_radiator.lua @@ -0,0 +1,308 @@ +-- The power radiator fuctions like an inductive charger +-- only better in the game setting. +-- The purpose is to allow small appliances to receive power +-- without the overhead of the wiring needed for larger machines. +-- +-- The power radiator will consume power corresponding to the +-- sum(power rating of the attached appliances)/0.6 +-- Using inductive power transfer is very inefficient so this is +-- set to the factor 0.6. + +-- API for inductive powered nodes: +-- Use the functions below to set the corresponding callbacks +-- Also two nodes are needed: The inactive and the active one. The active must be called _active . + +-- Register a new appliance using this function +technic_inductive_nodes = {} +registered_inductive_count=0 + +register_inductive_machine = function(name) + registered_inductive_count=registered_inductive_count+1 + technic_inductive_nodes[registered_inductive_count]=name + registered_inductive_count=registered_inductive_count+1 + technic_inductive_nodes[registered_inductive_count]=name.."_active" + end + + +-- Appliances: +-- has_supply: pos of supply node if the appliance has a power radiator near with sufficient power for the demand else "" +-- EU_demand: The power demand of the device. +-- EU_charge: Actual use. set to EU_demand if active==1 +-- active: set to 1 if the device is on +technic_inductive_on_construct = function(pos, eu_demand, infotext) + local meta = minetest.env:get_meta(pos) + meta:set_string("infotext", infotext) + meta:set_int("technic_inductive_power_machine", 1) + meta:set_int("EU_demand",eu_demand) -- The power demand of this appliance + meta:set_int("EU_charge",0) -- The actual power draw of this appliance + meta:set_string("has_supply","") -- Register whether we are powered or not. For use with several radiators. + meta:set_int("active", 0) -- If the appliance can be turned on and off by using it use this. + end + +technic_inductive_on_punch_off = function(pos, eu_charge, swapnode) + local meta = minetest.env:get_meta(pos) + if meta:get_string("has_supply") ~= "" then + hacky_swap_node(pos, swapnode) + meta:set_int("active", 1) + meta:set_int("EU_charge",eu_charge) + --print("-----------") + --print("Turn on:") + --print("EUcha:"..meta:get_int("EU_charge")) + --print("has_supply:"..meta:get_string("has_supply")) + --print("<----------->") + end + end + +technic_inductive_on_punch_on = function(pos, eu_charge, swapnode) + local meta = minetest.env:get_meta(pos) + hacky_swap_node(pos, swapnode) + meta:set_int("active", 0) + meta:set_int("EU_charge",eu_charge) + --print("-----------") + --print("Turn off:") + --print("EUcha:"..meta:get_int("EU_charge")) + --print("has_supply:"..meta:get_string("has_supply")) + --print("<---------->") + end + +--minetest.register_node( +-- "technic:test_induc", { +-- description = "Test radiator node", +-- drawtype = "nodebox", +-- tiles = { +-- 'homedecor_glowlight_yellow_tb.png', +-- 'homedecor_glowlight_yellow_tb.png', +-- 'homedecor_glowlight_thick_yellow_sides.png', +-- 'homedecor_glowlight_thick_yellow_sides.png', +-- 'homedecor_glowlight_thick_yellow_sides.png', +-- 'homedecor_glowlight_thick_yellow_sides.png' +-- }, +-- +---- tiles = {"technic_hv_down_converter_top.png", "technic_hv_down_converter_top.png", "technic_hv_down_converter_top.png", +---- "technic_hv_down_converter_top.png", "technic_hv_down_converter_top.png", "technic_hv_down_converter_top.png"}, +-- selection_box = { +-- type = "fixed", +-- fixed = { -0.5, -0.5, -0.5, 0.5, 0, 0.5 } +-- }, +-- node_box = { +-- type = "fixed", +-- fixed = { -0.5, -0.5, -0.5, 0.5, 0, 0.5 } +-- }, +-- sunlight_propagates = false, +-- paramtype = "light", +-- paramtype2 = "facedir", +-- walkable = true, +-- groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}, +-- on_place = function(itemstack, placer, pointed_thing) +-- homedecor_rotate_and_place(itemstack, placer, pointed_thing) +-- return itemstack +-- end, +-- on_construct = function(pos) +-- local meta = minetest.env:get_meta(pos) +-- meta:set_string("infotext", "Power Radiator Appliance") +-- meta:set_int("technic_inductive_power_machine", 1) +-- meta:set_int("EU_demand",200) -- The power demand of this appliance +-- meta:set_int("EU_charge",0) -- The actual power draw of this appliance +-- meta:set_string("has_supply","") -- Register whether we are powered or not. For use with several radiators. +-- meta:set_int("active", 0) -- If the appliance can be turned on and off by using it use this. +-- end, +-- on_punch = function(pos,node,puncher) +-- local meta = minetest.env:get_meta(pos) +-- if meta:get_string("has_supply") ~= "" then +-- hacky_swap_node(pos, "technic:test_induc_active") +-- meta:set_int("active", 1) +-- meta:set_int("EU_charge",200) +-- print("-----------") +-- print("Turn on:") +-- print("EUcha:"..meta:get_int("EU_charge")) +-- print("<----------->") +-- end +-- end, +-- }) +-- +--minetest.register_node( +-- "technic:test_induc_active", { +-- description = "Test radiator node", +-- drawtype = "nodebox", +-- tiles = { +-- 'homedecor_glowlight_yellow_tb.png', +-- 'homedecor_glowlight_yellow_tb.png', +-- 'homedecor_glowlight_thick_yellow_sides.png', +-- 'homedecor_glowlight_thick_yellow_sides.png', +-- 'homedecor_glowlight_thick_yellow_sides.png', +-- 'homedecor_glowlight_thick_yellow_sides.png' +-- }, +-- +---- tiles = {"technic_hv_down_converter_side.png", "technic_hv_down_converter_side.png", "technic_hv_down_converter_side.png", +---- "technic_hv_down_converter_side.png", "technic_hv_down_converter_side.png", "technic_hv_down_converter_side.png"}, +-- selection_box = { +-- type = "fixed", +-- fixed = { -0.5, -0.5, -0.5, 0.5, 0, 0.5 } +-- }, +-- node_box = { +-- type = "fixed", +-- fixed = { -0.5, -0.5, -0.5, 0.5, 0, 0.5 } +-- }, +-- sunlight_propagates = false, +-- paramtype = "light", +-- paramtype2 = "facedir", +-- walkable = true, +-- light_source=14, +-- groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2,not_in_creative_inventory=1}, +-- drop="technic:test_induc", +-- on_place = function(itemstack, placer, pointed_thing) +-- homedecor_rotate_and_place(itemstack, placer, pointed_thing) +-- return itemstack +-- end, +-- on_construct = function(pos) +-- local meta = minetest.env:get_meta(pos) +-- meta:set_string("infotext", "Power Radiator Appliance Active") +-- meta:set_int("technic_inductive_power_machine", 1) +-- meta:set_int("EU_demand",200) -- The power demand of this appliance +-- meta:set_int("EU_charge",0) -- The actual power draw of this appliance +-- meta:set_string("has_supply","") -- Register whether we are powered or not. For use with several radiators. +-- end, +-- on_punch = function(pos,node,puncher) +-- local meta = minetest.env:get_meta(pos) +-- hacky_swap_node(pos, "technic:test_induc") +-- meta:set_int("active", 0) +-- meta:set_int("EU_charge",0) +-- print("-----------") +-- print("Turn off:") +-- print("EUcha:"..meta:get_int("EU_charge")) +-- print("<---------->") +-- end, +-- }) + +local shutdown_inductive_appliances = function(pos) + -- The supply radius + local rad = 4 + -- If the radiator is removed. turn off all appliances in region + -- If another radiator is near it will turn on the appliances again + local positions = minetest.env:find_nodes_in_area({x=pos.x-rad,y=pos.y-rad,z=pos.z-rad},{x=pos.x+rad,y=pos.y+rad,z=pos.z+rad}, technic_inductive_nodes) + for _,pos1 in ipairs(positions) do + local meta1 = minetest.env:get_meta(pos1) + -- If the appliance is belonging to this node + if meta1:get_string("has_supply") == pos.x..pos.y..pos.z then + local nodename = minetest.env:get_node(pos1).name + -- Swap the node and make sure it is off and unpowered + if string.sub(nodename, -7) == "_active" then + hacky_swap_node(pos1, string.sub(nodename, 1, -8)) + meta1:set_int("active", 0) + meta1:set_int("EU_charge", 0) + end + meta1:set_string("has_supply", "") + end + end + end + + +minetest.register_node( + "technic:power_radiator", { + description = "Power Radiator", + tiles = {"technic_hv_down_converter_top.png", "technic_hv_down_converter_bottom.png", "technic_hv_down_converter_side.png", + "technic_hv_down_converter_side.png", "technic_hv_down_converter_side.png", "technic_hv_down_converter_side.png"}, + groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}, + sounds = default.node_sound_wood_defaults(), + drawtype = "nodebox", + paramtype = "light", + is_ground_content = true, + node_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}, + }, + selection_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}, + }, + on_construct = function(pos) + local meta = minetest.env:get_meta(pos) + meta:set_int("technic_mv_power_machine", 1) -- MV machine + meta:set_int("internal_EU_buffer",0) -- internal buffer value + meta:set_int("internal_EU_buffer_size",1000) -- Size of buffer + meta:set_int("connected_EU_demand",0) -- Potential demand of connected appliances + meta:set_string("infotext", "Power Radiator") +-- meta:set_int("active", 0) + end, + on_dig = function(pos, node, digger) + shutdown_inductive_appliances(pos) + return minetest.node_dig(pos, node, digger) + end, + }) + +minetest.register_craft( + { + output = 'technic:power_radiator 1', + recipe = { + {'technic:stainless_steel_ingot', 'technic:stainless_steel_ingot', 'technic:stainless_steel_ingot'}, + {'technic:copper_coil', 'technic:mv_transformer', 'technic:copper_coil'}, + {'technic:rubber', 'technic:mv_cable', 'technic:rubber'}, + } + }) + +minetest.register_abm( + {nodenames = {"technic:power_radiator"}, + interval = 1, + chance = 1, + action = function(pos, node, active_object_count, active_object_count_wider) + local meta = minetest.env:get_meta(pos) + local my_supply = meta:get_int("internal_EU_buffer") + -- The maximum EU sourcing a single radiator can provide. + local max_charge = 1000 -- == the max EU demand of the radiator + local connected_EU_demand = meta:get_int("connected_EU_demand") + --print("--------------------") + --print("My Supply:"..my_supply) + --print("Connected Demand:"..connected_EU_demand) + if my_supply > 0 then + -- Efficiency factor + local eff_factor = 0.6 + -- The supply radius + local rad = 4 + + local meta1 = nil + local pos1 = {} + local used_charge = 0 + + -- Index all nodes within supply range + local positions = minetest.env:find_nodes_in_area({x=pos.x-rad,y=pos.y-rad,z=pos.z-rad},{x=pos.x+rad,y=pos.y+rad,z=pos.z+rad}, technic_inductive_nodes) + for _,pos1 in ipairs(positions) do + local meta1 = minetest.env:get_meta(pos1) + -- If not supplied see if this node can handle it. + if meta1:get_string("has_supply") == "" then + -- if demand surpasses the capacity of this node, don't bother adding it. + local eu_demand = meta1:get_int("EU_demand")/eff_factor + if connected_EU_demand+eu_demand <= max_charge and connected_EU_demand+eu_demand <= my_supply then + -- We can power the appliance. Register, and spend power if it is on. + connected_EU_demand = connected_EU_demand+eu_demand + + meta1:set_string("has_supply", pos.x..pos.y..pos.z) + used_charge = math.floor(used_charge+meta1:get_int("EU_charge")/eff_factor) + end + elseif meta1:get_string("has_supply") == pos.x..pos.y..pos.z then + -- The appliance has power from this node. Spend power if it is on. + used_charge = math.floor(used_charge+meta1:get_int("EU_charge")/eff_factor) + end + end + --If demand surpasses actual supply turn off everything - we are out of power + if used_charge>my_supply then + meta:set_string("infotext", "Power Radiator is overloaded ("..math.floor(used_charge/my_supply*100).."% of available power)"); +-- meta:set_int("active",1) -- used for setting textures someday maybe + shutdown_inductive_appliances(pos) + connected_EU_demand = 0 + else + meta:set_string("infotext", "Power Radiator is powered ("..math.floor(used_charge/my_supply*100).."% of available power)"); + meta:set_int("internal_EU_buffer",my_supply-used_charge) +-- meta:set_int("active",1) -- used for setting textures someday maybe + end + else + meta:set_string("infotext", "Power Radiator is unpowered"); +-- meta:set_int("active",0) -- used for setting textures someday maybe + end + + -- Save state + meta:set_int("connected_EU_demand",connected_EU_demand) + return + end, + }) + +register_MV_machine ("technic:power_radiator","RE") diff --git a/technic/textures/technic_homedecor_glowlight_cube_white_sides.png b/technic/textures/technic_homedecor_glowlight_cube_white_sides.png new file mode 100644 index 0000000000000000000000000000000000000000..91219991028f94ba74323ebb05d8710435c61b57 GIT binary patch literal 255 zcmVEPht>gwv^ z;^N=m-`w2X;o;%+_4VxR?C0m_>+9?2=;-6)ch#|Ns9JrAZ3_ z002`-L_t&-)5XZi4S+BV0KstQ4!L8S{_8}1EJOqBYc=BfBz}a$J48AIgD0Jm?I(k) zFxIUg1C_DJ2>A_CL{%A@R&yLvXE101Qf&;uP|m&W&)+H~8BAmCU$+1N002ovPDHLk FV1g4Gg>C=< literal 0 HcmV?d00001 diff --git a/technic/textures/technic_homedecor_glowlight_cube_white_sides_ceiling.png b/technic/textures/technic_homedecor_glowlight_cube_white_sides_ceiling.png new file mode 100644 index 0000000000000000000000000000000000000000..c8006eb3dfc4d1756662c6f5a12df55289769d91 GIT binary patch literal 258 zcmV+d0sa1oP)qi`T6fqqu>FMd* z+}z>e;o{=r-{0T$_4VW9ch#|NsA~3tis; z0034=L_t&-)5XZg5r8lZL{XESbCN~>b%HM%I^Z96b{@Omj#yGcW#(sdV$A?@D1x%| zunHXsstAnth6D)$-@Y)~xp%0Jz!sUaMo(ZYj^X@8@a-pf0JQHJOdpq@oB#j-07*qo IM6N<$f*&f0EC2ui literal 0 HcmV?d00001 diff --git a/technic/textures/technic_homedecor_glowlight_cube_white_tb.png b/technic/textures/technic_homedecor_glowlight_cube_white_tb.png new file mode 100644 index 0000000000000000000000000000000000000000..b2e355ac966f8747d7ca08408022fb3fbb048be4 GIT binary patch literal 261 zcmV+g0s8)lP)gwv|=H~hN`Stbn^78WS?d{>=;osli*wd^<>lr7|No&i z&Km##09HvvK~xyirOr1JfG`Y1QIn%{lq~LlO*)yOgkQd5XT|kOe1tQvM34@KTr{Gw zi6PA~h!KgQ;Ltg*>H~svUN!(Ndmo~0qhz9*DllwIsg+>=bN$&33>_M8dFQQ$00000 LNkvXXu0mjf2VIJd literal 0 HcmV?d00001 diff --git a/technic/textures/technic_homedecor_glowlight_cube_yellow_sides.png b/technic/textures/technic_homedecor_glowlight_cube_yellow_sides.png new file mode 100644 index 0000000000000000000000000000000000000000..b79be077dcbbb3802cf80af6546b1bf1c5ddcbcc GIT binary patch literal 350 zcmWlT&nv@m0ER!zq-~;>$Yt$dO|ga&xooo^rWtKB5@X1k)Rq+&2UZKs+DTipw2P%M zBg(;nT8<8W99)#t@<*u0*WrDip40p8Pq-b8igtw%qR}~G^+;^~PlHTqeRq>rLS4u_ zW)|Wqt^5tjB|n>R`E2kB8Hhs(Do}uXc!31uVGC|y4YF_u`>+ftn1nP$U;{Rx2suc? zJXjzGD_{pNbV3-`AqeBJ10INi4+dZrW?&Iq-~bI6;1NDx4t8M{hM){w{~U*<+X1K5 z>}z{nDw|{~nZ6Jy>Q2rtLZa2!*Ych5y}u-sr+dA*Sn}xSLGBvNexy_#Z(p@fx~g5( zl^>1PXbt}U;aJdiw|yhjn#;mL{jACSoOM|J0d=KbSd2ZV)hX??v?QE1x3y$hi2nhb CSHr~s literal 0 HcmV?d00001 diff --git a/technic/textures/technic_homedecor_glowlight_cube_yellow_sides_ceiling.png b/technic/textures/technic_homedecor_glowlight_cube_yellow_sides_ceiling.png new file mode 100644 index 0000000000000000000000000000000000000000..a9d397af3597c0c4608dc95fee0ba0162c4c41a6 GIT binary patch literal 353 zcmWlTO(=r_0EWM9ChaFHX-mq1WCv@?!BW~cvsulIZ8iU9+M1N1=HkF=SZF1paaf6z z`fLYn%E3x*F1WZT7iZs&H8x1Jdva`%r)c+`|i;K@Qg87FJ;qVsHXSumtlEfFMY433=Fs z73cvM977T^kcCZ%fCEBch6R{|aY(@$%zzi%Fbtz$fflI3J8Z)gOhPXdfeWcrmTyNq zPBCbDjTQx^InpOiHzXPjrwZrJxAjMB)tIa5u~p{`I4!8x3^`Pv`>UY$Mox)&QiEJm#!}2F~MlBRkg{6XxCMy+xQ^M1kZraDLH1- Ee*{#+1ONa4 literal 0 HcmV?d00001 diff --git a/technic/textures/technic_homedecor_glowlight_cube_yellow_tb.png b/technic/textures/technic_homedecor_glowlight_cube_yellow_tb.png new file mode 100644 index 0000000000000000000000000000000000000000..daf03ab4f16e74e9b1390deb4bcabc5df7be9680 GIT binary patch literal 352 zcmWlTPbh-{0L4F>mA;vg1GzZRaIlh+lG;CJH8Zm%n!j5_%AzLaz#@H_R;y*S!!DR) zk(8AK<)AohLsC)>#Ldw`{d^AZ{d$Mjdy>;()reK1AP5>;m&GNs^j}3v+3Op%eKHCs zjon5;IEko#$5e7YblTk=@CsXyhHFT|1>|83c3=+{;0!ik1Y#gT5PDz*#=r#uNI)Dy zumm$O4udcan-GCHm<2z0zzTM#hIyEPDKJ4N=)nzr&;YG)1<&Axbr^y+I7Tk?A8F;= zqc)4tU3u?2HYkhzVrpCZ7H?CZm#VvP=4Wx$?|D;%6ycATgf1T_@C9`(HRh7u^W_66 zQ>HwPE4+q*=-Ok}J6x_$?$%z_>G#v>itJNM%=M6MPF{cA2!i>&Db=2f=HxBG*5R2$@9^;O?(XjG?d|gN^4Qqe;Nal#@$uo|;nvpH^YioL z+9>nP%wS~004AJL_t&-(`}F24umiWL{Y1~?ZQy` z|8G^)-Du-U`oJU|4rCo<>w`0>6+o@O08v$k{Q*Z1Rirs08euf=6LU(5xsj+*Xk5zI zDTSNNG)_4$A7{yV8Uuwc@s9hSK&C?fR_`!8_8z9dWfpO%-`wAh>(~JLi4OxEXNUCw O0000+9ig0Nd@6|iz97Ncwb*H`iTz%X7vbi P00000NkvXXu0mjf!h3q@ literal 0 HcmV?d00001 diff --git a/technic/textures/technic_homedecor_glowlight_thick_yellow_sides.png b/technic/textures/technic_homedecor_glowlight_thick_yellow_sides.png new file mode 100644 index 0000000000000000000000000000000000000000..769b05485f2f3451b3d2be5b0c91d98d0ad1a7b8 GIT binary patch literal 475 zcmWlUO-Pdg0EWM2Q<+W&ru|s+2U|lcv6=lT?Tc@G4%e7&H2fLNih>9P^Wf}I%si~9 zwRW*fLN&t#%}~RPR4_%8jBf`e31lfn(V;GOFrU5-@B8o^pODKb>vel{f*|Pa)l!{G z!~dlwsc$}%=~l7*vUpY$grRWSX0ulHNteT8gM4@dPay^m;0|;_4;+PDh(H>gh7ef6 z1V^9@ERY4&kOQ}%1dhQDI1JfP1TwsYN~i)4jKB~K!z*xu4)#JS>;^69p&R<37%E@@ z_CpFdL4;9AhfJj|?IqJ_u)@k8DyL|Qeq*)`>~rbFph5@2L;@GK!F@Oc`(X?U zVJk==!xZQsAFNOhNnnIz5YX9ESKq3%%sH%*Yu933|7M!SX*kgr?=j7V)Pw!4pI5#o z+9L6{1&fK0=hbjq!)sw4k>fvqUkZ7R`YY82|R9)XT`ZitMZf`D1wL zy?xN{Yxb;#zd45;?V~H{U+=xS7_-G1&WKoKeD89w<#DuZoA5_h@0Jvuwj`O8O`q0v zv%ft4#nvufK~wy%xyW%vpYr`eUhJqb1LnTk~k+V6)b{5UzSL k-{o^hAKtj|x2dFKW>qy>oYV2e+b%0n!ci$($1IJ$e+a@3 z;#Y&zeIvwP?(I%twysp3(QC-_U|N&Xq1t;p*2|XU{V6??<~C7^xqo-#t*nRscURs0 Zr5_i`d$(qDi3`vM22WQ%mvv4FO#mz!YAXN$ literal 0 HcmV?d00001 diff --git a/technic/textures/technic_homedecor_glowlight_thin_white_wall_sides.png b/technic/textures/technic_homedecor_glowlight_thin_white_wall_sides.png new file mode 100644 index 0000000000000000000000000000000000000000..0fd3b1efd18315d4654ef1fc5e24527fb8acc179 GIT binary patch literal 232 zcmVP)+9?P|Nm>MLyrIe09{E$K~xyimCwlvz%U3!Q8SoHjp_gYY^5m)6k4du zvygW|WsKv#AsQi~+mJXw;Isj#K_grs>puZrSqUp+pD_kDV9PoTHQqRduh3xc4ucA4xF^Zu75lU}3C?URr(Z0t4) z!trX(?_j3nzFwQd3>s*K4yc1RsD}pFfLhSP5`>@_^pFoKD1l9=f@R2oMJR*-%s~X& zp#}Cp2m4@vFl@sLEWkV*z&cdI8u)>NJ?D-TGj25*9Yx8jge85htib=+5W1hV#O1kO zWH*=HUf-S9nOgOvqVAwwyp6pCX2r&f^Dje-&F>g1`rc5#D)frT_=rn9ZH`UUOvj(y zol`R(M?Yua$W7xHF__lTJQ3j{p`ZlYUSj{~q IvE4QM2j6nEJOBUy literal 0 HcmV?d00001 diff --git a/technic/textures/technic_homedecor_glowlight_thin_yellow_wall_sides.png b/technic/textures/technic_homedecor_glowlight_thin_yellow_wall_sides.png new file mode 100644 index 0000000000000000000000000000000000000000..4b28a27c75e7ab0ee122049ad01dc496c0c1fa9a GIT binary patch literal 355 zcmWlTODMwu0EhqbY=*TV@1-o1v9*+Ew%MA+%wyyrO(~BY+?0#Pnm6M>BE=HFoOu& zPzk%Bg;Lmrb(n`q@WDPTLLT_R3*;L+!cxqf-C}a3g{%v^J=;;A%0 zeRc%TMbGITmpc`!rp{8?P1{>+*4Bk$z5nbkCog}@Jg90|n^fpVyWFduT)$|z?b}yI z3{PZ!+`PtBJ%_K4tG^F7l2%63efL9G@)+lgQ~U7V?C)3hg>;&bm^@P76-s?{>3f2K blgoiG^@}<;P-c*~OJRcD+Gsg2yT|?jWr4R* literal 0 HcmV?d00001 diff --git a/technic/textures/technic_homedecor_glowlight_white_tb.png b/technic/textures/technic_homedecor_glowlight_white_tb.png new file mode 100644 index 0000000000000000000000000000000000000000..fdc8a4d6df99063ce7d00f49a02ea5bc9e39a4fb GIT binary patch literal 330 zcmV-Q0k!^#P)gwwI`}^$d?C0m_?d|RI^78BJ>-F{Z>FMe5@$v8P@ALEXS*l(D0001? zNkl7AR}|b z?U9nh#u+CeXwowo6t4JDxO6IHDlQLa+!lz{<4Osd6534p>+x&KSJUs7ntPvHbiIzB c9_Iu68+zyz14K|_C;$Ke07*qoM6N<$f@>M8jQ{`u literal 0 HcmV?d00001 diff --git a/technic/textures/technic_homedecor_glowlight_yellow_tb.png b/technic/textures/technic_homedecor_glowlight_yellow_tb.png new file mode 100644 index 0000000000000000000000000000000000000000..ffd9c58ab5eac048725d87c8a01f39f2590cfa70 GIT binary patch literal 633 zcmWlVYb?|O0KorAFV5&WB9FG((Xy4*YOBrJ9bF!Arw^69zA&VRp|~w+bs0i)40F^< zo%5D!=V~4aS4!==EYpWdyV7d$1v~54_2KvXegBoj#zeTeY2Pzm{PAI`yLxB~Ct8Qg+V}M!yQnA9{S-fXu$y8E8)sg$3(kaDv9^B?09X>8xGwP`tHo4VsTr3zS?=i ze5J=!-7*#8U-m@Xpx36BkkrL}26;h{f9OM<&rx6Vsm93!AHQ9aL&mxJwv69V8qJ7Q zuo<;SK8t1zZj)0or;z$4mC3uuzajm5r04jOI>!>QRo`*C>WOH`cX@QTDzHXlJNdTH zP?WoQW9w3^d5<->&?aPyW@PON#^9Oitn!?{GPPpihG}ei=d`Om`arQ&f2oi+6AkvY z=B}i;QeEv_RD|6$k#6=2AL<{_W}c`iODPZ^RCWH$h_fhrFFJ(<1sspe{A275{