diff --git a/anycoin/init.lua b/anycoin/init.lua index 2614928..77ab20f 100644 --- a/anycoin/init.lua +++ b/anycoin/init.lua @@ -22,7 +22,7 @@ function anycoin:register_coin(coinname,coindesc,cmaterial,overimg,cvalue) core.register_craft({ type = "shapeless", - output = "anycoin:coin_base "..cvalue, + output = "anycoin:anycoin "..cvalue, recipe = {"anycoin:coin_"..coinname} } ) @@ -42,23 +42,23 @@ end -- A base coin to serve as an exchange base -minetest.register_craftitem("anycoin:coin_base", { +minetest.register_craftitem("anycoin:anycoin", { description = "AnyCoin (1 ac-)", inventory_image = "anycoin_coin.png", coinvalue = 1, }) -minetest.register_craftitem("anycoin:coin_base9", { +minetest.register_craftitem("anycoin:nineycoin", { description = "NineyCoin (9 ac-)", inventory_image = "anycoin_coin.png^[colorize:blue:60", coinvalue = 9 }) -local basecoin = "anycoin:coin_base" +local basecoin = "anycoin:anycoin" core.register_craft( { - output = "anycoin:coin_base9", + output = "anycoin:nineycoin", recipe = { {basecoin,basecoin,basecoin}, {basecoin,basecoin,basecoin}, @@ -67,6 +67,13 @@ core.register_craft( { }) +core.register_craft( { + type = "shapeless", + output = "anycoin:anycoin 9", + recipe = {"anycoin:nineycoin"} + +}) + anycoin:register_coin("iron","Iron Coin","default:steel_ingot","[colorize:red:50",10) anycoin:register_coin("copper","Copper Coin","default:copper_ingot","[colorize:orange:50",15) anycoin:register_coin("bronze","Bronze Coin","default:bronze_ingot","[colorize:orange:90",20)