Made description work

This commit is contained in:
Yaman 2015-08-02 21:15:12 -04:00
parent 81ba3a81f8
commit 02964f00f2
2 changed files with 8 additions and 9 deletions

@ -1,6 +1,6 @@
local emcs = { local emcs = {
["default"] = { ["default"] = {
stone = 2, stone = 4,
cobble = 1, cobble = 1,
desert_stone = 1, desert_stone = 1,
stonebrick = 1, stonebrick = 1,
@ -72,14 +72,11 @@ local emcs = {
clay_brick = 16, clay_brick = 16,
} }
} }
-- block = { minetest.override_item("wool:green", {
-- ["default:"] = { description = "dlkasjfdslkfjlskadj"
-- } })
-- }
for modname, itemlist in pairs(emcs) do
for modname, itemlist in emcs do
for itemname, emcvalue in pairs(itemlist) do for itemname, emcvalue in pairs(itemlist) do
minetest.override_item(modname..":"..itemname, { minetest.override_item(modname..":"..itemname, {
-- Weird bug or whatever -- Weird bug or whatever
@ -88,6 +85,7 @@ for modname, itemlist in emcs do
-- if the latter, you can't redefine items at runtime. -- if the latter, you can't redefine items at runtime.
-- if the former, that may be a bug in the engine -- if the former, that may be a bug in the engine
-- description = minetest.registered_items[itemname].description.."\nEMC = "..tostring(emcvalue), -- description = minetest.registered_items[itemname].description.."\nEMC = "..tostring(emcvalue),
description = "ljlkj",
emc = emcvalue, emc = emcvalue,
}) })
end end

@ -4,4 +4,5 @@ dofile(minetest.get_modpath("equivalent_exchange").."/condenser.lua")
dofile(minetest.get_modpath("equivalent_exchange").."/philosophers_stone.lua") dofile(minetest.get_modpath("equivalent_exchange").."/philosophers_stone.lua")
dofile(minetest.get_modpath("equivalent_exchange").."/normal_items.lua") dofile(minetest.get_modpath("equivalent_exchange").."/normal_items.lua")
print("[equivalent_exchange] Mod loaded!") print("[equivalent_exchange] Mod loaded!")
minetest.log("action","hello world")