24,493 ARTICLES
ON THIS WIKI

Module:TConstruct

Documentation for this module may be created at Module:TConstruct/doc

local p = {}

p.minelvl = {"Stone", "Iron", "Redstone", "Obsidian", "Cobalt", "Manyullyn"}

function p.mwMineLvl(frame)
	local lvl = frame.args[1]
	if lvl and tonumber(lvl) and p.minelvl[lvl + 1] then
		return lvl .. " (" .. p.minelvl[lvl + 1] .. ")"
	end
	return lvl
end
return p