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
This commit is contained in:
Sirrobzeroone 2021-06-10 20:31:53 +10:00
parent 7cc6a489df
commit b9ca4fc778
12 changed files with 21 additions and 12 deletions

View File

@ -5,7 +5,7 @@ ele.helpers.register_liquid("etching_acid", {
description = "Etching Acid", description = "Etching Acid",
tiles = {"elepower_etching_acid.png"}, tiles = {"elepower_etching_acid.png"},
special_tiles = {"elepower_etching_acid.png", "elepower_etching_acid.png"}, special_tiles = {"elepower_etching_acid.png", "elepower_etching_acid.png"},
alpha = 200, use_texture_alpha = "blend",
liquid_viscosity = 4, liquid_viscosity = 4,
damage_per_second = 4, damage_per_second = 4,
post_effect_color = {a = 103, r = 65, g = 8, b = 0}, 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"}, special_tiles = {"elepower_lithium.png", "elepower_lithium.png"},
liquid_viscosity = 4, liquid_viscosity = 4,
damage_per_second = 1, damage_per_second = 1,
alpha = 200, use_texture_alpha = "blend",
gas_form = "elepower_dynamics:lithium_gas", gas_form = "elepower_dynamics:lithium_gas",
post_effect_color = {a = 103, r = 229, g = 227, b = 196}, post_effect_color = {a = 103, r = 229, g = 227, b = 196},
groups = {lithium = 1, liquid = 3}, groups = {lithium = 1, liquid = 3},

View File

@ -61,7 +61,7 @@ minetest.register_node("elepower_dynamics:hardened_glass", {
paramtype2 = "glasslikeliquidlevel", paramtype2 = "glasslikeliquidlevel",
is_ground_content = false, is_ground_content = false,
sunlight_propagates = false, sunlight_propagates = false,
use_texture_alpha = true, use_texture_alpha = "clip",
sounds = default.node_sound_glass_defaults(), sounds = default.node_sound_glass_defaults(),
groups = {cracky = 3}, groups = {cracky = 3},
}) })

View File

