forked from minetest-mods/maptools
add recipes for copper, silver, gold coins
and put them into the creative inv like normal (silver requires moreores)
This commit is contained in:
parent
40f840dd33
commit
caa92be9dd
@ -14,7 +14,13 @@ minetest.register_craftitem("maptools:copper_coin", {
|
|||||||
inventory_image = "maptools_copper_coin.png",
|
inventory_image = "maptools_copper_coin.png",
|
||||||
wield_scale = {x = 0.5, y = 0.5, z = 0.25},
|
wield_scale = {x = 0.5, y = 0.5, z = 0.25},
|
||||||
stack_max = 10000,
|
stack_max = 10000,
|
||||||
groups = {not_in_creative_inventory = maptools.creative},
|
})
|
||||||
|
|
||||||
|
|
||||||
|
minetest.register_craft ({
|
||||||
|
output = "maptools:copper_coin 10",
|
||||||
|
type = "shapeless",
|
||||||
|
recipe = { "default:copper_ingot", "default:copper_ingot" }
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("maptools:silver_coin", {
|
minetest.register_craftitem("maptools:silver_coin", {
|
||||||
@ -22,15 +28,27 @@ minetest.register_craftitem("maptools:silver_coin", {
|
|||||||
inventory_image = "maptools_silver_coin.png",
|
inventory_image = "maptools_silver_coin.png",
|
||||||
wield_scale = {x = 0.5, y = 0.5, z = 0.25},
|
wield_scale = {x = 0.5, y = 0.5, z = 0.25},
|
||||||
stack_max = 10000,
|
stack_max = 10000,
|
||||||
groups = {not_in_creative_inventory = maptools.creative},
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if minetest.get_modpath("moreores") then
|
||||||
|
minetest.register_craft ({
|
||||||
|
output = "maptools:silver_coin 10",
|
||||||
|
type = "shapeless",
|
||||||
|
recipe = { "moreores:silver_ingot", "moreores:silver_ingot" }
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
minetest.register_craftitem("maptools:gold_coin", {
|
minetest.register_craftitem("maptools:gold_coin", {
|
||||||
description = S("Gold Coin"),
|
description = S("Gold Coin"),
|
||||||
inventory_image = "maptools_gold_coin.png",
|
inventory_image = "maptools_gold_coin.png",
|
||||||
wield_scale = {x = 0.5, y = 0.5, z = 0.25},
|
wield_scale = {x = 0.5, y = 0.5, z = 0.25},
|
||||||
stack_max = 10000,
|
stack_max = 10000,
|
||||||
groups = {not_in_creative_inventory = maptools.creative},
|
})
|
||||||
|
|
||||||
|
minetest.register_craft ({
|
||||||
|
output = "maptools:gold_coin 10",
|
||||||
|
type = "shapeless",
|
||||||
|
recipe = { "default:gold_ingot", "default:gold_ingot" }
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("maptools:infinitefuel", {
|
minetest.register_craftitem("maptools:infinitefuel", {
|
||||||
|
2
mod.conf
2
mod.conf
@ -1,4 +1,4 @@
|
|||||||
name = maptools
|
name = maptools
|
||||||
description = Adds various special versions of normal blocks, tools, and other map maintainer tools.
|
description = Adds various special versions of normal blocks, tools, and other map maintainer tools.
|
||||||
depends = default
|
depends = default
|
||||||
optional_depends = intllib
|
optional_depends = intllib, moreores
|
||||||
|
Loading…
Reference in New Issue
Block a user