more sensible coins and recipes

This commit is contained in:
Tai @ Flex 2016-09-25 22:46:48 +01:00
parent 494c41c167
commit 89eef11029

View File

@ -31,9 +31,9 @@ function anycoin:register_coin(coinname,coindesc,cmaterial,overimg,cvalue)
core.register_craft( { core.register_craft( {
output = "anycoin:coin_"..coinname, output = "anycoin:coin_"..coinname,
recipe = { recipe = {
{metals,cmaterial,metals}, {metals,metals,metals},
{cmaterial,cmaterial,cmaterial}, {cmaterial,metals,cmaterial},
{metals,cmaterial,metals}, {metals,metals,metals},
} }
}) })
@ -49,10 +49,17 @@ minetest.register_craftitem("anycoin:anycoin", {
stack_max = 500, stack_max = 500,
}) })
minetest.register_craftitem("anycoin:nineycoin", { minetest.register_craftitem("anycoin:fivercoin", {
description = "NineyCoin (9 ac-)", description = "FiverCoin (5 ac-)",
inventory_image = "anycoin_coin.png^[colorize:blue:60", inventory_image = "anycoin_coin.png^[colorize:green:60",
coinvalue = 9, coinvalue = 5,
stack_max = 500,
})
minetest.register_craftitem("anycoin:tennercoin", {
description = "TennerCoin (10 ac-)",
inventory_image = "anycoin_coin.png^[colorize:purple:60",
coinvalue = 10,
stack_max = 500, stack_max = 500,
}) })
@ -60,19 +67,35 @@ local basecoin = "anycoin:anycoin"
core.register_craft( { core.register_craft( {
output = "anycoin:nineycoin", output = "anycoin:fivercoin",
type = "shapeless",
recipe = { recipe = {
{basecoin,basecoin,basecoin}, basecoin,basecoin,basecoin,basecoin,basecoin
{basecoin,basecoin,basecoin}, }
{basecoin,basecoin,basecoin},
})
core.register_craft( {
output = "anycoin:tennercoin",
type = "shapeless",
recipe = {
"anycoin:fivercoin","anycoin:fivercoin"
} }
}) })
core.register_craft( { core.register_craft( {
type = "shapeless", type = "shapeless",
output = "anycoin:anycoin 9", output = "anycoin:anycoin 10",
recipe = {"anycoin:nineycoin"} recipe = {"anycoin:tennercoin"}
})
core.register_craft( {
type = "shapeless",
output = "anycoin:anycoin 5",
recipe = {"anycoin:fivercoin"}
}) })