fixed emcs.lua

This commit is contained in:
Yaman 2015-08-03 00:02:05 -04:00
parent f6df71136d
commit 69e7c0bc05

@ -1,107 +1,83 @@
local emcs = { local emcs = {
node = { ["default"] = {
["default:"] = { stone = 4,
stone = 2, cobble = 1,
cobble = 1, desert_stone = 1,
desert_stone = 1, stonebrick = 1,
stonebrick = 1, desert_stonebrick = 1,
desert_stonebrick = 1, dirt_with_grass = 50,
dirt_with_grass = 50, dirt_with_snow = 50,
dirt_with_snow = 50, dirt = 1,
dirt = 1, sand=1,
sand=1, desert_sand = 1,
desert_sand = 1, gravel = 4,
gravel = 4, sandstone = 4,
sandstone = 4, sandstonebrick = 4,
sandstonebrick = 4, clay = 16,
clay = 16, brick = 16,
brick = 16, tree = 32,
tree = 32, jungletree = 32,
jungletree = 32, junglewood = 8,
junglewood = 8, cactus = 8,
cactus = 8, papyrus = 32,
papyrus = 32, bookshelf = 336,
bookshelf = 336, glass = 1,
glass = 1, fence_wood = 12,
fence_wood = 12, rail = 96,
rail = 96, ladder = 14,
ladder = 14, wood = 8,
wood = 8, torch = 9,
torch = 9, sign_wall = 52,
sign_wall = 52, chest = 64,
chest = 64, chest_locked = 320,
chest_locked = 320, furnace = 8,
furnace = 8, mossycobble = 1,
mossycobble = 1, mese=75978,
mese=75978, obsidian = 64,
obsidian = 64, stick = 2,
} paper = 96,
}, book = 288,
craftitem = {
["default:"] = {
stick = 2,
paper = 96,
book = 288,
-- Old Value: 128 -- Old Value: 128
-- Precise Value: 57 -- Precise Value: 57
coal_lump = 55, coal_lump = 55,
-- Old Value: 8442 -- Old Value: 8442
-- Precise Value: 420 (including blocks) -- Precise Value: 420 (including blocks)
mese_crystal = 425, mese_crystal = 425,
-- Old Value: 8192 -- Old Value: 8192
-- Precise Value: 848 -- Precise Value: 848
diamond = 850, diamond = 850,
clay_lump = 16, clay_lump = 16,
-- Old Value: 256 -- Old Value: 256
-- Precise Value (of lump): 61 -- Precise Value (of lump): 61
steel_ingot = 90, steel_ingot = 90,
-- Old Value: 85 -- Old Value: 85
-- Precise Value (of lump): 146 -- Precise Value (of lump): 146
copper_ingot = 225, copper_ingot = 225,
--Old Value: 255 --Old Value: 255
bronze_ingot = 90 + 225, bronze_ingot = 90 + 225,
-- Old Value: 2048 -- Old Value: 2048
-- Precise Value (of lump): 442 -- Precise Value (of lump): 442
gold_ingot = 675, gold_ingot = 675,
-- Old Value: 938 -- Old Value: 938
-- Precise Value: 47 -- Precise Value: 47
mese_crystal_fragment = 25, mese_crystal_fragment = 25,
clay_brick = 16, clay_brick = 16,
}
} }
-- block = {
-- ["default:"] = {
-- }
-- }
} }
-- for type, emcset in pairs(emcs) do for modname, itemlist in pairs(emcs) do
-- for prefix, subs in pairs(emcset) do for itemname, emcvalue in pairs(itemlist) do
-- for name, emc in pairs(subs) do minetest.override_item(modname..":"..itemname, {
-- local ornode = minetest.registered_items[prefix..name] description = minetest.registered_items[modname..":"..itemname].description.."\nEMC = "..tostring(emcvalue),
-- local node = {emc=emc} emc = emcvalue,
-- for tagname, tagvalue in pairs(ornode) do })
-- node[tagname] = tagvalue
-- end
-- minetest["register_"..type](":"..prefix..name, node)
-- end
-- end
-- end
for type, emctable in pairs(emcs) do
for modname, itemlist in pairs(emctable) do
for itemname, emcvalue in pairs(itemlist) do
minetest.override_item(modname..itemname, {
emc = emcvalue,
})
end
end end
end end