Changes how glass bottles work and are made.

Now, you craft 5 glass blocks in a U shape, which gives 15 bottles.
Use 6 plus jungle grass and water bucket to get 6 dye base,
craft three to get back a glass block.
This commit is contained in:
Vanessa Ezekowitz 2012-07-24 21:55:35 -04:00
parent 9fbd77f769
commit 14d8a71d18
6 changed files with 34 additions and 40 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

BIN
bottles-to-glass.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

BIN
empty-bottles.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

View File

@ -8,51 +8,40 @@
--=========================================================================== --===========================================================================
-- First you need something to put the dyes into - glass bottles -- First you need something to put the dyes into - glass bottles
-- --
-- Smelt some sand into glass as usual, then smelt one of the resulting glass -- Smelt some sand into glass as usual, then craft 5 of those into an upside-
-- blocks to get a 9-pack of empty bottles. -- down "U" to get 15 empty bottles.
minetest.register_craftitem("unifieddyes:empty_bottle", { minetest.register_craftitem("unifieddyes:empty_bottle", {
description = "Empty Glass Bottle", description = "Empty Glass Bottle",
inventory_image = "unifieddyes_empty_bottle.png", inventory_image = "unifieddyes_empty_bottle.png",
}) })
minetest.register_craftitem("unifieddyes:bottle_9_pack", { minetest.register_craft( {
description = "Empty Glass Bottles (9-pack)", output = "unifieddyes:empty_bottle 15",
inventory_image = "unifieddyes_bottle_9_pack.png", recipe = {
{ "default:glass", "", "default:glass" },
{ "default:glass", "", "default:glass" },
{ "", "default:glass", "" }
}
}) })
minetest.register_craft({ -- Make sure we can recycle the bottles. 3 bottles -> 1 glass block.
type = "cooking",
output = "unifieddyes:bottle_9_pack",
recipe = "default:glass",
})
-- The use of this mod will, if the mods that depend on it are written
-- correctly, generate lots of empty bottles, so let's recycle them.
-- First, pack them into a 9-pack unit by placing one into each of the 9
-- crafting slots.
minetest.register_craft( { minetest.register_craft( {
output = "unifieddyes:bottle_9_pack", type = "shapeless",
recipe = { output = "default:glass",
{ "unifieddyes:empty_bottle", "unifieddyes:empty_bottle", "unifieddyes:empty_bottle" }, recipe = {
{ "unifieddyes:empty_bottle", "unifieddyes:empty_bottle", "unifieddyes:empty_bottle" }, "unifieddyes:empty_bottle",
{ "unifieddyes:empty_bottle", "unifieddyes:empty_bottle", "unifieddyes:empty_bottle" }, "unifieddyes:empty_bottle",
}, "unifieddyes:empty_bottle",
},
}) })
-- then smelt the 9-pack back into a glass block:
minetest.register_craft({ --============================================================================
type = "cooking", -- Now let's use some of those bottles along with some other stuff to make
output = "default:glass", -- dye base. Craft six empty bottles along with a bucket of water and a piece
recipe = "unifieddyes:bottle_9_pack", -- of jungle grass to get 6 portions of dye base.
})
-- Now, once you have a 9-pack of bottles, craft it with one bucket of water
-- and a piece of jungle grass to get 9 individual portions of the liquid dye
-- base and an empty bucket:
minetest.register_craftitem("unifieddyes:dye_base", { minetest.register_craftitem("unifieddyes:dye_base", {
description = "Uncolored Dye Base Liquid", description = "Uncolored Dye Base Liquid",
@ -60,14 +49,19 @@ minetest.register_craftitem("unifieddyes:dye_base", {
}) })
minetest.register_craft( { minetest.register_craft( {
type = "shapeless", type = "shapeless",
output = "unifieddyes:dye_base 9", output = "unifieddyes:dye_base 6",
recipe = { recipe = {
"bucket:bucket_water", "unifieddyes:empty_bottle",
"default:junglegrass", "unifieddyes:empty_bottle",
"unifieddyes:bottle_9_pack", "unifieddyes:empty_bottle",
}, "unifieddyes:empty_bottle",
replacements = { {'bucket:bucket_water', 'bucket:bucket_empty'}, }, "unifieddyes:empty_bottle",
"unifieddyes:empty_bottle",
"bucket:bucket_water",
"default:junglegrass",
},
replacements = { {'bucket:bucket_water', 'bucket:bucket_empty'}, },
}) })
--========================================================================== --==========================================================================

Binary file not shown.

Before

Width:  |  Height:  |  Size: 230 B