2015-01-11 22:20:57 +01:00
|
|
|
--[[
|
2015-01-12 17:46:30 +01:00
|
|
|
Map Tools: item definitions
|
2015-01-11 22:20:57 +01:00
|
|
|
|
2020-01-01 04:10:24 +01:00
|
|
|
Copyright © 2012-2020 Hugo Locurcio and contributors.
|
2015-01-11 22:20:57 +01:00
|
|
|
Licensed under the zlib license. See LICENSE.md for more information.
|
|
|
|
--]]
|
|
|
|
|
2019-03-03 20:11:10 +01:00
|
|
|
local S = maptools.S
|
2014-12-27 20:31:31 +01:00
|
|
|
|
|
|
|
maptools.creative = maptools.config["hide_from_creative_inventory"]
|
|
|
|
|
|
|
|
minetest.register_craftitem("maptools:copper_coin", {
|
|
|
|
description = S("Copper Coin"),
|
|
|
|
inventory_image = "maptools_copper_coin.png",
|
|
|
|
wield_scale = {x = 0.5, y = 0.5, z = 0.25},
|
|
|
|
stack_max = 10000,
|
2020-04-29 11:40:04 +02:00
|
|
|
})
|
|
|
|
|
2021-06-27 01:51:29 +02:00
|
|
|
if maptools.config and maptools.config.enable_coin_crafting then
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "maptools:copper_coin 10",
|
|
|
|
type = "shapeless",
|
|
|
|
recipe = { "default:copper_ingot", "default:copper_ingot" }
|
|
|
|
})
|
|
|
|
end
|
2014-12-27 20:31:31 +01:00
|
|
|
|
|
|
|
minetest.register_craftitem("maptools:silver_coin", {
|
|
|
|
description = S("Silver Coin"),
|
|
|
|
inventory_image = "maptools_silver_coin.png",
|
|
|
|
wield_scale = {x = 0.5, y = 0.5, z = 0.25},
|
|
|
|
stack_max = 10000,
|
|
|
|
})
|
|
|
|
|
2021-06-27 01:51:29 +02:00
|
|
|
if maptools.config and maptools.config.enable_coin_crafting then
|
|
|
|
if minetest.get_modpath("moreores") then
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "maptools:silver_coin 10",
|
|
|
|
type = "shapeless",
|
|
|
|
recipe = { "moreores:silver_ingot", "moreores:silver_ingot" }
|
|
|
|
})
|
|
|
|
end
|
2020-04-29 11:40:04 +02:00
|
|
|
end
|
|
|
|
|
2014-12-27 20:31:31 +01:00
|
|
|
minetest.register_craftitem("maptools:gold_coin", {
|
|
|
|
description = S("Gold Coin"),
|
|
|
|
inventory_image = "maptools_gold_coin.png",
|
|
|
|
wield_scale = {x = 0.5, y = 0.5, z = 0.25},
|
|
|
|
stack_max = 10000,
|
2020-04-29 11:40:04 +02:00
|
|
|
})
|
|
|
|
|
2021-06-27 01:51:29 +02:00
|
|
|
if maptools.config and maptools.config.enable_coin_crafting then
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "maptools:gold_coin 10",
|
|
|
|
type = "shapeless",
|
|
|
|
recipe = { "default:gold_ingot", "default:gold_ingot" }
|
|
|
|
})
|
|
|
|
end
|
2014-12-27 20:31:31 +01:00
|
|
|
|
|
|
|
minetest.register_craftitem("maptools:infinitefuel", {
|
|
|
|
description = S("Infinite Fuel"),
|
|
|
|
inventory_image = "maptools_infinitefuel.png",
|
|
|
|
stack_max = 10000,
|
|
|
|
groups = {not_in_creative_inventory = maptools.creative},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "maptools:infinitefuel",
|
|
|
|
burntime = 1000000000,
|
|
|
|
})
|