From 904800abde586337bbb03e5dcbe48170677efbce Mon Sep 17 00:00:00 2001
From: Adrian <github@ardy.io>
Date: Sun, 26 Jan 2020 14:29:44 +0100
Subject: [PATCH] Add river water can (#527)

---
 technic/README.md                            |    5 ++++-
 technic/textures/technic_river_water_can.png |    0 
 technic/tools/cans.lua                       |   18 ++++++++++++++++++
 3 files changed, 22 insertions(+), 1 deletions(-)

diff --git a/technic/README.md b/technic/README.md
index e5adf31..835b442 100644
--- a/technic/README.md
+++ b/technic/README.md
@@ -21,6 +21,9 @@
 sdzen (Elise Staudter) (CC BY-SA 3.0):
   * most of the older 16x16 textures
 
+leftshift (CC BY-SA 3.0):
+  * technic_river_water_can.png
+
 RealBadAngel: (WTFPL)
   * Everything else.
 
@@ -32,4 +35,4 @@
   * technic_hv_nuclear_reactor_siren_danger_loop.ogg
     * Derived from "Nuclear alarm.wav" by Freesound.org user rene___ from <https://freesound.org/people/rene___/sounds/56778/>. Originally licensed under CC0 1.0 <https://creativecommons.org/publicdomain/zero/1.0/>
 
-CC BY-SA 4.0: <https://creativecommons.org/licenses/by-sa/4.0/>
\ No newline at end of file
+CC BY-SA 4.0: <https://creativecommons.org/licenses/by-sa/4.0/>
diff --git a/technic/textures/technic_river_water_can.png b/technic/textures/technic_river_water_can.png
new file mode 100644
index 0000000..d4fd888
--- /dev/null
+++ b/technic/textures/technic_river_water_can.png
Binary files differ
diff --git a/technic/tools/cans.lua b/technic/tools/cans.lua
index f12ec93..369259e 100644
--- a/technic/tools/cans.lua
+++ b/technic/tools/cans.lua
@@ -112,3 +112,21 @@
 		{'technic:zinc_ingot', 'technic:stainless_steel_ingot', 'technic:zinc_ingot'},
 	}
 })
+
+technic.register_can({
+	can_name = 'technic:river_water_can',
+	can_description = S("River Water Can"),
+	can_inventory_image = "technic_river_water_can.png",
+	can_capacity = 16,
+	liquid_source_name = "default:river_water_source",
+	liquid_flowing_name = "default:river_water_flowing",
+})
+
+minetest.register_craft({
+	output = 'technic:river_water_can 1',
+	recipe = {
+		{'technic:zinc_ingot', 'technic:rubber', 'technic:zinc_ingot'},
+		{'default:steel_ingot', '', 'default:steel_ingot'},
+		{'technic:zinc_ingot', 'default:steel_ingot', 'technic:zinc_ingot'},
+	}
+})

--
Gitblit v1.8.0