mirror of
https://github.com/ZNixian/equivalent_exchange.git
synced 2024-12-26 23:17:28 +01:00
Made description work
This commit is contained in:
parent
81ba3a81f8
commit
02964f00f2
@ -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
|
||||||
|
@ -5,3 +5,4 @@ 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")
|
Loading…
Reference in New Issue
Block a user