Vessels
authorPerttu Ahola <celeron55@gmail.com>
Sun, 2 Sep 2012 21:16:43 +0000 (00:16 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Sun, 2 Sep 2012 21:22:23 +0000 (00:22 +0300)
mods/vessels/README.txt [new file with mode: 0644]
mods/vessels/depends.txt [new file with mode: 0644]
mods/vessels/init.lua [new file with mode: 0644]
mods/vessels/textures/alternates/vessels_drinking_glass.png [new file with mode: 0644]
mods/vessels/textures/alternates/vessels_glass_bottle.png [new file with mode: 0644]
mods/vessels/textures/alternates/vessels_steel_bottle.png [new file with mode: 0644]
mods/vessels/textures/vessels_drinking_glass.png [new file with mode: 0644]
mods/vessels/textures/vessels_glass_bottle.png [new file with mode: 0644]
mods/vessels/textures/vessels_glass_fragments.png [new file with mode: 0644]
mods/vessels/textures/vessels_steel_bottle.png [new file with mode: 0644]

diff --git a/mods/vessels/README.txt b/mods/vessels/README.txt
new file mode 100644 (file)
index 0000000..150b501
--- /dev/null
@@ -0,0 +1,45 @@
+Minetest 0.4 mod: vessels
+==========================
+
+Crafts
+-------
+Glass bottle (yields 10)
+
+   G - G
+   G - G
+   - G -
+
+Drinking Glass (yields 14)
+
+   G - G
+   G - G
+   G G G
+
+Heavy Steel Bottle (yields 5)
+
+   S - S
+   S - S
+   - S -
+
+License of source code:
+-----------------------
+Copyright (C) 2012 Vanessa Ezekowitz
+Version 2012-09-02
+Modifications by Perttu Ahola <celeron55@gmail.com>
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU Lesser General Public License as published by
+the Free Software Foundation; either version 2.1 of the License, or
+(at your option) any later version.
+
+http://www.gnu.org/licenses/lgpl-2.1.html
+
+License of media (textures and sounds)
+--------------------------------------
+WTFPL
+
+Authors of media files
+-----------------------
+Unless specifically noted,
+Copyright (C) 2012 Vanessa Ezekowitz
+
diff --git a/mods/vessels/depends.txt b/mods/vessels/depends.txt
new file mode 100644 (file)
index 0000000..4ad96d5
--- /dev/null
@@ -0,0 +1 @@
+default
diff --git a/mods/vessels/init.lua b/mods/vessels/init.lua
new file mode 100644 (file)
index 0000000..81cbad3
--- /dev/null
@@ -0,0 +1,86 @@
+-- Minetest 0.4 mod: vessels
+-- See README.txt for licensing and other information.
+
+minetest.register_craftitem("vessels:glass_bottle", {
+       description = "Glass Bottle (empty)",
+       inventory_image = "vessels_glass_bottle.png",
+       groups = {vessel=1},
+})
+
+minetest.register_craft( {
+       output = "vessels:glass_bottle 10",
+       recipe = {
+               { "default:glass", "", "default:glass" },
+               { "default:glass", "", "default:glass" },
+               { "", "default:glass", "" }
+       }
+})
+
+minetest.register_craftitem("vessels:drinking_glass", {
+       description = "Drinking Glass (empty)",
+       inventory_image = "vessels_drinking_glass.png",
+       groups = {vessel=1},
+})
+
+minetest.register_craft( {
+       output = "vessels:drinking_glass 14",
+       recipe = {
+               { "default:glass", "", "default:glass" },
+               { "default:glass", "", "default:glass" },
+               { "default:glass", "default:glass", "default:glass" }
+       }
+})
+
+minetest.register_craftitem("vessels:steel_bottle", {
+       description = "Heavy Steel Bottle (empty)",
+       inventory_image = "vessels_steel_bottle.png",
+       groups = {vessel=1},
+})
+
+minetest.register_craft( {
+       output = "vessels:steel_bottle 5",
+       recipe = {
+               { "default:steel_ingot", "", "default:steel_ingot" },
+               { "default:steel_ingot", "", "default:steel_ingot" },
+               { "", "default:steel_ingot", "" }
+       }
+})
+
+
+-- Make sure we can recycle them
+
+minetest.register_craftitem("vessels:glass_fragments", {
+       description = "Pile of Glass Fragments",
+       inventory_image = "vessels_glass_fragments.png",
+})
+
+minetest.register_craft( {
+       type = "shapeless",
+       output = "vessels:glass_fragments",
+       recipe = {
+               "vessels:glass_bottle",
+               "vessels:glass_bottle",
+       },
+})
+
+minetest.register_craft( {
+       type = "shapeless",
+       output = "vessels:glass_fragments",
+       recipe = {
+               "vessels:drinking_glass",
+               "vessels:drinking_glass",
+       },
+})
+
+minetest.register_craft({
+       type = "cooking",
+       output = "default:glass",
+       recipe = "vessels:glass_fragments",
+})
+
+minetest.register_craft( {
+       type = "cooking",
+       output = "default:steel_ingot",
+       recipe = "vessels:steel_bottle",
+})
+
diff --git a/mods/vessels/textures/alternates/vessels_drinking_glass.png b/mods/vessels/textures/alternates/vessels_drinking_glass.png
new file mode 100644 (file)
index 0000000..8ad033e
Binary files /dev/null and b/mods/vessels/textures/alternates/vessels_drinking_glass.png differ
diff --git a/mods/vessels/textures/alternates/vessels_glass_bottle.png b/mods/vessels/textures/alternates/vessels_glass_bottle.png
new file mode 100644 (file)
index 0000000..d922579
Binary files /dev/null and b/mods/vessels/textures/alternates/vessels_glass_bottle.png differ
diff --git a/mods/vessels/textures/alternates/vessels_steel_bottle.png b/mods/vessels/textures/alternates/vessels_steel_bottle.png
new file mode 100644 (file)
index 0000000..629c857
Binary files /dev/null and b/mods/vessels/textures/alternates/vessels_steel_bottle.png differ
diff --git a/mods/vessels/textures/vessels_drinking_glass.png b/mods/vessels/textures/vessels_drinking_glass.png
new file mode 100644 (file)
index 0000000..18f5cb8
Binary files /dev/null and b/mods/vessels/textures/vessels_drinking_glass.png differ
diff --git a/mods/vessels/textures/vessels_glass_bottle.png b/mods/vessels/textures/vessels_glass_bottle.png
new file mode 100644 (file)
index 0000000..c325fd1
Binary files /dev/null and b/mods/vessels/textures/vessels_glass_bottle.png differ
diff --git a/mods/vessels/textures/vessels_glass_fragments.png b/mods/vessels/textures/vessels_glass_fragments.png
new file mode 100644 (file)
index 0000000..7772a23
Binary files /dev/null and b/mods/vessels/textures/vessels_glass_fragments.png differ
diff --git a/mods/vessels/textures/vessels_steel_bottle.png b/mods/vessels/textures/vessels_steel_bottle.png
new file mode 100644 (file)
index 0000000..d2b846d
Binary files /dev/null and b/mods/vessels/textures/vessels_steel_bottle.png differ