2019-11-17 02:08:10 +03:00
|
|
|
--[[
|
|
|
|
|
|
|
|
TechAge
|
|
|
|
=======
|
|
|
|
|
|
|
|
Copyright (C) 2019 Joachim Stolberg
|
|
|
|
|
2020-10-19 20:09:17 +03:00
|
|
|
AGPL v3
|
2019-11-17 02:08:10 +03:00
|
|
|
See LICENSE.txt for more information
|
2022-01-03 23:40:31 +03:00
|
|
|
|
2019-11-17 02:08:10 +03:00
|
|
|
Barrel/Liquid/Canister/Water
|
|
|
|
|
|
|
|
]]--
|
|
|
|
|
|
|
|
local S = techage.S
|
|
|
|
|
|
|
|
minetest.register_craftitem("techage:water", {
|
|
|
|
description = S("Water"),
|
|
|
|
inventory_image = "techage_liquid2_inv.png^[colorize:#0b6eca:120^techage_liquid1_inv.png",
|
|
|
|
groups = {not_in_creative_inventory=1},
|
2022-01-03 23:40:31 +03:00
|
|
|
|
2019-11-17 02:08:10 +03:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("techage:river_water", {
|
|
|
|
description = S("Water"),
|
|
|
|
inventory_image = "techage_liquid2_inv.png^[colorize:#189dc3:120^techage_liquid1_inv.png",
|
|
|
|
groups = {not_in_creative_inventory=1},
|
2022-01-03 23:40:31 +03:00
|
|
|
|
2019-11-17 02:08:10 +03:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("techage:barrel_water", {
|
|
|
|
description = S("Water Barrel"),
|
|
|
|
inventory_image = "techage_barrel_inv.png^[colorize:#0b6eca:120^techage_symbol_liquid.png",
|
|
|
|
stack_max = 1,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("techage:barrel_river_water", {
|
|
|
|
description = S("River Water Barrel"),
|
|
|
|
inventory_image = "techage_barrel_inv.png^[colorize:#189dc3:120^techage_symbol_liquid.png",
|
|
|
|
stack_max = 1,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("techage:liquid", {
|
|
|
|
description = S("empty"),
|
|
|
|
inventory_image = "techage_liquid2_inv.png^[colorize:#BFBFBF:180^techage_liquid1_inv.png",
|
|
|
|
groups = {not_in_creative_inventory=1},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("techage:ta3_barrel_empty", {
|
|
|
|
description = S("TA Empty Barrel"),
|
|
|
|
inventory_image = "techage_barrel_inv.png^[colorize:#BFBFBF:180",
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("techage:ta3_canister_empty", {
|
|
|
|
description = S("TA3 Canister"),
|
|
|
|
inventory_image = "techage_canister_filling.png^[colorize:#BFBFBF:180^techage_canister_frame.png",
|
|
|
|
})
|
|
|
|
|
2020-01-26 01:15:44 +03:00
|
|
|
minetest.register_craftitem("techage:ta3_cylinder_small", {
|
|
|
|
description = S("Gas Cylinder Small"),
|
|
|
|
inventory_image = "techage_gas_cylinder_small.png^[colorize:#4D7481:100",
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("techage:ta3_cylinder_large", {
|
|
|
|
description = S("Gas Cylinder Large"),
|
|
|
|
inventory_image = "techage_gas_cylinder_large.png^[colorize:#4D7481:100",
|
|
|
|
})
|
|
|
|
|
2019-11-17 02:08:10 +03:00
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'techage:ta3_barrel_empty 6',
|
|
|
|
recipe = {
|
|
|
|
{'techage:iron_ingot', 'techage:iron_ingot', 'techage:iron_ingot'},
|
|
|
|
{'techage:iron_ingot', '', 'techage:iron_ingot'},
|
|
|
|
{'techage:iron_ingot', 'techage:iron_ingot', 'techage:iron_ingot'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'techage:ta3_canister_empty 6',
|
|
|
|
recipe = {
|
|
|
|
{'basic_materials:plastic_sheet', 'basic_materials:plastic_sheet', 'basic_materials:plastic_sheet'},
|
|
|
|
{'basic_materials:plastic_sheet', '', 'basic_materials:plastic_sheet'},
|
|
|
|
{'basic_materials:plastic_sheet', 'basic_materials:plastic_sheet', 'basic_materials:plastic_sheet'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2020-01-26 01:15:44 +03:00
|
|
|
minetest.register_craft({
|
|
|
|
output = 'techage:ta3_cylinder_small 8',
|
|
|
|
recipe = {
|
|
|
|
{'', 'techage:iron_ingot', ''},
|
|
|
|
{'techage:iron_ingot', '', 'techage:iron_ingot'},
|
|
|
|
{'techage:iron_ingot', 'techage:iron_ingot', 'techage:iron_ingot'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'techage:ta3_cylinder_large',
|
|
|
|
recipe = {
|
|
|
|
{'', 'techage:ta3_cylinder_small', ''},
|
|
|
|
{'', 'techage:ta3_cylinder_small', ''},
|
|
|
|
{'', 'techage:ta3_cylinder_small', ''},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-11-17 02:08:10 +03:00
|
|
|
techage.register_liquid("bucket:bucket_water", "bucket:bucket_empty", 1, "techage:water")
|
|
|
|
techage.register_liquid("bucket:bucket_river_water", "bucket:bucket_empty", 1, "techage:river_water")
|
|
|
|
|
|
|
|
techage.register_liquid("techage:barrel_water", "techage:ta3_barrel_empty", 10, "techage:water")
|
|
|
|
techage.register_liquid("techage:barrel_river_water", "techage:ta3_barrel_empty", 10, "techage:river_water")
|
|
|
|
|
2022-01-04 21:40:27 +03:00
|
|
|
techage.register_liquid("bucket:bucket_lava", "bucket:bucket_empty", 1, "default:lava_source")
|