minetest-mm/mods/charcoal/init.lua

62 lines
1 KiB
Lua
Raw Permalink Normal View History

2021-12-05 14:17:16 +01:00
--[[
Charcoal
========
Copyright (c) 2012 Gal Buki <torusJKL@gmail.com>
Version: 0.2
Depends: default
License for code:
GPLv2 or later
(http://www.gnu.org/licenses/gpl-2.0.html)
License for texture:
Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
(http://creativecommons.org/licenses/by-sa/3.0/)
--]]
local modname = "charcoal"
-- Used for localization
local S = minetest.get_translator("charcoal")
--
-- Crafting definition
--
2020-10-26 17:38:53 +01:00
minetest.register_craft({
2021-12-05 14:17:16 +01:00
output = 'default:torch 4',
recipe = {
{'charcoal:charcoal_lump'},
{'default:stick'},
}
2020-10-26 17:38:53 +01:00
})
minetest.register_craft({
2021-12-05 14:17:16 +01:00
type = "fuel",
recipe = "charcoal:charcoal_lump",
burntime = 40,
2020-10-26 17:38:53 +01:00
})
2021-12-05 14:17:16 +01:00
--
-- Cooking recipes
--
2020-10-26 17:38:53 +01:00
minetest.register_craft({
2021-12-05 14:17:16 +01:00
type = "cooking",
output = "charcoal:charcoal_lump",
recipe = "group:tree",
})
--
-- Crafting items
--
minetest.register_craftitem("charcoal:charcoal_lump", {
description = S("Lump of charcoal"),
inventory_image = "charcoal_lump.png",
2020-10-26 17:38:53 +01:00
})