@ -5,7 +5,7 @@ ele.helpers.register_liquid("tree_sap", {
description = "Tree Sap", description = "Tree Sap",
tiles = {"elefarming_tree_sap.png"}, tiles = {"elefarming_tree_sap.png"},
special_tiles = {"elefarming_tree_sap.png", "elefarming_tree_sap.png"}, special_tiles = {"elefarming_tree_sap.png", "elefarming_tree_sap.png"},
alpha = 200, use_texture_alpha = "blend",
liquid_viscosity = 7, liquid_viscosity = 7,
post_effect_color = {a = 103, r = 84, g = 34, b = 0}, post_effect_color = {a = 103, r = 84, g = 34, b = 0},
groups = {tree_sap = 3, liquid = 3, raw_bio = 1, tree_fluid = 1}, groups = {tree_sap = 3, liquid = 3, raw_bio = 1, tree_fluid = 1},
@ -17,7 +17,7 @@ ele.helpers.register_liquid("resin", {
description = "Resin", description = "Resin",
tiles = {"elefarming_tree_sap.png"}, tiles = {"elefarming_tree_sap.png"},
special_tiles = {"elefarming_tree_sap.png", "elefarming_tree_sap.png"}, special_tiles = {"elefarming_tree_sap.png", "elefarming_tree_sap.png"},
alpha = 200, use_texture_alpha = "blend",
liquid_viscosity = 8, liquid_viscosity = 8,
post_effect_color = {a = 103, r = 84, g = 34, b = 0}, post_effect_color = {a = 103, r = 84, g = 34, b = 0},
groups = {resin = 3, liquid = 3, raw_bio = 1, tree_fluid = 1}, groups = {resin = 3, liquid = 3, raw_bio = 1, tree_fluid = 1},
@ -29,7 +29,7 @@ ele.helpers.register_liquid("biomass", {
description = "Biomass", description = "Biomass",
tiles = {"elefarming_biomass.png"}, tiles = {"elefarming_biomass.png"},
special_tiles = {"elefarming_biomass.png", "elefarming_biomass.png"}, special_tiles = {"elefarming_biomass.png", "elefarming_biomass.png"},
alpha = 200, use_texture_alpha = "blend",
liquid_viscosity = 7, liquid_viscosity = 7,
post_effect_color = {a = 103, r = 0, g = 42, b = 0}, post_effect_color = {a = 103, r = 0, g = 42, b = 0},
groups = {biomass = 3, liquid = 3}, groups = {biomass = 3, liquid = 3},
@ -41,7 +41,7 @@ ele.helpers.register_liquid("biofuel", {
description = "Biofuel", description = "Biofuel",
tiles = {"elefarming_biofuel.png"}, tiles = {"elefarming_biofuel.png"},
special_tiles = {"elefarming_biofuel.png", "elefarming_biofuel.png"}, special_tiles = {"elefarming_biofuel.png", "elefarming_biofuel.png"},
alpha = 200, use_texture_alpha = "blend",
liquid_viscosity = 7, liquid_viscosity = 7,
post_effect_color = {a = 103, r = 255, g = 163, b = 0}, post_effect_color = {a = 103, r = 255, g = 163, b = 0},
groups = {biofuel = 3, liquid = 3}, groups = {biofuel = 3, liquid = 3},

View File

@ -155,6 +155,7 @@ minetest.register_node("elepower_machines:crank", {
description = "Hand Crank\nPlace on Grindstone and hold Right-Click", description = "Hand Crank\nPlace on Grindstone and hold Right-Click",
groups = {choppy = 1, oddly_breakable_by_hand = 1}, groups = {choppy = 1, oddly_breakable_by_hand = 1},
tiles = {"default_wood.png"}, tiles = {"default_wood.png"},
use_texture_alpha = "clip",
drawtype = "nodebox", drawtype = "nodebox",
paramtype = "light", paramtype = "light",
sunlight_propagates = true, sunlight_propagates = true,

View File

@ -249,6 +249,7 @@ minetest.register_entity("elepower_machines:pump_tube", {
mesh = "elepower_pump_tube.obj", mesh = "elepower_pump_tube.obj",
physical = false, physical = false,
textures = {"elepower_pump_tube.png"} textures = {"elepower_pump_tube.png"}
}, },
timer = 0, timer = 0,
pump = {x=0,y=0,z=0}, pump = {x=0,y=0,z=0},

View File

@ -77,7 +77,7 @@ ele.helpers.register_liquid("heavy_water", {
}, },
}, },
}, },
alpha = 160, use_texture_alpha = "blend",
liquid_viscosity = 4, liquid_viscosity = 4,
post_effect_color = {a = 103, r = 13, g = 69, b = 121}, post_effect_color = {a = 103, r = 13, g = 69, b = 121},
groups = {heavy_water = 3, liquid = 3, puts_out_fire = 1, cools_lava = 1}, 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", description = "Cold Coolant",
tiles = {"elenuclear_cold_coolant.png"}, tiles = {"elenuclear_cold_coolant.png"},
special_tiles = {"elenuclear_cold_coolant.png", "elenuclear_cold_coolant.png"}, special_tiles = {"elenuclear_cold_coolant.png", "elenuclear_cold_coolant.png"},
alpha = 200, use_texture_alpha = "blend",
liquid_viscosity = 2, liquid_viscosity = 2,
post_effect_color = {a = 128, r = 36, g = 150, b = 255}, post_effect_color = {a = 128, r = 36, g = 150, b = 255},
groups = {liquid = 3, coolant = 1}, groups = {liquid = 3, coolant = 1},
@ -101,7 +101,7 @@ ele.helpers.register_liquid("hot_coolant", {
description = "Hot Coolant", description = "Hot Coolant",
tiles = {"elenuclear_hot_coolant.png"}, tiles = {"elenuclear_hot_coolant.png"},
special_tiles = {"elenuclear_hot_coolant.png", "elenuclear_hot_coolant.png"}, special_tiles = {"elenuclear_hot_coolant.png", "elenuclear_hot_coolant.png"},
alpha = 200, use_texture_alpha = "blend",
liquid_viscosity = 2, liquid_viscosity = 2,
post_effect_color = {a = 128, r = 136, g = 100, b = 158}, post_effect_color = {a = 128, r = 136, g = 100, b = 158},
groups = {liquid = 3, coolant = 1, hot = 1}, groups = {liquid = 3, coolant = 1, hot = 1},
@ -169,6 +169,7 @@ if minetest.get_modpath("bucket") ~= nil then
tiles = { tiles = {
"elepower_tank_base.png", "elepower_tank_side.png", "elepower_tank_base.png^elepower_power_port.png", "elepower_tank_base.png", "elepower_tank_side.png", "elepower_tank_base.png^elepower_power_port.png",
} }
}) })
end end

View File

@ -10,5 +10,6 @@ elesolar.register_solar_generator("elepower_solar:solar_generator", {
}, },
tiles = { tiles = {
"elesolar_simple_top.png", "elepower_machine_top.png^elepower_power_port.png", "elepower_machine_top.png" "elesolar_simple_top.png", "elepower_machine_top.png^elepower_power_port.png", "elepower_machine_top.png"
} },
use_texture_alpha = "clip"
}) })

