Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- INFO: For this to work, you need a Advanced Computer and a Advanced Nuclear Information Reader with liquid sensor location cards in it
- -- peripheral
- nir = peripheral.wrap("back") --Nuclear Information Reader
- local mon = peripheral.wrap("top") --Advanced Monitor
- term.redirect(mon)
- mon.setTextScale(1)
- mon.setCursorPos(20,1)
- mon.clear()
- --- LOOP START--
- while true do --Always loop
- term.setTextColor( colors.purple)
- mon.setCursorPos(10,1)
- print("|Casio 6001k|")
- term.setTextColor( colors.white)
- mon.setCursorPos(15,3)
- print("Buckets")
- print("\n")
- --Basic function
- local x = 1
- while x < 10 do
- mon.setCursorPos(6,4+x)
- id, state, title, data = nir.get(x)
- x= x+1
- -- liquid search starts here
- -- 69
- if data.liquidId == 21269 then
- if data.liquidMeta == 4 then
- term.setTextColor( colors.gray)
- print("Wolframium: "..(data.amount/1000))
- elseif data.liquidMeta == 5 then
- term.setTextColor( colors.lightBlue)
- print("Lithium: "..(data.amount/1000))
- elseif data.liquidMeta == 7 then
- term.setTextColor( colors.brown)
- print("Silicon: "..(data.amount/1000))
- elseif data.liquidMeta == 10 then
- term.setTextColor( colors.green)
- print("Berylium: "..(data.amount/1000))
- elseif data.liquidMeta == 12 then
- term.setTextColor( colors.cyan)
- print("Sodium: "..(data.amount/1000))
- elseif data.liquidMeta == 16 then
- term.setTextColor( colors.pink)
- print("Mercury: "..(data.amount/1000))
- end
- -- 70
- elseif data.liquidId == 21270 then
- if data.liquidMeta == 0 then
- term.setTextColor( colors.blue)
- print("Hydrogen: "..(data.amount/1000))
- elseif data.liquidMeta == 1 then
- term.setTextColor( colors.yellow)
- print("Deuterium: "..(data.amount/1000))
- elseif data.liquidMeta == 2 then
- term.setTextColor( colors.red)
- print("Tritium: "..(data.amount/1000))
- elseif data.liquidMeta == 3 then
- term.setTextColor( colors.yellow)
- print("Helium: "..(data.amount/1000))
- elseif data.liquidMeta == 6 then
- term.setTextColor( colors.yellow)
- print("Helium-3: "..(data.amount/1000))
- end
- -- 71
- elseif data.liquidId == 21271 then
- if data.liquidMeta == 3 then
- term.setTextColor( colors.yellow)
- print("Helium Plasma: "..(data.amount/1000))
- elseif data.liquidMeta == 1 then
- term.setTextColor( colors.yellow)
- print("Deuterium: "..(data.amount/1000))
- elseif data.liquidMeta == 2 then
- term.setTextColor( colors.red)
- print("Tritium: "..(data.amount/1000))
- end
- elseif data.liquidId == 0 then
- term.setTextColor(colors.black)
- print("Tank empty")
- else
- print("No card info in slot "..x)
- end
- end -- while x
- os.sleep(2)
- mon.clear()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement