forked from Wuzzy/realtest_mt5
125 lines
2.0 KiB
Lua
125 lines
2.0 KiB
Lua
local MINERALS_LIST={
|
|
'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={
|
|
'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,
|
|
})
|