forked from mtcontrib/bitchange
ajoute conversion monnaie bitchange <-> maptools
This commit is contained in:
parent
98a2dc8572
commit
07af87559e
@ -3,3 +3,4 @@ pipeworks?
|
|||||||
quartz?
|
quartz?
|
||||||
technic_worldgen?
|
technic_worldgen?
|
||||||
wrench?
|
wrench?
|
||||||
|
maptools?
|
||||||
|
@ -20,38 +20,55 @@ minetest.register_craftitem("bitchange:mineninth", {
|
|||||||
})
|
})
|
||||||
|
|
||||||
-- Crafting
|
-- Crafting
|
||||||
if bitchange.craft_convert_currency then
|
if bitchange.craft_convert_currency and minetest.get_modpath("maptools") then
|
||||||
minetest.register_craft({
|
minetest.register_craft(
|
||||||
output = "bitchange:minecoinblock",
|
{
|
||||||
recipe = {
|
output = "bitchange:mineninth",
|
||||||
{"bitchange:minecoin", "bitchange:minecoin", "bitchange:minecoin"},
|
recipe = {
|
||||||
{"bitchange:minecoin", "bitchange:minecoin", "bitchange:minecoin"},
|
{"maptools:gold_coin", "maptools:gold_coin", "maptools:gold_coin"},
|
||||||
{"bitchange:minecoin", "bitchange:minecoin", "bitchange:minecoin"},
|
{"maptools:gold_coin", "maptools:gold_coin", "maptools:gold_coin"},
|
||||||
}
|
{"maptools:gold_coin", "maptools:gold_coin", "maptools:gold_coin"},
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft(
|
||||||
output = "bitchange:minecoin 9",
|
{
|
||||||
recipe = {
|
output = "maptools:gold_coin 9",
|
||||||
{"bitchange:minecoinblock"},
|
recipe = {{"bitchange:mineninth"}}
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft(
|
||||||
output = "bitchange:minecoin",
|
{
|
||||||
recipe = {
|
output = "maptools:gold_coin",
|
||||||
{"bitchange:mineninth", "bitchange:mineninth", "bitchange:mineninth"},
|
recipe = {
|
||||||
{"bitchange:mineninth", "bitchange:mineninth", "bitchange:mineninth"},
|
{"maptools:silver_coin", "maptools:silver_coin", "maptools:silver_coin"},
|
||||||
{"bitchange:mineninth", "bitchange:mineninth", "bitchange:mineninth"},
|
{"maptools:silver_coin", "maptools:silver_coin", "maptools:silver_coin"},
|
||||||
}
|
{"maptools:silver_coin", "maptools:silver_coin", "maptools:silver_coin"},
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft(
|
||||||
output = "bitchange:mineninth 9",
|
{
|
||||||
recipe = {
|
output = "maptools:silver_coin 9",
|
||||||
{"bitchange:minecoin"},
|
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
|
end
|
||||||
|
|
||||||
-- Cooking
|
-- Cooking
|
||||||
|
@ -171,7 +171,7 @@ minetest.register_craft({
|
|||||||
output = 'bitchange:moneychanger',
|
output = 'bitchange:moneychanger',
|
||||||
recipe = {
|
recipe = {
|
||||||
{'default:stone', 'bitchange:mineninth', 'default:stone'},
|
{'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'}
|
{'default:stone', 'default:stone', 'default:stone'}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user