elepower/elepower_farming/fluids.lua

86 lines
2.9 KiB
Lua
Raw Normal View History

2018-06-19 12:48:57 +00:00
-- Tree Sap
2019-01-27 16:41:49 +00:00
ele.helpers.register_liquid("tree_sap", {
description = "Tree Sap",
tiles = {"elefarming_tree_sap.png"},
special_tiles = {"elefarming_tree_sap.png", "elefarming_tree_sap.png"},
use_texture_alpha = "blend",
2019-01-27 16:41:49 +00:00
liquid_viscosity = 7,
2018-06-19 12:48:57 +00:00
post_effect_color = {a = 103, r = 84, g = 34, b = 0},
2019-01-27 16:41:49 +00:00
groups = {tree_sap = 3, liquid = 3, raw_bio = 1, tree_fluid = 1},
2018-06-19 12:48:57 +00:00
})
2018-06-19 18:08:28 +00:00
-- Tree Resin
2018-06-19 12:48:57 +00:00
2019-01-27 16:41:49 +00:00
ele.helpers.register_liquid("resin", {
description = "Resin",
tiles = {"elefarming_tree_sap.png"},
special_tiles = {"elefarming_tree_sap.png", "elefarming_tree_sap.png"},
use_texture_alpha = "blend",
2019-01-27 16:41:49 +00:00
liquid_viscosity = 8,
2018-06-19 18:08:28 +00:00
post_effect_color = {a = 103, r = 84, g = 34, b = 0},
2019-01-27 16:41:49 +00:00
groups = {resin = 3, liquid = 3, raw_bio = 1, tree_fluid = 1},
2018-06-19 12:48:57 +00:00
})
2018-06-19 18:08:28 +00:00
-- Biomass
2018-06-19 12:48:57 +00:00
2019-01-27 16:41:49 +00:00
ele.helpers.register_liquid("biomass", {
description = "Biomass",
tiles = {"elefarming_biomass.png"},
special_tiles = {"elefarming_biomass.png", "elefarming_biomass.png"},
use_texture_alpha = "blend",
2019-01-27 16:41:49 +00:00
liquid_viscosity = 7,
2018-06-19 18:08:28 +00:00
post_effect_color = {a = 103, r = 0, g = 42, b = 0},
2019-01-27 16:41:49 +00:00
groups = {biomass = 3, liquid = 3},
2018-06-19 12:48:57 +00:00
})
-- Biofuel
2019-01-27 16:41:49 +00:00
ele.helpers.register_liquid("biofuel", {
description = "Biofuel",
tiles = {"elefarming_biofuel.png"},
special_tiles = {"elefarming_biofuel.png", "elefarming_biofuel.png"},
use_texture_alpha = "blend",
2019-01-27 16:41:49 +00:00
liquid_viscosity = 7,
2018-06-19 12:48:57 +00:00
post_effect_color = {a = 103, r = 255, g = 163, b = 0},
2019-01-27 16:41:49 +00:00
groups = {biofuel = 3, liquid = 3},
2018-06-19 12:48:57 +00:00
})
-- Sludge
2019-01-27 16:41:49 +00:00
ele.helpers.register_liquid("sludge", {
description = "Sludge",
tiles = {"elefarming_tar.png"},
special_tiles = {"elefarming_tar.png", "elefarming_tar.png"},
liquid_viscosity = 8,
2018-06-19 12:48:57 +00:00
post_effect_color = {a = 50, r = 0, g = 0, b = 0},
2019-01-27 16:41:49 +00:00
groups = {sludge = 3, liquid = 3},
2018-06-19 12:48:57 +00:00
})
if minetest.get_modpath("bucket") ~= nil then
bucket.register_liquid("elepower_farming:tree_sap_source", "elepower_farming:tree_sap_flowing",
2018-06-20 14:09:28 +00:00
"elepower_farming:bucket_tree_sap", "#411400", "Tree Sap Bucket")
bucket.register_liquid("elepower_farming:resin_source", "elepower_farming:resin_flowing",
2018-06-20 14:09:28 +00:00
"elepower_farming:bucket_resin", "#411401", "Resin Bucket")
bucket.register_liquid("elepower_farming:biomass_source", "elepower_farming:biomass_flowing",
2018-06-20 14:09:28 +00:00
"elepower_farming:bucket_biomass", "#002c01", "Biomass Bucket")
bucket.register_liquid("elepower_farming:biofuel_source", "elepower_farming:biofuel_flowing",
2018-06-20 14:09:28 +00:00
"elepower_farming:bucket_biofuel", "#762700", "Biofuel Bucket")
bucket.register_liquid("elepower_farming:sludge_source", "elepower_farming:sludge_flowing",
2018-06-20 14:09:28 +00:00
"elepower_farming:bucket_sludge", "#121212", "Sludge Bucket")
2018-06-21 10:14:12 +00:00
fluid_tanks.register_tank(":elepower_dynamics:portable_tank", {
description = "Portable Tank",
capacity = 8000,
accepts = true,
tiles = {
"elepower_tank_base.png", "elepower_tank_side.png", "elepower_tank_base.png^elepower_power_port.png",
}
})
end