58 the problem is that armor loses durability by just wearing it and I need more leather if I want to get metal armor. Also I hate that the compass in Survivalcraft is gated behind diamonds which I expect to find very deep
function getBackground()
local JSON = assert(loadfile "/home/lenscas/.config/awesome/default/extraLua/JSON.lua")() -- one-time load of the routines
local f = assert (io.popen ('curl --data "" http://chillstep.info/jsonLoadGal.php?gal=gal-epic'))
local rawText="";
for line in f:lines() do
rawText=rawText..line
end -- for loop
f:close()
local inJson = JSON:decode(rawText)
math.randomseed(os.time())
local key=math.random(1,#inJson)
print(inJson[key])
--print(table.concat(inJson))
os.execute('wget http://chillstep.info'..inJson[key]..' -O /home/lenscas/backgrounds/awesome/newBackground')
end
getBackground()