Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pwrap = peripheral.wrap("tconstruct_smelterydrain_1")
- mon = peripheral.wrap("monitor_0")
- term.redirect(mon)
- --term.clear()
- --term.setCursorPos(1,1)
- while true do
- sleep(1)
- term.clear()
- term.setCursorPos(1,1)
- local tabinf = pwrap.getTankInfo("unknown") --also tried an actual direction, didnt work
- --print(tabinf[1]) debug nonesense ignore this
- for k,v in pairs(tabinf) do
- --print(k,v)
- for x,y in pairs(v) do
- -- print(x..": "..y)
- if x == "rawName" then
- -- write(y..": ")
- if y:sub(1,7) == "Molten " then
- write(y:sub(8,#y)..": ")
- else
- write(y..": ")
- end
- end
- if x == "amount" then
- ingot = math.floor(y/144)
- -- ingot = y/144
- print(ingot)
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment