mirror of
https://github.com/ZNixian/equivalent_exchange.git
synced 2024-11-26 08:43:44 +01:00
optimized alchemy bag registering
This commit is contained in:
parent
da344f6763
commit
2e7958b0f2
238
alchemy_bag.lua
238
alchemy_bag.lua
@ -1,229 +1,23 @@
|
|||||||
-- Registering Craft Items --
|
local colors = {'white','grey','dark_grey','black','blue','cyan','green','dark_green','yellow','orange','brown','red','pink','magenta','violet'}
|
||||||
|
|
||||||
minetest.register_craftitem("equivalent_exchange:alchemy_bag_white", {
|
for i = 1,15 do
|
||||||
description = "White Alchemy Bag",
|
|
||||||
inventory_image = "equivalent_exchange_alchemy_bag_white.png",
|
-- Registering Craft Items --
|
||||||
|
|
||||||
|
minetest["register_craftitem"](":".."equivalent_exchange:alchemy_bag_"..colors[i], {
|
||||||
|
description = colors[i]:gsub("^%l", string.upper).." Alchemy Bag",
|
||||||
|
inventory_image = "equivalent_exchange_alchemy_bag_"..colors[i]..".png",
|
||||||
emc = 9631,
|
emc = 9631,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("equivalent_exchange:alchemy_bag_grey", {
|
-- Registering Crafts --
|
||||||
description = "Grey Alchemy Bag",
|
|
||||||
inventory_image = "equivalent_exchange_alchemy_bag_grey.png",
|
|
||||||
emc = 9631,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craftitem("equivalent_exchange:alchemy_bag_dark_grey", {
|
minetest["register_craft"]({
|
||||||
description = "Dark Grey Alchemy Bag",
|
output = "equivalent_exchange:alchemy_bag_"..colors[i],
|
||||||
inventory_image = "equivalent_exchange_alchemy_bag_dark_grey.png",
|
|
||||||
emc = 9631,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craftitem("equivalent_exchange:alchemy_bag_black", {
|
|
||||||
description = "Black Alchemy Bag",
|
|
||||||
inventory_image = "equivalent_exchange_alchemy_bag_black.png",
|
|
||||||
emc = 9631,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craftitem("equivalent_exchange:alchemy_bag_blue", {
|
|
||||||
description = "Blue Alchemy Bag",
|
|
||||||
inventory_image = "equivalent_exchange_alchemy_bag_blue.png",
|
|
||||||
emc = 9631,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craftitem("equivalent_exchange:alchemy_bag_cyan", {
|
|
||||||
description = "Cyan Alchemy Bag",
|
|
||||||
inventory_image = "equivalent_exchange_alchemy_bag_cyan.png",
|
|
||||||
emc = 9631,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craftitem("equivalent_exchange:alchemy_bag_green", {
|
|
||||||
description = "Green Alchemy Bag",
|
|
||||||
inventory_image = "equivalent_exchange_alchemy_bag_green.png",
|
|
||||||
emc = 9631,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craftitem("equivalent_exchange:alchemy_bag_dark_green", {
|
|
||||||
description = "Dark Green Alchemy Bag",
|
|
||||||
inventory_image = "equivalent_exchange_alchemy_bag_dark_green.png",
|
|
||||||
emc = 9631,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craftitem("equivalent_exchange:alchemy_bag_yellow", {
|
|
||||||
description = "Yellow Alchemy Bag",
|
|
||||||
inventory_image = "equivalent_exchange_alchemy_bag_yellow.png",
|
|
||||||
emc = 9631,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craftitem("equivalent_exchange:alchemy_bag_orange", {
|
|
||||||
description = "Orange Alchemy Bag",
|
|
||||||
inventory_image = "equivalent_exchange_alchemy_bag_orange.png",
|
|
||||||
emc = 9631,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craftitem("equivalent_exchange:alchemy_bag_brown", {
|
|
||||||
description = "Brown Alchemy Bag",
|
|
||||||
inventory_image = "equivalent_exchange_alchemy_bag_brown.png",
|
|
||||||
emc = 9631,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craftitem("equivalent_exchange:alchemy_bag_red", {
|
|
||||||
description = "Red Alchemy Bag",
|
|
||||||
inventory_image = "equivalent_exchange_alchemy_bag_red.png",
|
|
||||||
emc = 9631,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craftitem("equivalent_exchange:alchemy_bag_pink", {
|
|
||||||
description = "Pink Alchemy Bag",
|
|
||||||
inventory_image = "equivalent_exchange_alchemy_bag_pink.png",
|
|
||||||
emc = 9631,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craftitem("equivalent_exchange:alchemy_bag_magenta", {
|
|
||||||
description = "Magenta Alchemy Bag",
|
|
||||||
inventory_image = "equivalent_exchange_alchemy_bag_magenta.png",
|
|
||||||
emc = 9631,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craftitem("equivalent_exchange:alchemy_bag_violet", {
|
|
||||||
description = "alchemy_bag_violet Alchemy Bag",
|
|
||||||
inventory_image = "equivalent_exchange_alchemy_bag_violet.png",
|
|
||||||
emc = 9631,
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Registering Crafts --
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "equivalent_exchange:alchemy_bag_white",
|
|
||||||
recipe = {
|
recipe = {
|
||||||
{"equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence"},
|
{"equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence"},
|
||||||
{"wool:white", "equivalent_exchange:alchemical_chest", "wool:white"},
|
{"wool:"..colors[i], "equivalent_exchange:alchemical_chest", "wool:"..colors[i]},
|
||||||
{"wool:white", "wool:white", "wool:white"}
|
{"wool:"..colors[i], "wool:"..colors[i], "wool:"..colors[i]}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
end
|
||||||
minetest.register_craft({
|
|
||||||
output = "equivalent_exchange:alchemy_bag_grey",
|
|
||||||
recipe = {
|
|
||||||
{"equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence"},
|
|
||||||
{"wool:grey", "equivalent_exchange:alchemical_chest", "wool:grey"},
|
|
||||||
{"wool:grey", "wool:grey", "wool:grey"}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "equivalent_exchange:alchemy_bag_dark_grey",
|
|
||||||
recipe = {
|
|
||||||
{"equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence"},
|
|
||||||
{"wool:dark_grey", "equivalent_exchange:alchemical_chest", "wool:dark_grey"},
|
|
||||||
{"wool:dark_grey", "wool:dark_grey", "wool:dark_grey"}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "equivalent_exchange:alchemy_bag_black",
|
|
||||||
recipe = {
|
|
||||||
{"equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence"},
|
|
||||||
{"wool:black", "equivalent_exchange:alchemical_chest", "wool:black"},
|
|
||||||
{"wool:black", "wool:black", "wool:black"}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "equivalent_exchange:alchemy_bag_blue",
|
|
||||||
recipe = {
|
|
||||||
{"equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence"},
|
|
||||||
{"wool:blue", "equivalent_exchange:alchemical_chest", "wool:blue"},
|
|
||||||
{"wool:blue", "wool:blue", "wool:blue"}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "equivalent_exchange:alchemy_bag_cyan",
|
|
||||||
recipe = {
|
|
||||||
{"equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence"},
|
|
||||||
{"wool:cyan", "equivalent_exchange:alchemical_chest", "wool:cyan"},
|
|
||||||
{"wool:cyan", "wool:cyan", "wool:cyan"}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "equivalent_exchange:alchemy_bag_green",
|
|
||||||
recipe = {
|
|
||||||
{"equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence"},
|
|
||||||
{"wool:green", "equivalent_exchange:alchemical_chest", "wool:green"},
|
|
||||||
{"wool:green", "wool:green", "wool:green"}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "equivalent_exchange:alchemy_bag_dark_green",
|
|
||||||
recipe = {
|
|
||||||
{"equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence"},
|
|
||||||
{"wool:dark_green", "equivalent_exchange:alchemical_chest", "wool:dark_green"},
|
|
||||||
{"wool:dark_green", "wool:dark_green", "wool:dark_green"}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "equivalent_exchange:alchemy_bag_yellow",
|
|
||||||
recipe = {
|
|
||||||
{"equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence"},
|
|
||||||
{"wool:yellow", "equivalent_exchange:alchemical_chest", "wool:yellow"},
|
|
||||||
{"wool:yellow", "wool:yellow", "wool:yellow"}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "equivalent_exchange:alchemy_bag_orange",
|
|
||||||
recipe = {
|
|
||||||
{"equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence"},
|
|
||||||
{"wool:orange", "equivalent_exchange:alchemical_chest", "wool:orange"},
|
|
||||||
{"wool:orange", "wool:orange", "wool:orange"}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "equivalent_exchange:alchemy_bag_brown",
|
|
||||||
recipe = {
|
|
||||||
{"equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence"},
|
|
||||||
{"wool:brown", "equivalent_exchange:alchemical_chest", "wool:brown"},
|
|
||||||
{"wool:brown", "wool:brown", "wool:brown"}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "equivalent_exchange:alchemy_bag_red",
|
|
||||||
recipe = {
|
|
||||||
{"equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence"},
|
|
||||||
{"wool:red", "equivalent_exchange:alchemical_chest", "wool:red"},
|
|
||||||
{"wool:red", "wool:red", "wool:red"}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "equivalent_exchange:alchemy_bag_pink",
|
|
||||||
recipe = {
|
|
||||||
{"equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence"},
|
|
||||||
{"wool:pink", "equivalent_exchange:alchemical_chest", "wool:pink"},
|
|
||||||
{"wool:pink", "wool:pink", "wool:pink"}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "equivalent_exchange:alchemy_bag_magenta",
|
|
||||||
recipe = {
|
|
||||||
{"equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence"},
|
|
||||||
{"wool:magenta", "equivalent_exchange:alchemical_chest", "wool:magenta"},
|
|
||||||
{"wool:magenta", "wool:magenta", "wool:magenta"}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "equivalent_exchange:alchemy_bag_violet",
|
|
||||||
recipe = {
|
|
||||||
{"equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence"},
|
|
||||||
{"wool:violet", "equivalent_exchange:alchemical_chest", "wool:violet"},
|
|
||||||
{"wool:violet", "wool:violet", "wool:violet"}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
18
emcs.lua
18
emcs.lua
@ -1,16 +1,16 @@
|
|||||||
local emcs = {
|
local emcs = {
|
||||||
node = {
|
node = {
|
||||||
["default:"] = {
|
["default:"] = {
|
||||||
stone = 1,
|
["stone"] = 1,
|
||||||
cobble = 1,
|
["cobble"] = 1,
|
||||||
desert_stone = 1,
|
["desert_stone"] = 1,
|
||||||
stonebrick = 1,
|
["stonebrick"] = 1,
|
||||||
desert_stonebrick = 1,
|
["desert_stonebrick"] = 1,
|
||||||
dirt_with_grass = 1,
|
["dirt_with_grass"] = 1,
|
||||||
dirt_with_snow = 1,
|
["dirt_with_snow"] = 1,
|
||||||
dirt = 1,
|
dirt = 1,
|
||||||
sand = 1,
|
sand=1,
|
||||||
desert_sand = 1,
|
["desert_sand"] = 1,
|
||||||
gravel = 4,
|
gravel = 4,
|
||||||
sandstone = 4,
|
sandstone = 4,
|
||||||
sandstonebrick = 4,
|
sandstonebrick = 4,
|
||||||
|
Loading…
Reference in New Issue
Block a user