mirror of
https://github.com/mt-mods/unifieddyes.git
synced 2024-11-22 23:43:45 +01:00
Reworked unifiedyes to use my vessels mod
This commit is contained in:
parent
6e410f36d6
commit
d581057356
@ -1,3 +1,4 @@
|
|||||||
default
|
default
|
||||||
flowers
|
flowers
|
||||||
|
vessels
|
||||||
bucket
|
bucket
|
||||||
|
48
init.lua
48
init.lua
@ -2,46 +2,32 @@
|
|||||||
--
|
--
|
||||||
-- License: GPL
|
-- 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
|
-- 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
|
||||||
-- Smelt some sand into glass as usual, then craft 5 of those into an upside-
|
-- of jungle grass to get 6 portions of dye base.
|
||||||
-- down "U" to get 15 empty bottles.
|
|
||||||
|
-- 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", {
|
minetest.register_craftitem("unifieddyes:empty_bottle", {
|
||||||
description = "Empty Glass Bottle",
|
description = "Glass Bottle (empty) (Deprecated)",
|
||||||
inventory_image = "unifieddyes_empty_bottle.png",
|
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( {
|
minetest.register_craft( {
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = "default:glass",
|
output = "default:glass",
|
||||||
recipe = {
|
recipe = {
|
||||||
"unifieddyes:empty_bottle",
|
"unifieddyes:empty_bottle",
|
||||||
"unifieddyes:empty_bottle",
|
"unifieddyes:empty_bottle",
|
||||||
"unifieddyes:empty_bottle",
|
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- Now the current stuff, using vessels:glass_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.
|
|
||||||
|
|
||||||
minetest.register_craftitem("unifieddyes:dye_base", {
|
minetest.register_craftitem("unifieddyes:dye_base", {
|
||||||
description = "Uncolored Dye Base Liquid",
|
description = "Uncolored Dye Base Liquid",
|
||||||
@ -52,12 +38,12 @@ minetest.register_craft( {
|
|||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = "unifieddyes:dye_base 6",
|
output = "unifieddyes:dye_base 6",
|
||||||
recipe = {
|
recipe = {
|
||||||
"unifieddyes:empty_bottle",
|
"vessels:glass_bottle",
|
||||||
"unifieddyes:empty_bottle",
|
"vessels:glass_bottle",
|
||||||
"unifieddyes:empty_bottle",
|
"vessels:glass_bottle",
|
||||||
"unifieddyes:empty_bottle",
|
"vessels:glass_bottle",
|
||||||
"unifieddyes:empty_bottle",
|
"vessels:glass_bottle",
|
||||||
"unifieddyes:empty_bottle",
|
"vessels:glass_bottle",
|
||||||
"bucket:bucket_water",
|
"bucket:bucket_water",
|
||||||
"default:junglegrass",
|
"default:junglegrass",
|
||||||
},
|
},
|
||||||
|
104
vessels.lua
Normal file
104
vessels.lua
Normal file
@ -0,0 +1,104 @@
|
|||||||
|
-- Vessels support for Unified Dyes Mod by Vanessa Ezekowitz ~~ 2012-07-26
|
||||||
|
--
|
||||||
|
-- License: GPL
|
||||||
|
--
|
||||||
|
|
||||||
|
--========================================
|
||||||
|
-- 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 -
|
||||||
|
|
||||||
|
|
||||||
|
-- bottles
|
||||||
|
|
||||||
|
minetest.register_alias("unifieddyes:empty_glass", "vessels:glass_bottle")
|
||||||
|
|
||||||
|
minetest.register_craftitem("vessels:glass_bottle", {
|
||||||
|
description = "Glass Bottle (empty)",
|
||||||
|
inventory_image = "vessels_glass_bottle.png",
|
||||||
|
})
|
||||||
|
|
||||||
|
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",
|
||||||
|
})
|
||||||
|
|
||||||
|
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",
|
||||||
|
})
|
||||||
|
|
||||||
|
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_craft( {
|
||||||
|
type = "shapeless",
|
||||||
|
output = "default:glass",
|
||||||
|
recipe = {
|
||||||
|
"vessels:glass_bottle",
|
||||||
|
"vessels:glass_bottle",
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft( {
|
||||||
|
type = "shapeless",
|
||||||
|
output = "default:glass",
|
||||||
|
recipe = {
|
||||||
|
"vessels:drinking_glass",
|
||||||
|
"vessels:drinking_glass",
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft( {
|
||||||
|
type = "shapeless",
|
||||||
|
output = "default:steel_ingot",
|
||||||
|
recipe = {
|
||||||
|
"vessels:steel_bottle",
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
print("[Vessels] Loaded!")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user