move coinmaking to its own mod

This commit is contained in:
Tai @ Flex 2016-08-25 16:46:12 +01:00
parent ee9ac66b47
commit 9f0405ffe8
4 changed files with 78 additions and 0 deletions

21
monstercoin/depends.txt Normal file
View File

@ -0,0 +1,21 @@
default
nssm?
dmobs?
mobs_animal?
mobs_bear?
mobs_creeper?
mobs_crocs?
mobs_deer?
mobs_giraffe?
mobs_jellyfish?
mobs_monster?
mobs_mr_goat?
mobs_sandworm?
mobs_senderman?
mobs_sharks?
mobs_slimes?
mobs_snowman?
mobs_turtles?
mobs_wolf?
mobs_yeti?
mobs_zombie?

56
monstercoin/init.lua Normal file
View File

@ -0,0 +1,56 @@
monstercoin = {}
-- +++++++++++++++++++++++++++++++++++++++++
--[[
core.register_craft( {
output = "nssm:surimi",
--type = "shapeless",
recipe = {
{"default:dirt","default:dirt","default:dirt"},
{"default:grass","default:grass","default:grass"}, -- group grass?
{"group:sand","group:sand","group:sand"},
}
})
--]]
local metals = "default:coal_lump"
if minetest.get_modpath("moreores") then
metals = "moreores:tin_ingot"
end
function monstercoin:register_coin(coinname,coindesc,cmaterial,overimg)
local coinimg = "monstercoin_coin.png^"..overimg
minetest.register_craft_item("monstercoin:coin_"..coinname, {
description = coindesc,
inventory_image = coingimg,
})
core.register_craft( {
output = "monstercoin:coin_"..coinname,
recipe = {
{metals,cmaterial,metals},
{cmaterial,cmaterial,cmaterial},
{metals,cmaterial,metals},
}
})
core.register_craft( {
output = cmaterial.." 5",
type = "shapeless",
recipe = {
"monstercoin:coin_"..coinname,
}
})
end
monstercoin:register_coin("nyan","Nyan Coin","default:nyancat","default_nc_front.png")
monstercoin:register_coin("ice","Ice Monster Coin","nssm:frosted_amphibian_heart","frosted_amphibian_heart.png")
monstercoin:register_coin("worm","Worms Coin","nssm:worm_flesh","worm_flesh.png")
monstercoin:register_coin("scrausics","Scrausics Coin","nssm:raw_scrausics_wing","raw_scrausics_wing.png")

1
monstercoin/mod.conf Normal file
View File

@ -0,0 +1 @@
name = monstercoin

Binary file not shown.

After

Width:  |  Height:  |  Size: 895 B