101 lines
1.7 KiB
Lua
Raw Normal View History

2012-10-11 22:03:57 +06:00
MINERALS_LIST={
'lapis',
'anthracite',
'brown_coal',
'coal',
'bituminous_coal',
'magnetite',
'hematite',
'limonite',
'bismuthinite',
'cassiterite',
'galena',
'garnierite',
'malachite',
'native_copper',
'native_gold',
'native_platinum',
'native_silver',
'sphalerite',
'tetrahedrite',
'bauxite',
}
MINERALS_DESC_LIST={
'Lapis',
'Anthracite',
'Brown coal',
'Coal',
'Bituminous coal',
'Magnetite',
'Hematite',
'Limonite',
'Bismuthinite',
'Cassiterite',
'Galena',
'Garnierite',
'Malachite',
'Native copper',
'Native gold',
'Native platinum',
'Native silver',
'Sphalerite',
'Tetrahedrite',
'Bauxite',
}
for i=1, #MINERALS_LIST do
minetest.register_craftitem("minerals:"..MINERALS_LIST[i], {
description = MINERALS_DESC_LIST[i],
inventory_image = "minerals_"..MINERALS_LIST[i]..".png",
})
end
minetest.register_craftitem("minerals:flux", {
description = "Flux",
inventory_image = "minerals_flux.png",
})
2012-10-27 11:21:26 +06:00
minetest.register_craftitem("minerals:borax", {
description = "Borax",
inventory_image = "minerals_borax.png",
})
minetest.register_craft({
type = "shapeless",
output = "minerals:flux 8",
recipe = {"minerals:borax"},
})
2012-10-11 22:03:57 +06:00
-------------------------------------------------
minetest.register_craft({
type = "fuel",
recipe = "minerals:brown_coal",
burntime = 25,
})
minetest.register_craft({
type = "fuel",
recipe = "minerals:coal",
burntime = 40,
})
minetest.register_craft({
type = "fuel",
recipe = "minerals:anthracite",
burntime = 50,
})
minetest.register_craft({
type = "fuel",
recipe = "minerals:bituminous_coal",
burntime = 25,
})
minetest.register_craft({
type="cooking",
output="default:coal_lump",
2012-11-25 19:23:02 +06:00
recipe="group:log",
2012-10-27 11:21:26 +06:00
})