ajoute conversion monnaie bitchange <-> maptools

This commit is contained in:
Sys Quatre 2019-12-30 16:44:19 +01:00
parent 98a2dc8572
commit 07af87559e
3 changed files with 45 additions and 27 deletions

View File

@ -3,3 +3,4 @@ pipeworks?
quartz?
technic_worldgen?
wrench?
maptools?

View File

@ -20,38 +20,55 @@ minetest.register_craftitem("bitchange:mineninth", {
})
-- Crafting
if bitchange.craft_convert_currency then
minetest.register_craft({
output = "bitchange:minecoinblock",
recipe = {
{"bitchange:minecoin", "bitchange:minecoin", "bitchange:minecoin"},
{"bitchange:minecoin", "bitchange:minecoin", "bitchange:minecoin"},
{"bitchange:minecoin", "bitchange:minecoin", "bitchange:minecoin"},
}
if bitchange.craft_convert_currency and minetest.get_modpath("maptools") then
minetest.register_craft(
{
output = "bitchange:mineninth",
recipe = {
{"maptools:gold_coin", "maptools:gold_coin", "maptools:gold_coin"},
{"maptools:gold_coin", "maptools:gold_coin", "maptools:gold_coin"},
{"maptools:gold_coin", "maptools:gold_coin", "maptools:gold_coin"},
}
})
minetest.register_craft({
output = "bitchange:minecoin 9",
recipe = {
{"bitchange:minecoinblock"},
}
minetest.register_craft(
{
output = "maptools:gold_coin 9",
recipe = {{"bitchange:mineninth"}}
})
minetest.register_craft({
output = "bitchange:minecoin",
recipe = {
{"bitchange:mineninth", "bitchange:mineninth", "bitchange:mineninth"},
{"bitchange:mineninth", "bitchange:mineninth", "bitchange:mineninth"},
{"bitchange:mineninth", "bitchange:mineninth", "bitchange:mineninth"},
}
minetest.register_craft(
{
output = "maptools:gold_coin",
recipe = {
{"maptools:silver_coin", "maptools:silver_coin", "maptools:silver_coin"},
{"maptools:silver_coin", "maptools:silver_coin", "maptools:silver_coin"},
{"maptools:silver_coin", "maptools:silver_coin", "maptools:silver_coin"},
}
})
minetest.register_craft({
output = "bitchange:mineninth 9",
recipe = {
{"bitchange:minecoin"},
}
minetest.register_craft(
{
output = "maptools:silver_coin 9",
recipe = {{"maptools:gold_coin"}}
})
minetest.register_craft(
{
output = "maptools:silver_coin",
recipe = {
{"maptools:copper_coin", "maptools:copper_coin", "maptools:copper_coin"},
{"maptools:copper_coin", "maptools:copper_coin", "maptools:copper_coin"},
{"maptools:copper_coin", "maptools:copper_coin", "maptools:copper_coin"},
}
})
minetest.register_craft(
{
output = "maptools:copper_coin 9",
recipe = {{"maptools:silver_coin"}}
})
end
-- Cooking

View File

@ -171,7 +171,7 @@ minetest.register_craft({
output = 'bitchange:moneychanger',
recipe = {
{'default:stone', 'bitchange:mineninth', 'default:stone'},
{'default:steel_ingot', 'bitchange:minecoin', 'default:steel_ingot'},
{'default:steel_ingot', 'bitchange:minecoinblock', 'default:steel_ingot'},
{'default:stone', 'default:stone', 'default:stone'}
}
})
})