From b9ca4fc778eb12159bcc54e0edbe53bcd836ef7f Mon Sep 17 00:00:00 2001 From: Sirrobzeroone <44497598+sirrobzeroone@users.noreply.github.com> Date: Thu, 10 Jun 2021 20:31:53 +1000 Subject: [PATCH] Liquid "alpha" updated to blend The liquids don't look like liquids so somethings still a bit off but at least the warnings are gone --- elepower_dynamics/fluids.lua | 4 ++-- elepower_dynamics/nodes.lua | 2 +- elepower_farming/fluids.lua | 8 ++++---- elepower_machines/machines/grindstone.lua | 1 + elepower_machines/machines/pump.lua | 1 + elepower_nuclear/fluids.lua | 7 ++++--- elepower_solar/register.lua | 3 ++- elepower_thermal/fluids.lua | 3 ++- elepower_wireless/machines/dialler.lua | 1 + elepower_wireless/machines/matter_receiver.lua | 1 + elepower_wireless/machines/matter_transmitter.lua | 1 + elepower_wireless/machines/tesseract.lua | 1 + 12 files changed, 21 insertions(+), 12 deletions(-) diff --git a/elepower_dynamics/fluids.lua b/elepower_dynamics/fluids.lua index 5dd85fc..b3e7783 100644 --- a/elepower_dynamics/fluids.lua +++ b/elepower_dynamics/fluids.lua @@ -5,7 +5,7 @@ ele.helpers.register_liquid("etching_acid", { description = "Etching Acid", tiles = {"elepower_etching_acid.png"}, special_tiles = {"elepower_etching_acid.png", "elepower_etching_acid.png"}, - alpha = 200, + use_texture_alpha = "blend", liquid_viscosity = 4, damage_per_second = 4, post_effect_color = {a = 103, r = 65, g = 8, b = 0}, @@ -21,7 +21,7 @@ ele.helpers.register_liquid("lithium", { special_tiles = {"elepower_lithium.png", "elepower_lithium.png"}, liquid_viscosity = 4, damage_per_second = 1, - alpha = 200, + use_texture_alpha = "blend", gas_form = "elepower_dynamics:lithium_gas", post_effect_color = {a = 103, r = 229, g = 227, b = 196}, groups = {lithium = 1, liquid = 3}, diff --git a/elepower_dynamics/nodes.lua b/elepower_dynamics/nodes.lua index f27ee68..8c7174e 100644 --- a/elepower_dynamics/nodes.lua +++ b/elepower_dynamics/nodes.lua @@ -61,7 +61,7 @@ minetest.register_node("elepower_dynamics:hardened_glass", { paramtype2 = "glasslikeliquidlevel", is_ground_content = false, sunlight_propagates = false, - use_texture_alpha = true, + use_texture_alpha = "clip", sounds = default.node_sound_glass_defaults(), groups = {cracky = 3}, }) diff --git a/elepower_farming/fluids.lua b/elepower_farming/fluids.lua index 9270097..3635b3a 100644 --- a/elepower_farming/fluids.lua +++ b/elepower_farming/fluids.lua @@ -5,7 +5,7 @@ ele.helpers.register_liquid("tree_sap", { description = "Tree Sap", tiles = {"elefarming_tree_sap.png"}, special_tiles = {"elefarming_tree_sap.png", "elefarming_tree_sap.png"}, - alpha = 200, + use_texture_alpha = "blend", liquid_viscosity = 7, post_effect_color = {a = 103, r = 84, g = 34, b = 0}, groups = {tree_sap = 3, liquid = 3, raw_bio = 1, tree_fluid = 1}, @@ -17,7 +17,7 @@ ele.helpers.register_liquid("resin", { description = "Resin", tiles = {"elefarming_tree_sap.png"}, special_tiles = {"elefarming_tree_sap.png", "elefarming_tree_sap.png"}, - alpha = 200, + use_texture_alpha = "blend", liquid_viscosity = 8, post_effect_color = {a = 103, r = 84, g = 34, b = 0}, groups = {resin = 3, liquid = 3, raw_bio = 1, tree_fluid = 1}, @@ -29,7 +29,7 @@ ele.helpers.register_liquid("biomass", { description = "Biomass", tiles = {"elefarming_biomass.png"}, special_tiles = {"elefarming_biomass.png", "elefarming_biomass.png"}, - alpha = 200, + use_texture_alpha = "blend", liquid_viscosity = 7, post_effect_color = {a = 103, r = 0, g = 42, b = 0}, groups = {biomass = 3, liquid = 3}, @@ -41,7 +41,7 @@ ele.helpers.register_liquid("biofuel", { description = "Biofuel", tiles = {"elefarming_biofuel.png"}, special_tiles = {"elefarming_biofuel.png", "elefarming_biofuel.png"}, - alpha = 200, + use_texture_alpha = "blend", liquid_viscosity = 7, post_effect_color = {a = 103, r = 255, g = 163, b = 0}, groups = {biofuel = 3, liquid = 3}, diff --git a/elepower_machines/machines/grindstone.lua b/elepower_machines/machines/grindstone.lua index e34a571..f25b58b 100644 --- a/elepower_machines/machines/grindstone.lua +++ b/elepower_machines/machines/grindstone.lua @@ -155,6 +155,7 @@ minetest.register_node("elepower_machines:crank", { description = "Hand Crank\nPlace on Grindstone and hold Right-Click", groups = {choppy = 1, oddly_breakable_by_hand = 1}, tiles = {"default_wood.png"}, + use_texture_alpha = "clip", drawtype = "nodebox", paramtype = "light", sunlight_propagates = true, diff --git a/elepower_machines/machines/pump.lua b/elepower_machines/machines/pump.lua index 6fca8d4..b2da100 100644 --- a/elepower_machines/machines/pump.lua +++ b/elepower_machines/machines/pump.lua @@ -249,6 +249,7 @@ minetest.register_entity("elepower_machines:pump_tube", { mesh = "elepower_pump_tube.obj", physical = false, textures = {"elepower_pump_tube.png"} + }, timer = 0, pump = {x=0,y=0,z=0}, diff --git a/elepower_nuclear/fluids.lua b/elepower_nuclear/fluids.lua index d2213bf..e4e0282 100644 --- a/elepower_nuclear/fluids.lua +++ b/elepower_nuclear/fluids.lua @@ -77,7 +77,7 @@ ele.helpers.register_liquid("heavy_water", { }, }, }, - alpha = 160, + use_texture_alpha = "blend", liquid_viscosity = 4, post_effect_color = {a = 103, r = 13, g = 69, b = 121}, groups = {heavy_water = 3, liquid = 3, puts_out_fire = 1, cools_lava = 1}, @@ -89,7 +89,7 @@ ele.helpers.register_liquid("coolant", { description = "Cold Coolant", tiles = {"elenuclear_cold_coolant.png"}, special_tiles = {"elenuclear_cold_coolant.png", "elenuclear_cold_coolant.png"}, - alpha = 200, + use_texture_alpha = "blend", liquid_viscosity = 2, post_effect_color = {a = 128, r = 36, g = 150, b = 255}, groups = {liquid = 3, coolant = 1}, @@ -101,7 +101,7 @@ ele.helpers.register_liquid("hot_coolant", { description = "Hot Coolant", tiles = {"elenuclear_hot_coolant.png"}, special_tiles = {"elenuclear_hot_coolant.png", "elenuclear_hot_coolant.png"}, - alpha = 200, + use_texture_alpha = "blend", liquid_viscosity = 2, post_effect_color = {a = 128, r = 136, g = 100, b = 158}, groups = {liquid = 3, coolant = 1, hot = 1}, @@ -169,6 +169,7 @@ if minetest.get_modpath("bucket") ~= nil then tiles = { "elepower_tank_base.png", "elepower_tank_side.png", "elepower_tank_base.png^elepower_power_port.png", } + }) end diff --git a/elepower_solar/register.lua b/elepower_solar/register.lua index 1b20a7d..98711ad 100644 --- a/elepower_solar/register.lua +++ b/elepower_solar/register.lua @@ -10,5 +10,6 @@ elesolar.register_solar_generator("elepower_solar:solar_generator", { }, tiles = { "elesolar_simple_top.png", "elepower_machine_top.png^elepower_power_port.png", "elepower_machine_top.png" - } + }, + use_texture_alpha = "clip" }) diff --git a/elepower_thermal/fluids.lua b/elepower_thermal/fluids.lua index a043492..a6309e7 100644 --- a/elepower_thermal/fluids.lua +++ b/elepower_thermal/fluids.lua @@ -6,7 +6,7 @@ ele.helpers.register_liquid("brine", { drawtype = "liquid", tiles = {"elenuclear_brine.png"}, special_tiles = {"elenuclear_brine.png", "elenuclear_brine.png"}, - alpha = 240, + use_texture_alpha = "blend", liquid_viscosity = 7, post_effect_color = {a = 200, r = 215, g = 221, b = 187}, groups = {brine = 3, saline = 1, liquid = 3, puts_out_fire = 1, cools_lava = 1}, @@ -23,5 +23,6 @@ if minetest.get_modpath("bucket") ~= nil then tiles = { "elepower_tank_base.png", "elepower_tank_side.png", "elepower_tank_base.png^elepower_power_port.png", } + }) end diff --git a/elepower_wireless/machines/dialler.lua b/elepower_wireless/machines/dialler.lua index 604b27f..a1ca1df 100644 --- a/elepower_wireless/machines/dialler.lua +++ b/elepower_wireless/machines/dialler.lua @@ -150,6 +150,7 @@ ele.register_machine("elepower_wireless:dialler", { "elewireless_device_side.png", "elewireless_device_side.png", "elewireless_dialler.png" }, }, + use_texture_alpha = "clip", groups = {cracky = 1, ele_user = 1, dialler = 1}, ele_capacity = 8000, ele_usage = 120, diff --git a/elepower_wireless/machines/matter_receiver.lua b/elepower_wireless/machines/matter_receiver.lua index 72ed318..f699ec0 100644 --- a/elepower_wireless/machines/matter_receiver.lua +++ b/elepower_wireless/machines/matter_receiver.lua @@ -86,6 +86,7 @@ ele.register_machine("elepower_wireless:matter_receiver", { "elewireless_device_side.png", "elewireless_device_side.png", "elewireless_device_side.png" }, }, + use_texture_alpha = "clip", groups = {cracky = 1, ele_user = 1, matter_receiver = 1}, ele_capacity = 8000, ele_usage = 120, diff --git a/elepower_wireless/machines/matter_transmitter.lua b/elepower_wireless/machines/matter_transmitter.lua index 538909b..d48b635 100644 --- a/elepower_wireless/machines/matter_transmitter.lua +++ b/elepower_wireless/machines/matter_transmitter.lua @@ -93,6 +93,7 @@ ele.register_machine("elepower_wireless:matter_transmitter", { "elewireless_device_side.png", "elewireless_device_side.png", "elewireless_device_side.png" }, }, + use_texture_alpha = "clip", groups = {cracky = 1, ele_user = 1, matter_transmitter = 1}, ele_capacity = 8000, ele_usage = 120, diff --git a/elepower_wireless/machines/tesseract.lua b/elepower_wireless/machines/tesseract.lua index 7cc9484..dae6f43 100644 --- a/elepower_wireless/machines/tesseract.lua +++ b/elepower_wireless/machines/tesseract.lua @@ -4,6 +4,7 @@ minetest.register_node("elepower_wireless:tesseract_frame", { tiles = { "elewireless_tesseract.png", }, + use_texture_alpha = "clip", groups = {cracky = 3,}, drawtype = "nodebox", paramtype = "light",