2019-11-10 01:36:28 +03:00
|
|
|
--[[
|
|
|
|
|
|
|
|
TechAge
|
|
|
|
=======
|
|
|
|
|
|
|
|
Copyright (C) 2019 Joachim Stolberg
|
|
|
|
|
2020-10-19 20:09:17 +03:00
|
|
|
AGPL v3
|
2019-11-10 01:36:28 +03:00
|
|
|
See LICENSE.txt for more information
|
|
|
|
|
2021-12-28 16:16:47 +03:00
|
|
|
TA3 Petroleum types: bitumen, fueloil, naphtha, gasoline, isobutane, gas (propan)
|
2022-01-03 23:40:31 +03:00
|
|
|
|
2019-11-10 01:36:28 +03:00
|
|
|
]]--
|
|
|
|
|
|
|
|
local S = techage.S
|
|
|
|
|
|
|
|
|
|
|
|
minetest.register_craftitem("techage:bitumen", {
|
|
|
|
description = S("TA3 Bitumen"),
|
2019-11-17 02:08:10 +03:00
|
|
|
inventory_image = "techage_liquid2_inv.png^[colorize:#000000",
|
2020-08-30 20:16:32 +03:00
|
|
|
groups = {ta_liquid = 1},
|
2019-11-10 01:36:28 +03:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("techage:fueloil", {
|
|
|
|
description = S("TA3 Fuel Oil"),
|
2019-11-17 16:52:59 +03:00
|
|
|
inventory_image = "techage_liquid2_inv.png^[colorize:#7E5D0A:180^techage_liquid1_inv.png",
|
2020-08-30 20:16:32 +03:00
|
|
|
groups = {ta_liquid = 1},
|
2019-11-10 01:36:28 +03:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("techage:naphtha", {
|
|
|
|
description = S("TA3 Naphtha"),
|
2019-11-17 16:52:59 +03:00
|
|
|
inventory_image = "techage_liquid2_inv.png^[colorize:#AAA820:180^techage_liquid1_inv.png",
|
2020-08-30 20:16:32 +03:00
|
|
|
groups = {ta_liquid = 1},
|
2019-11-10 01:36:28 +03:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("techage:gasoline", {
|
|
|
|
description = S("TA3 Gasoline"),
|
2019-11-17 16:52:59 +03:00
|
|
|
inventory_image = "techage_liquid2_inv.png^[colorize:#EEFC52:180^techage_liquid1_inv.png",
|
2020-08-30 20:16:32 +03:00
|
|
|
groups = {ta_liquid = 1},
|
2019-11-10 01:36:28 +03:00
|
|
|
})
|
|
|
|
|
2021-12-28 16:16:47 +03:00
|
|
|
minetest.register_craftitem("techage:isobutane", {
|
|
|
|
description = S("TA4 Isobutane"),
|
|
|
|
inventory_image = "techage_isobutane_inv.png",
|
|
|
|
groups = {ta_liquid = 1},
|
|
|
|
})
|
|
|
|
|
2019-11-10 01:36:28 +03:00
|
|
|
minetest.register_craftitem("techage:gas", {
|
2020-02-18 00:46:29 +03:00
|
|
|
description = S("TA3 Propane"),
|
2019-11-10 01:36:28 +03:00
|
|
|
inventory_image = "techage_gas_inv.png",
|
2020-08-30 20:16:32 +03:00
|
|
|
groups = {ta_liquid = 1},
|
2019-11-10 01:36:28 +03:00
|
|
|
})
|
|
|
|
|
2020-01-26 01:15:44 +03:00
|
|
|
minetest.register_craftitem("techage:ta3_cylinder_small_gas", {
|
2020-02-18 00:46:29 +03:00
|
|
|
description = S("Propane Cylinder Small"),
|
2020-01-26 01:15:44 +03:00
|
|
|
inventory_image = "techage_gas_cylinder_small.png^[colorize:#e51818:120",
|
|
|
|
stack_max = 1,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("techage:ta3_cylinder_large_gas", {
|
2020-02-18 00:46:29 +03:00
|
|
|
description = S("Propane Cylinder Large"),
|
2020-01-26 01:15:44 +03:00
|
|
|
inventory_image = "techage_gas_cylinder_large.png^[colorize:#e51818:120",
|
|
|
|
stack_max = 1,
|
|
|
|
})
|
2019-11-10 01:36:28 +03:00
|
|
|
|
2021-12-28 16:16:47 +03:00
|
|
|
minetest.register_craftitem("techage:ta4_cylinder_small_isobutane", {
|
|
|
|
description = S("Isobutane Cylinder Small"),
|
|
|
|
inventory_image = "techage_gas_cylinder_small.png^[colorize:#18d618:120",
|
|
|
|
stack_max = 1,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("techage:ta4_cylinder_large_isobutane", {
|
|
|
|
description = S("Isobutane Cylinder Large"),
|
|
|
|
inventory_image = "techage_gas_cylinder_large.png^[colorize:#18d618:120",
|
|
|
|
stack_max = 1,
|
|
|
|
})
|
|
|
|
|
2019-11-10 01:36:28 +03:00
|
|
|
minetest.register_craftitem("techage:ta3_barrel_bitumen", {
|
|
|
|
description = S("TA3 Bitumen Barrel"),
|
2019-11-17 02:08:10 +03:00
|
|
|
inventory_image = "techage_barrel_inv.png^[colorize:#000000:120",
|
2019-11-10 01:36:28 +03:00
|
|
|
stack_max = 1,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("techage:ta3_barrel_fueloil", {
|
|
|
|
description = S("TA3 Fuel Oil Barrel"),
|
2019-11-17 16:52:59 +03:00
|
|
|
inventory_image = "techage_barrel_inv.png^[colorize:#7E5D0A:180^techage_symbol_liquid.png",
|
2019-11-10 01:36:28 +03:00
|
|
|
stack_max = 1,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("techage:ta3_barrel_naphtha", {
|
|
|
|
description = S("TA3 Naphtha Barrel"),
|
2019-11-17 16:52:59 +03:00
|
|
|
inventory_image = "techage_barrel_inv.png^[colorize:#AAA820:180^techage_symbol_liquid.png",
|
2019-11-10 01:36:28 +03:00
|
|
|
stack_max = 1,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("techage:ta3_barrel_gasoline", {
|
|
|
|
description = S("TA3 Gasoline Barrel"),
|
2019-11-17 16:52:59 +03:00
|
|
|
inventory_image = "techage_barrel_inv.png^[colorize:#EEFC52:180^techage_symbol_liquid.png",
|
2019-11-10 01:36:28 +03:00
|
|
|
stack_max = 1,
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
minetest.register_craftitem("techage:ta3_canister_bitumen", {
|
|
|
|
description = S("TA3 Bitumen Canister"),
|
2019-11-17 16:52:59 +03:00
|
|
|
inventory_image = "techage_canister_filling.png^[colorize:#000000:180^techage_canister_frame.png",
|
2019-11-10 01:36:28 +03:00
|
|
|
stack_max = 1,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("techage:ta3_canister_fueloil", {
|
|
|
|
description = S("TA3 Fuel Oil Canister"),
|
2019-11-17 16:52:59 +03:00
|
|
|
inventory_image = "techage_canister_filling.png^[colorize:#7E5D0A:180^techage_canister_frame.png^techage_symbol_liquid.png",
|
2019-11-10 01:36:28 +03:00
|
|
|
stack_max = 1,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("techage:ta3_canister_naphtha", {
|
|
|
|
description = S("TA3 Naphtha Canister"),
|
2019-11-17 16:52:59 +03:00
|
|
|
inventory_image = "techage_canister_filling.png^[colorize:#AAA820:180^techage_canister_frame.png^techage_symbol_liquid.png",
|
2019-11-10 01:36:28 +03:00
|
|
|
stack_max = 1,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("techage:ta3_canister_gasoline", {
|
|
|
|
description = S("TA3 Gasoline Canister"),
|
2019-11-17 16:52:59 +03:00
|
|
|
inventory_image = "techage_canister_filling.png^[colorize:#EEFC52^techage_canister_frame.png^techage_symbol_liquid.png",
|
2019-11-10 01:36:28 +03:00
|
|
|
stack_max = 1,
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "techage:gas",
|
|
|
|
burntime = 30,
|
|
|
|
})
|
|
|
|
|
2021-12-28 16:16:47 +03:00
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "techage:isobutane",
|
|
|
|
burntime = 40,
|
|
|
|
})
|
|
|
|
|
2019-11-10 01:36:28 +03:00
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "techage:gasoline",
|
|
|
|
burntime = 50,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "techage:naphtha",
|
|
|
|
burntime = 45,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "techage:fueloil",
|
|
|
|
burntime = 40,
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
techage.register_liquid("techage:ta3_barrel_oil", "techage:ta3_barrel_empty", 10, "techage:oil_source")
|
|
|
|
techage.register_liquid("techage:ta3_barrel_bitumen", "techage:ta3_barrel_empty", 10, "techage:bitumen")
|
|
|
|
techage.register_liquid("techage:ta3_barrel_fueloil", "techage:ta3_barrel_empty", 10, "techage:fueloil")
|
|
|
|
techage.register_liquid("techage:ta3_barrel_naphtha", "techage:ta3_barrel_empty", 10, "techage:naphtha")
|
|
|
|
techage.register_liquid("techage:ta3_barrel_gasoline", "techage:ta3_barrel_empty", 10, "techage:gasoline")
|
2020-01-26 01:15:44 +03:00
|
|
|
techage.register_liquid("techage:ta3_cylinder_large_gas", "techage:ta3_cylinder_large", 6, "techage:gas")
|
2021-12-31 19:54:31 +03:00
|
|
|
techage.register_liquid("techage:ta4_cylinder_large_isobutane", "techage:ta3_cylinder_large", 6, "techage:isobutane")
|
2019-11-10 01:36:28 +03:00
|
|
|
|
|
|
|
techage.register_liquid("techage:ta3_canister_oil", "techage:ta3_canister_empty", 1, "techage:oil_source")
|
|
|
|
techage.register_liquid("techage:ta3_canister_bitumen", "techage:ta3_canister_empty", 1, "techage:bitumen")
|
|
|
|
techage.register_liquid("techage:ta3_canister_fueloil", "techage:ta3_canister_empty", 1, "techage:fueloil")
|
|
|
|
techage.register_liquid("techage:ta3_canister_naphtha", "techage:ta3_canister_empty", 1, "techage:naphtha")
|
|
|
|
techage.register_liquid("techage:ta3_canister_gasoline", "techage:ta3_canister_empty", 1, "techage:gasoline")
|
2020-01-26 01:15:44 +03:00
|
|
|
techage.register_liquid("techage:ta3_cylinder_small_gas", "techage:ta3_cylinder_small", 1, "techage:gas")
|
2021-12-31 19:54:31 +03:00
|
|
|
techage.register_liquid("techage:ta4_cylinder_small_isobutane", "techage:ta3_cylinder_small", 1, "techage:isobutane")
|