equivalent_exchange/equivalent_exchange_alchemy_bags/alchemy_bag.lua

47 lines
1.5 KiB
Lua
Raw Normal View History

2015-08-01 14:42:22 +02:00
local modname = "equivalent_exchange_alchemy_bags:"
local colors = {'grey','dark_grey','black','blue','cyan','green','dark_green','yellow','orange','brown','red','pink','magenta','violet'}
2015-07-30 16:01:23 +02:00
2015-08-01 14:23:25 +02:00
minetest.register_craftitem("equivalent_exchange_alchemy_bags:white", {
description = "White Alchemy Bag",
2015-08-01 15:04:31 +02:00
inventory_image = "ee_alchemy_bags_white.png",
emc = 9631,
})
minetest.register_craft({
2015-08-01 14:23:25 +02:00
output = "equivalent_exchange:alchemy_bag_white",
recipe = {
{"equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence"},
{"wool:white", "equivalent_exchange:alchemical_chest", "wool:white"},
{"wool:white", "wool:white", "wool:white"}
}
})
for i = 1,14 do
2015-07-30 16:01:23 +02:00
2015-07-31 16:39:49 +02:00
-- Registering Craft Items --
2015-07-30 16:01:23 +02:00
2015-08-01 14:42:22 +02:00
minetest["register_craftitem"](":"..modname..colors[i], {
2015-07-31 16:39:49 +02:00
description = colors[i]:gsub("^%l", string.upper).." Alchemy Bag",
groups = {not_in_creative_inventory = 1},
2015-08-01 15:04:31 +02:00
inventory_image = "ee_alchemy_bags_"..colors[i]..".png",
2015-07-31 16:39:49 +02:00
emc = 9631,
})
2015-07-30 16:01:23 +02:00
2015-07-31 16:39:49 +02:00
-- Registering Crafts --
2015-07-31 15:04:20 +02:00
2015-07-31 16:39:49 +02:00
minetest["register_craft"]({
2015-08-01 14:42:22 +02:00
output = modname..colors[i],
2015-07-31 16:39:49 +02:00
recipe = {
{"equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence"},
{"wool:"..colors[i], "equivalent_exchange:alchemical_chest", "wool:"..colors[i]},
{"wool:"..colors[i], "wool:"..colors[i], "wool:"..colors[i]}
}
})
minetest["register_craft"]({
type = "shapeless",
2015-08-01 14:42:22 +02:00
output = modname..colors[i],
2015-08-01 14:23:25 +02:00
recipe = {"equivalent_exchange_alchemy_bags:white", "dye:"..colors[i]}
})
2015-07-31 16:39:49 +02:00
end