View File

@ -6,7 +6,7 @@ ele.helpers.register_liquid("brine", {
drawtype = "liquid", drawtype = "liquid",
tiles = {"elenuclear_brine.png"}, tiles = {"elenuclear_brine.png"},
special_tiles = {"elenuclear_brine.png", "elenuclear_brine.png"}, special_tiles = {"elenuclear_brine.png", "elenuclear_brine.png"},
alpha = 240, use_texture_alpha = "blend",
liquid_viscosity = 7, liquid_viscosity = 7,
post_effect_color = {a = 200, r = 215, g = 221, b = 187}, 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}, 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 = { tiles = {
"elepower_tank_base.png", "elepower_tank_side.png", "elepower_tank_base.png^elepower_power_port.png", "elepower_tank_base.png", "elepower_tank_side.png", "elepower_tank_base.png^elepower_power_port.png",
} }
}) })
end end

View File

@ -150,6 +150,7 @@ ele.register_machine("elepower_wireless:dialler", {
"elewireless_device_side.png", "elewireless_device_side.png", "elewireless_dialler.png" "elewireless_device_side.png", "elewireless_device_side.png", "elewireless_dialler.png"
}, },
}, },
use_texture_alpha = "clip",
groups = {cracky = 1, ele_user = 1, dialler = 1}, groups = {cracky = 1, ele_user = 1, dialler = 1},
ele_capacity = 8000, ele_capacity = 8000,
ele_usage = 120, ele_usage = 120,

View File

@ -86,6 +86,7 @@ ele.register_machine("elepower_wireless:matter_receiver", {
"elewireless_device_side.png", "elewireless_device_side.png", "elewireless_device_side.png" "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}, groups = {cracky = 1, ele_user = 1, matter_receiver = 1},
ele_capacity = 8000, ele_capacity = 8000,
ele_usage = 120, ele_usage = 120,

View File

@ -93,6 +93,7 @@ ele.register_machine("elepower_wireless:matter_transmitter", {
"elewireless_device_side.png", "elewireless_device_side.png", "elewireless_device_side.png" "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}, groups = {cracky = 1, ele_user = 1, matter_transmitter = 1},
ele_capacity = 8000, ele_capacity = 8000,
ele_usage = 120, ele_usage = 120,

View File

@ -4,6 +4,7 @@ minetest.register_node("elepower_wireless:tesseract_frame", {
tiles = { tiles = {
"elewireless_tesseract.png", "elewireless_tesseract.png",
}, },
use_texture_alpha = "clip",
groups = {cracky = 3,}, groups = {cracky = 3,},
drawtype = "nodebox", drawtype = "nodebox",
paramtype = "light", paramtype = "light",