currency/crafting.lua
2020-10-24 13:09:09 +02:00

174 lines
3.3 KiB
Lua

if minetest.get_modpath("default") then
minetest.register_craft({
output = "currency:safe",
recipe = {
{"default:steel_ingot", "default:steel_ingot",
"default:steel_ingot"},
{"default:steel_ingot", "default:mese_crystal",
"default:steel_ingot"},
{"default:steel_ingot", "default:steel_ingot",
"default:steel_ingot"},
}
})
minetest.register_craft({
output = "currency:shop",
recipe = {
{"default:sign_wall"},
{"default:chest_locked"},
}
})
minetest.register_craft({
output = "currency:barter",
recipe = {
{"default:sign_wall"},
{"default:chest"},
}
})
end
minetest.register_craft({
type = "shapeless",
output = "currency:minegeld_cent_10",
recipe = {
"currency:minegeld_cent_5",
"currency:minegeld_cent_5"
},
})
minetest.register_craft({
type = "shapeless",
output = "currency:minegeld_cent_5 2",
recipe = {"currency:minegeld_cent_10"},
})
minetest.register_craft({
type = "shapeless",
output = "currency:minegeld_cent_25",
recipe = {
"currency:minegeld_cent_5",
"currency:minegeld_cent_5",
"currency:minegeld_cent_5",
"currency:minegeld_cent_5",
"currency:minegeld_cent_5"
},
})
minetest.register_craft({
type = "shapeless",
output = "currency:minegeld_cent_5 5",
recipe = {"currency:minegeld_cent_25"},
})
minetest.register_craft({
type = "shapeless",
output = "currency:minegeld",
recipe = {
"currency:minegeld_cent_25",
"currency:minegeld_cent_25",
"currency:minegeld_cent_25",
"currency:minegeld_cent_25"
},
})
minetest.register_craft({
type = "shapeless",
output = "currency:minegeld_cent_25 4",
recipe = {"currency:minegeld"},
})
minetest.register_craft({
type = "shapeless",
output = "currency:minegeld_5",
recipe = {
"currency:minegeld",
"currency:minegeld",
"currency:minegeld",
"currency:minegeld",
"currency:minegeld"
},
})
minetest.register_craft({
type = "shapeless",
output = "currency:minegeld 5",
recipe = {"currency:minegeld_5"},
})
minetest.register_craft({
type = "shapeless",
output = "currency:minegeld_10",
recipe = {
"currency:minegeld_5",
"currency:minegeld_5"
},
})
minetest.register_craft({
type = "shapeless",
output = "currency:minegeld_5 2",
recipe = {"currency:minegeld_10"},
})
minetest.register_craft({
type = "shapeless",
output = "currency:minegeld 5",
recipe = {"currency:minegeld_5"},
})
minetest.register_craft({
type = "shapeless",
output = "currency:minegeld_10 5",
recipe = {"currency:minegeld_50"},
})
minetest.register_craft({
type = "shapeless",
output = "currency:minegeld_50",
recipe = {
"currency:minegeld_10",
"currency:minegeld_10",
"currency:minegeld_10",
"currency:minegeld_10",
"currency:minegeld_10"
},
})
minetest.register_craft({
type = "shapeless",
output = "currency:minegeld_100",
recipe = {
"currency:minegeld_50",
"currency:minegeld_50"
},
})
minetest.register_craft({
type = "shapeless",
output = "currency:minegeld_50 2",
recipe = {"currency:minegeld_100" },
})
minetest.register_craft({
type = "shapeless",
output = "currency:minegeld_bundle",
recipe = {
"group:minegeld_note",
"group:minegeld_note",
"group:minegeld_note",
"group:minegeld_note",
"group:minegeld_note",
"group:minegeld_note",
"group:minegeld_note",
"group:minegeld_note",
"group:minegeld_note"
},
})
minetest.register_craft({
type = "fuel",
recipe = "currency:minegeld_bundle",
burntime = 1,
})