From 4141fefdf65423639bd01d1eae3dda37c81246e3 Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Fri, 19 Mar 2021 20:06:22 +0100 Subject: [PATCH] Change use_texture_alpha to work with MT 5.0+ --- basis/tubes.lua | 4 ++-- basis/tubes_ta4.lua | 4 ++-- carts/chest_cart.lua | 2 +- carts/tank_cart.lua | 2 +- chemistry/ta4_liquid_filter.lua | 4 ++-- chemistry/ta4_reactor.lua | 4 ++-- chemistry/ta4_stand.lua | 2 +- doc/guide.lua | 4 ++-- icta_controller/battery.lua | 4 ++-- icta_controller/controller.lua | 2 +- icta_controller/display.lua | 4 ++-- icta_controller/signaltower.lua | 4 ++-- init.lua | 3 +++ iron_age/gravelsieve.lua | 2 +- lamps/lib.lua | 4 ++-- liquids/liquid_pipe.lua | 4 ++-- liquids/valve.lua | 4 ++-- logic/button.lua | 4 ++-- logic/terminal.lua | 2 +- lua_controller/controller.lua | 2 +- lua_controller/server.lua | 2 +- lua_controller/terminal.lua | 2 +- oil/tower.lua | 14 +++++++------- power/drive_axle.lua | 4 ++-- power/electric_cable.lua | 4 ++-- power/junction.lua | 2 +- power/power_line.lua | 14 +++++++------- power/power_terminal.lua | 2 +- power/power_terminal2.lua | 2 +- power/powerswitch.lua | 8 ++++---- power/powerswitchbox.lua | 2 +- power/steam_pipe.lua | 4 ++-- power/ta4_cable.lua | 6 +++--- solar/minicell.lua | 2 +- solar/solarcell.lua | 8 ++++---- wind_turbine/signallamp.lua | 4 ++-- 36 files changed, 74 insertions(+), 71 deletions(-) diff --git a/basis/tubes.lua b/basis/tubes.lua index 6681716..d97a2a6 100644 --- a/basis/tubes.lua +++ b/basis/tubes.lua @@ -88,7 +88,7 @@ minetest.register_node("techage:tubeS", { }, on_rotate = screwdriver.disallow, paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, is_ground_content = false, groups = {choppy=2, cracky=3}, @@ -129,7 +129,7 @@ minetest.register_node("techage:tubeA", { }, on_rotate = screwdriver.disallow, paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, is_ground_content = false, groups = {choppy=2, cracky=3, not_in_creative_inventory=1}, diff --git a/basis/tubes_ta4.lua b/basis/tubes_ta4.lua index 37e8f56..e7a1b45 100644 --- a/basis/tubes_ta4.lua +++ b/basis/tubes_ta4.lua @@ -55,7 +55,7 @@ minetest.register_node("techage:ta4_tubeS", { }, on_rotate = screwdriver.disallow, paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, is_ground_content = false, groups = {choppy=2, cracky=3}, @@ -96,7 +96,7 @@ minetest.register_node("techage:ta4_tubeA", { }, on_rotate = screwdriver.disallow, paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, is_ground_content = false, groups = {choppy=2, cracky=3, not_in_creative_inventory=1}, diff --git a/carts/chest_cart.lua b/carts/chest_cart.lua index 9116010..0e2bcfc 100644 --- a/carts/chest_cart.lua +++ b/carts/chest_cart.lua @@ -80,7 +80,7 @@ minetest.register_node("techage:chest_cart", { }, paramtype2 = "facedir", paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, is_ground_content = false, groups = {cracky = 2, crumbly = 2, choppy = 2}, diff --git a/carts/tank_cart.lua b/carts/tank_cart.lua index 0bec02a..a6eb842 100644 --- a/carts/tank_cart.lua +++ b/carts/tank_cart.lua @@ -111,7 +111,7 @@ minetest.register_node("techage:tank_cart", { }, paramtype2 = "facedir", paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, is_ground_content = false, groups = {cracky = 2, crumbly = 2, choppy = 2}, diff --git a/chemistry/ta4_liquid_filter.lua b/chemistry/ta4_liquid_filter.lua index 59ba4f7..47db659 100644 --- a/chemistry/ta4_liquid_filter.lua +++ b/chemistry/ta4_liquid_filter.lua @@ -111,7 +111,7 @@ minetest.register_node("techage:ta4_liquid_filter_filler", { paramtype = "light", paramtype2 = "facedir", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, on_rotate = screwdriver.disallow, groups = {cracky=2}, is_ground_content = false, @@ -190,7 +190,7 @@ minetest.register_node("techage:ta4_liquid_filter_sink", { end, paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, paramtype2 = "facedir", on_rotate = screwdriver.disallow, groups = {cracky=2}, diff --git a/chemistry/ta4_reactor.lua b/chemistry/ta4_reactor.lua index b80b0c9..6443a4c 100644 --- a/chemistry/ta4_reactor.lua +++ b/chemistry/ta4_reactor.lua @@ -56,7 +56,7 @@ minetest.register_node("techage:ta4_reactor_fillerpipe", { end, paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, paramtype2 = "facedir", on_rotate = screwdriver.disallow, @@ -168,7 +168,7 @@ minetest.register_node("techage:ta4_reactor", { allow_metadata_inventory_take = allow_metadata_inventory_take, paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, paramtype2 = "facedir", on_rotate = screwdriver.disallow, groups = {cracky=2}, diff --git a/chemistry/ta4_stand.lua b/chemistry/ta4_stand.lua index 7eb691b..bbe5330 100644 --- a/chemistry/ta4_stand.lua +++ b/chemistry/ta4_stand.lua @@ -122,7 +122,7 @@ minetest.register_node("techage:ta4_reactor_stand", { end, paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, paramtype2 = "facedir", on_rotate = screwdriver.disallow, groups = {cracky=2}, diff --git a/doc/guide.lua b/doc/guide.lua index a83be6c..918bb45 100644 --- a/doc/guide.lua +++ b/doc/guide.lua @@ -148,7 +148,7 @@ minetest.register_node("techage:construction_board", { paramtype2 = "wallmounted", paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, is_ground_content = false, groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}, @@ -200,7 +200,7 @@ minetest.register_node("techage:construction_board_EN", { paramtype2 = "wallmounted", paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, is_ground_content = false, groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}, diff --git a/icta_controller/battery.lua b/icta_controller/battery.lua index 97f3cdd..4911a56 100644 --- a/icta_controller/battery.lua +++ b/icta_controller/battery.lua @@ -99,7 +99,7 @@ minetest.register_node("techage:ta4_battery", { end, paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, paramtype2 = "facedir", groups = {choppy=1, cracky=1, crumbly=1}, @@ -133,7 +133,7 @@ minetest.register_node("techage:ta4_battery_empty", { end, paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, paramtype2 = "facedir", groups = {choppy=1, cracky=1, crumbly=1, not_in_creative_inventory=1}, diff --git a/icta_controller/controller.lua b/icta_controller/controller.lua index 8e14e22..998ed82 100644 --- a/icta_controller/controller.lua +++ b/icta_controller/controller.lua @@ -395,7 +395,7 @@ minetest.register_node("techage:ta4_icta_controller", { paramtype = "light", sunlight_propagates = true, paramtype2 = "facedir", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, groups = {choppy=1, cracky=1, crumbly=1}, is_ground_content = false, sounds = default.node_sound_stone_defaults(), diff --git a/icta_controller/display.lua b/icta_controller/display.lua index 2020112..6f97af6 100644 --- a/icta_controller/display.lua +++ b/icta_controller/display.lua @@ -90,7 +90,7 @@ minetest.register_node("techage:ta4_display", { tiles = {"techage_display.png"}, drawtype = "nodebox", paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, paramtype2 = "wallmounted", node_box = techage.display.lcd_box, @@ -138,7 +138,7 @@ minetest.register_node("techage:ta4_displayXL", { tiles = {"techage_displayXL.png"}, drawtype = "nodebox", paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, paramtype2 = "wallmounted", node_box = techage.display.lcd_boxXL, diff --git a/icta_controller/signaltower.lua b/icta_controller/signaltower.lua index 809dc66..cf3f723 100644 --- a/icta_controller/signaltower.lua +++ b/icta_controller/signaltower.lua @@ -61,7 +61,7 @@ minetest.register_node("techage:ta4_signaltower", { end, paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, light_source = 0, sunlight_propagates = true, paramtype2 = "facedir", @@ -93,7 +93,7 @@ for _,color in ipairs({"green", "amber", "red"}) do end, paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, light_source = 10, sunlight_propagates = true, paramtype2 = "facedir", diff --git a/init.lua b/init.lua index df7e49a..0e9e3e4 100644 --- a/init.lua +++ b/init.lua @@ -38,6 +38,9 @@ elseif minetest.global_exists("safer_lua") and safer_lua.version < 1.0 then return end +-- Test MT 5.4 new string mode +techage.CLIP = minetest.features.use_texture_alpha_string_modes and "clip" or true + techage.NodeDef = {} -- node registration info techage.max_num_forceload_blocks = tonumber(minetest.settings:get("techage_max_num_forceload_blocks")) or 24 diff --git a/iron_age/gravelsieve.lua b/iron_age/gravelsieve.lua index 1e56be6..e2b6fc7 100644 --- a/iron_age/gravelsieve.lua +++ b/iron_age/gravelsieve.lua @@ -147,7 +147,7 @@ for idx = 0,3 do minecart_hopper_untakeitem = minecart_hopper_untakeitem, paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sounds = default.node_sound_wood_defaults(), paramtype2 = "facedir", sunlight_propagates = true, diff --git a/lamps/lib.lua b/lamps/lib.lua index b48b299..aa7147b 100644 --- a/lamps/lib.lua +++ b/lamps/lib.lua @@ -146,7 +146,7 @@ function techage.register_lamp(basename, ndef_off, ndef_on) ndef_off.on_rotate = ndef_off.on_rotate or on_rotate ndef_off.on_timer = node_timer ndef_off.paramtype = "light" - ndef_off.use_texture_alpha = "clip" + ndef_off.use_texture_alpha = techage.CLIP ndef_off.light_source = 0 ndef_off.sunlight_propagates = true ndef_off.paramtype2 = "facedir" @@ -166,7 +166,7 @@ function techage.register_lamp(basename, ndef_off, ndef_on) ndef_on.on_rotate = ndef_on.on_rotate or on_rotate ndef_on.on_timer = ndef_on.on_timer or node_timer ndef_on.paramtype = "light" - ndef_on.use_texture_alpha = "clip" + ndef_on.use_texture_alpha = techage.CLIP ndef_on.light_source = minetest.LIGHT_MAX ndef_on.sunlight_propagates = true ndef_on.paramtype2 = "facedir" diff --git a/liquids/liquid_pipe.lua b/liquids/liquid_pipe.lua index 41ed9fc..b392d17 100644 --- a/liquids/liquid_pipe.lua +++ b/liquids/liquid_pipe.lua @@ -77,7 +77,7 @@ minetest.register_node("techage:ta3_pipeS", { }, on_rotate = screwdriver.disallow, -- important! paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, is_ground_content = false, groups = {crumbly = 2, cracky = 2, snappy = 2}, @@ -112,7 +112,7 @@ minetest.register_node("techage:ta3_pipeA", { }, on_rotate = screwdriver.disallow, -- important! paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, is_ground_content = false, groups = {crumbly = 2, cracky = 2, snappy = 2, not_in_creative_inventory=1}, diff --git a/liquids/valve.lua b/liquids/valve.lua index a2de5d1..a3ccc68 100644 --- a/liquids/valve.lua +++ b/liquids/valve.lua @@ -128,7 +128,7 @@ minetest.register_node("techage:ta3_valve_open", { }, on_rotate = screwdriver.disallow, -- important! paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, is_ground_content = false, groups = {crumbly = 2, cracky = 2, snappy = 2}, @@ -168,7 +168,7 @@ minetest.register_node("techage:ta3_valve_closed", { }, on_rotate = screwdriver.disallow, -- important! paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, is_ground_content = false, groups = {crumbly = 2, cracky = 2, snappy = 2, not_in_creative_inventory = 1}, diff --git a/logic/button.lua b/logic/button.lua index 28306ef..b08a0a1 100644 --- a/logic/button.lua +++ b/logic/button.lua @@ -238,7 +238,7 @@ minetest.register_node("techage:ta4_button_off", { on_rotate = screwdriver.disallow, paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, paramtype2 = "facedir", groups = {choppy=2, cracky=2, crumbly=2}, @@ -273,7 +273,7 @@ minetest.register_node("techage:ta4_button_on", { techage_set_numbers = techage_set_numbers, paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, paramtype2 = "facedir", groups = {choppy=2, cracky=2, crumbly=2, not_in_creative_inventory=1}, diff --git a/logic/terminal.lua b/logic/terminal.lua index 7c11177..bae261c 100644 --- a/logic/terminal.lua +++ b/logic/terminal.lua @@ -224,7 +224,7 @@ local function register_terminal(num, tiles, node_box, selection_box) end, paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, paramtype2 = "facedir", groups = {choppy=2, cracky=2, crumbly=2}, diff --git a/lua_controller/controller.lua b/lua_controller/controller.lua index bcf2f39..5e64e56 100644 --- a/lua_controller/controller.lua +++ b/lua_controller/controller.lua @@ -553,7 +553,7 @@ minetest.register_node("techage:ta4_lua_controller", { on_timer = on_timer, paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, paramtype2 = "facedir", groups = {choppy=1, cracky=1, crumbly=1}, diff --git a/lua_controller/server.lua b/lua_controller/server.lua index f639304..ff2b2b1 100644 --- a/lua_controller/server.lua +++ b/lua_controller/server.lua @@ -104,7 +104,7 @@ on_timer = function(pos, elasped) paramtype = "light", sunlight_propagates = true, - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, paramtype2 = "facedir", groups = {choppy=1, cracky=1, crumbly=1}, is_ground_content = false, diff --git a/lua_controller/terminal.lua b/lua_controller/terminal.lua index a0783f6..26bc63b 100644 --- a/lua_controller/terminal.lua +++ b/lua_controller/terminal.lua @@ -179,7 +179,7 @@ minetest.register_node("techage:ta4_terminal", { end, paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, paramtype2 = "facedir", groups = {choppy=2, cracky=2, crumbly=2}, diff --git a/oil/tower.lua b/oil/tower.lua index c0265a2..cfade41 100644 --- a/oil/tower.lua +++ b/oil/tower.lua @@ -38,7 +38,7 @@ minetest.register_node("techage:oiltower1", { diggable = false, paramtype2 = "facedir", paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, groups = {not_in_creative_inventory = 1}, is_ground_content = false, @@ -71,7 +71,7 @@ minetest.register_node("techage:oiltower2", { diggable = false, paramtype2 = "facedir", paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, groups = {not_in_creative_inventory = 1}, is_ground_content = false, @@ -104,7 +104,7 @@ minetest.register_node("techage:oiltower3", { diggable = false, paramtype2 = "facedir", paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, groups = {not_in_creative_inventory = 1}, is_ground_content = false, @@ -137,7 +137,7 @@ minetest.register_node("techage:oiltower4", { diggable = false, paramtype2 = "facedir", paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, groups = {not_in_creative_inventory = 1}, is_ground_content = false, @@ -160,7 +160,7 @@ minetest.register_node("techage:oiltower5", { diggable = false, paramtype2 = "facedir", paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, groups = {not_in_creative_inventory = 1}, is_ground_content = false, @@ -174,7 +174,7 @@ minetest.register_node("techage:oil_drillbit", { wield_image = "techage_oil_drillbit_inv.png", visual_scale = 1, paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, groups = {cracky = 1}, is_ground_content = false, @@ -188,7 +188,7 @@ minetest.register_node("techage:oil_drillbit2", { wield_image = "techage_oil_drillbit_inv.png", visual_scale = 1, paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, drop = "", diggable = false, sunlight_propagates = true, diff --git a/power/drive_axle.lua b/power/drive_axle.lua index 44f6af8..a1a0105 100644 --- a/power/drive_axle.lua +++ b/power/drive_axle.lua @@ -67,7 +67,7 @@ minetest.register_node("techage:axle", { }, on_rotate = screwdriver.disallow, -- important! paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, is_ground_content = false, groups = {crumbly = 3, cracky = 3, snappy = 3}, @@ -161,7 +161,7 @@ minetest.register_node("techage:axle_on", { }, on_rotate = screwdriver.disallow, -- important! paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, is_ground_content = false, diggable = false, diff --git a/power/electric_cable.lua b/power/electric_cable.lua index e3029aa..3799a62 100644 --- a/power/electric_cable.lua +++ b/power/electric_cable.lua @@ -117,7 +117,7 @@ minetest.register_node("techage:electric_cableS", { }, on_rotate = screwdriver.disallow, -- important! paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, is_ground_content = false, groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 3, techage_trowel = 1}, @@ -154,7 +154,7 @@ minetest.register_node("techage:electric_cableA", { }, on_rotate = screwdriver.disallow, -- important! paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, is_ground_content = false, groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 3, diff --git a/power/junction.lua b/power/junction.lua index 3bafb5c..9252e2c 100644 --- a/power/junction.lua +++ b/power/junction.lua @@ -65,7 +65,7 @@ function techage.register_junction(name, size, boxes, tlib2, node, index) ndef.paramtype2 = "facedir" ndef.on_rotate = screwdriver.disallow ndef.paramtype = "light" - ndef.use_texture_alpha = "clip" + ndef.use_texture_alpha = techage.CLIP ndef.sunlight_propagates = true ndef.is_ground_content = false ndef.drop = name..(index or "0") diff --git a/power/power_line.lua b/power/power_line.lua index 1279be1..1b63162 100644 --- a/power/power_line.lua +++ b/power/power_line.lua @@ -64,7 +64,7 @@ minetest.register_node("techage:power_line", { }, on_rotate = screwdriver.disallow, -- important! paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, is_ground_content = false, drop = "techage:power_lineS", @@ -106,7 +106,7 @@ minetest.register_node("techage:power_lineS", { }, on_rotate = screwdriver.disallow, -- important! paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, is_ground_content = false, drop = "techage:power_lineS", @@ -170,7 +170,7 @@ minetest.register_node("techage:power_lineA", { }, on_rotate = screwdriver.disallow, -- important! paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, is_ground_content = false, drop = "techage:power_lineS", @@ -225,7 +225,7 @@ minetest.register_node("techage:power_pole2", { on_rotate = screwdriver.disallow, -- important! paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, is_ground_content = false, groups = {cracky=2, crumbly=2, choppy=2}, @@ -271,7 +271,7 @@ minetest.register_node("techage:power_pole", { on_rotate = screwdriver.disallow, -- important! paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, is_ground_content = false, groups = {cracky=2, crumbly=2, choppy=2}, @@ -322,7 +322,7 @@ minetest.register_node("techage:power_pole_conn", { drop = "techage:power_pole", on_rotate = screwdriver.disallow, -- important! paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, is_ground_content = false, groups = {cracky=2, crumbly=2, choppy=2, not_in_creative_inventory = 1}, @@ -350,7 +350,7 @@ minetest.register_node("techage:power_pole3", { }, on_rotate = screwdriver.disallow, -- important! paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, is_ground_content = false, groups = {cracky=2, crumbly=2, choppy=2}, diff --git a/power/power_terminal.lua b/power/power_terminal.lua index b9653e9..50b24b6 100644 --- a/power/power_terminal.lua +++ b/power/power_terminal.lua @@ -209,7 +209,7 @@ minetest.register_node("techage:power_terminal", { paramtype2 = "facedir", paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, on_rotate = screwdriver.disallow, sunlight_propagates = true, is_ground_content = false, diff --git a/power/power_terminal2.lua b/power/power_terminal2.lua index 990ee57..8b054f7 100644 --- a/power/power_terminal2.lua +++ b/power/power_terminal2.lua @@ -555,7 +555,7 @@ minetest.register_node("techage:ta3_power_terminal", { paramtype2 = "facedir", paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, on_rotate = screwdriver.disallow, sunlight_propagates = true, is_ground_content = false, diff --git a/power/powerswitch.lua b/power/powerswitch.lua index 4efba87..0b55363 100644 --- a/power/powerswitch.lua +++ b/power/powerswitch.lua @@ -114,7 +114,7 @@ minetest.register_node("techage:powerswitch", { on_rotate = screwdriver.disallow, paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, paramtype2 = "wallmounted", groups = {choppy=2, cracky=2, crumbly=2}, @@ -146,7 +146,7 @@ minetest.register_node("techage:powerswitch_on", { drop = "techage:powerswitch", on_rotate = screwdriver.disallow, paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, paramtype2 = "wallmounted", groups = {choppy=2, cracky=2, crumbly=2, not_in_creative_inventory = 1}, @@ -186,7 +186,7 @@ minetest.register_node("techage:powerswitchsmall", { on_rotate = screwdriver.disallow, paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, paramtype2 = "wallmounted", groups = {choppy=2, cracky=2, crumbly=2}, @@ -218,7 +218,7 @@ minetest.register_node("techage:powerswitchsmall_on", { drop = "techage:powerswitchsmall", on_rotate = screwdriver.disallow, paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, paramtype2 = "wallmounted", groups = {choppy=2, cracky=2, crumbly=2, not_in_creative_inventory = 1}, diff --git a/power/powerswitchbox.lua b/power/powerswitchbox.lua index 7ed5e2f..1d63318 100644 --- a/power/powerswitchbox.lua +++ b/power/powerswitchbox.lua @@ -54,7 +54,7 @@ minetest.register_node("techage:powerswitch_box", { end, paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, on_rotate = screwdriver.disallow, -- important! paramtype2 = "facedir", diff --git a/power/steam_pipe.lua b/power/steam_pipe.lua index 894f117..e667255 100644 --- a/power/steam_pipe.lua +++ b/power/steam_pipe.lua @@ -63,7 +63,7 @@ minetest.register_node("techage:steam_pipeS", { }, on_rotate = screwdriver.disallow, -- important! paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, is_ground_content = false, groups = {crumbly=3, cracky=3, snappy=3}, @@ -96,7 +96,7 @@ minetest.register_node("techage:steam_pipeA", { }, on_rotate = screwdriver.disallow, -- important! paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, is_ground_content = false, groups = {crumbly=3, cracky=3, snappy=3, not_in_creative_inventory=1}, diff --git a/power/ta4_cable.lua b/power/ta4_cable.lua index 37243bf..fd1d0cb 100644 --- a/power/ta4_cable.lua +++ b/power/ta4_cable.lua @@ -76,7 +76,7 @@ minetest.register_node("techage:ta4_power_cableS", { }, on_rotate = screwdriver.disallow, -- important! paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, is_ground_content = false, groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 3}, @@ -110,7 +110,7 @@ minetest.register_node("techage:ta4_power_cableA", { }, on_rotate = screwdriver.disallow, -- important! paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, is_ground_content = false, groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 3, not_in_creative_inventory = 1}, @@ -161,7 +161,7 @@ minetest.register_node("techage:ta4_power_box", { on_rotate = screwdriver.disallow, -- important! paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, is_ground_content = false, groups = {cracky=2, crumbly=2, choppy=2}, diff --git a/solar/minicell.lua b/solar/minicell.lua index 7d16f25..bd3713f 100644 --- a/solar/minicell.lua +++ b/solar/minicell.lua @@ -109,7 +109,7 @@ minetest.register_node("techage:ta4_solar_minicell", { paramtype2 = "facedir", groups = {cracky=2, crumbly=2, choppy=2}, is_ground_content = false, - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, after_place_node = after_place_node, after_dig_node = after_dig_node, diff --git a/solar/solarcell.lua b/solar/solarcell.lua index 9c9b8b7..e303f90 100644 --- a/solar/solarcell.lua +++ b/solar/solarcell.lua @@ -133,7 +133,7 @@ minetest.register_node("techage:ta4_solar_module", { return S("power").." = "..power..", "..S("light").." = "..light end, paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, paramtype2 = "facedir", on_rotate = screwdriver.disallow, groups = {cracky=2, crumbly=2, choppy=2}, @@ -173,7 +173,7 @@ minetest.register_node("techage:ta4_solar_carrier", { networks = net_def1, paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, paramtype2 = "facedir", on_rotate = screwdriver.disallow, groups = {cracky=2, crumbly=2, choppy=2}, @@ -213,7 +213,7 @@ minetest.register_node("techage:ta4_solar_carrierB", { networks = net_def2, paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, paramtype2 = "facedir", on_rotate = screwdriver.disallow, groups = {cracky=2, crumbly=2, choppy=2}, @@ -242,7 +242,7 @@ minetest.register_node("techage:ta4_solar_carrierT", { }, paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, paramtype2 = "facedir", groups = {cracky=2, crumbly=2, choppy=2}, is_ground_content = false, diff --git a/wind_turbine/signallamp.lua b/wind_turbine/signallamp.lua index b13d7ed..a1be480 100644 --- a/wind_turbine/signallamp.lua +++ b/wind_turbine/signallamp.lua @@ -52,7 +52,7 @@ minetest.register_node("techage:rotor_signal_lamp_off", { end, paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, paramtype2 = "glasslikeliquidlevel", sunlight_propagates = true, sounds = default.node_sound_glass_defaults(), @@ -78,7 +78,7 @@ minetest.register_node("techage:rotor_signal_lamp_on", { end, paramtype = "light", - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, light_source = 8, paramtype2 = "glasslikeliquidlevel", sunlight_propagates = true,