summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2012-07-26 17:09:38 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2012-07-26 17:09:38 -0400
commitd581057356a1a5b79e348fb33af8df1cd1174f77 (patch)
tree60df26d2c3234ef310b28d785b20fd0a37d5d63e /init.lua
parent6e410f36d69b8930d7cfdddc715049bbc5ac4d71 (diff)
downloadunifieddyes-d581057356a1a5b79e348fb33af8df1cd1174f77.tar
unifieddyes-d581057356a1a5b79e348fb33af8df1cd1174f77.tar.gz
unifieddyes-d581057356a1a5b79e348fb33af8df1cd1174f77.tar.bz2
unifieddyes-d581057356a1a5b79e348fb33af8df1cd1174f77.tar.xz
unifieddyes-d581057356a1a5b79e348fb33af8df1cd1174f77.zip
Reworked unifiedyes to use my vessels mod
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua60
1 files changed, 23 insertions, 37 deletions
diff --git a/init.lua b/init.lua
index bd9685a..d5efaf3 100644
--- a/init.lua
+++ b/init.lua
@@ -2,46 +2,32 @@
--
-- License: GPL
--
--- This mod depends on ironzorg's flowers mod
---
+-- This mod depends on ironzorg's flowers mod and my Vessels mod.
---===========================================================================
--- First you need something to put the dyes into - glass bottles
---
--- Smelt some sand into glass as usual, then craft 5 of those into an upside-
--- down "U" to get 15 empty bottles.
+--============================================================================
+-- First, craft some bottles from the Vessels mod, then make some dye base:
+-- Craft six empty bottles along with a bucket of water and a piece
+-- of jungle grass to get 6 portions of dye base.
+
+-- These craft/craftitem definitions for glass bottles are deprecated and are
+-- only included here for backwards compatibility. Use vessels:glass_bottle
+-- instead.
minetest.register_craftitem("unifieddyes:empty_bottle", {
- description = "Empty Glass Bottle",
+ description = "Glass Bottle (empty) (Deprecated)",
inventory_image = "unifieddyes_empty_bottle.png",
})
minetest.register_craft( {
- output = "unifieddyes:empty_bottle 15",
- recipe = {
- { "default:glass", "", "default:glass" },
- { "default:glass", "", "default:glass" },
- { "", "default:glass", "" }
- }
-})
-
--- Make sure we can recycle the bottles. 3 bottles -> 1 glass block.
-
-minetest.register_craft( {
- type = "shapeless",
- output = "default:glass",
- recipe = {
- "unifieddyes:empty_bottle",
- "unifieddyes:empty_bottle",
- "unifieddyes:empty_bottle",
- },
+ type = "shapeless",
+ output = "default:glass",
+ recipe = {
+ "unifieddyes:empty_bottle",
+ "unifieddyes:empty_bottle",
+ },
})
-
---============================================================================
--- Now let's use some of those bottles along with some other stuff to make
--- dye base. Craft six empty bottles along with a bucket of water and a piece
--- of jungle grass to get 6 portions of dye base.
+-- Now the current stuff, using vessels:glass_bottle.
minetest.register_craftitem("unifieddyes:dye_base", {
description = "Uncolored Dye Base Liquid",
@@ -52,12 +38,12 @@ minetest.register_craft( {
type = "shapeless",
output = "unifieddyes:dye_base 6",
recipe = {
- "unifieddyes:empty_bottle",
- "unifieddyes:empty_bottle",
- "unifieddyes:empty_bottle",
- "unifieddyes:empty_bottle",
- "unifieddyes:empty_bottle",
- "unifieddyes:empty_bottle",
+ "vessels:glass_bottle",
+ "vessels:glass_bottle",
+ "vessels:glass_bottle",
+ "vessels:glass_bottle",
+ "vessels:glass_bottle",
+ "vessels:glass_bottle",
"bucket:bucket_water",
"default:junglegrass",
},