realtest_mt5/mods/minerals/init.lua

125 lines
2.0 KiB
Lua
Raw Normal View History

local MINERALS_LIST={
2020-03-30 22:41:58 +02:00
'lazurite',
'anthracite',
'lignite',
'bituminous_coal',
'magnetite',
'hematite',
'limonite',
'bismuthinite',
'cassiterite',
'galena',
'garnierite',
'malachite',
'native_copper',
'native_gold',
'native_platinum',
'native_silver',
'sphalerite',
'tetrahedrite',
'bauxite',
---------------------------
'cinnabar',
'cryolite',
'graphite',
'gypsum',
'jet',
'kaolinite',
'kimberlite',
'olivine',
'petrified_wood',
'pitchblende',
'saltpeter',
'satin_spar',
'selenite',
'serpentine',
'sulfur',
'sylvite',
'tenorite',
'charcoal'
}
local MINERALS_DESC_LIST={
2020-03-30 22:41:58 +02:00
'Lazurite',
'Anthracite',
'Lignite',
'Bituminous coal',
'Magnetite',
'Hematite',
'Limonite',
'Bismuthinite',
'Cassiterite',
'Galena',
'Garnierite',
'Malachite',
'Native copper',
'Native gold',
'Native platinum',
'Native silver',
'Sphalerite',
'Tetrahedrite',
'Bauxite',
---------------------------
'Cinnabar',
'Cryolite',
'Graphite',
'Gypsum',
'Jet',
'Kaolinite',
'Kimberlite',
'Olivine',
'Petrified wood',
'Pitchblende',
'Saltpeter',
'Satin Spar',
'Selenite',
'Serpentine',
'Sulfur',
'Sylvite',
'Tenorite',
'Charcoal'
}
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",
})
minetest.register_craftitem("minerals:borax", {
description = "Borax",
inventory_image = "minerals_borax.png",
})
-------------------------------------------------
minetest.register_craft({
type = "fuel",
recipe = "minerals:charcoal",
burntime = 20,
})
minetest.register_craft({
type = "fuel",
recipe = "minerals:lignite",
burntime = 25,
})
minetest.register_craft({
type = "fuel",
recipe = "minerals:bituminous_coal",
burntime = 35,
})
minetest.register_craft({
type = "fuel",
recipe = "minerals:anthracite",
burntime = 50,
})