Guest User

startup

a guest
May 27th, 2015
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.02 KB | None | 0 0
  1. net = peripheral.wrap("back")
  2. bridge = peripheral.wrap("left")
  3. bridge.clear()
  4. --count = 0
  5. while true do
  6. stored = net.callRemote("openblocks_tank_5","getTankInfo")
  7. tank2 = net.callRemote("openblocks_tank_6","getTankInfo")
  8. barrel = net.callRemote("mcp_mobius_betterbarrel_0","getStoredItems")
  9. if stored[1].contents then
  10. local capacity = stored[1].capacity
  11. local amount = stored[1].contents.amount
  12. local name = stored[1].contents.rawName
  13. -- count = count + 5
  14. print(stored)
  15. print(tank2)
  16. print(barrel)
  17. --bridge.addGradientBox(0,0,900,50,0xFF0000,0.8,0x00FF00,0.8,1)
  18. bridge.addBox(0,0,900,50,0x00CCFF,0.3)
  19. bridge.addBox(0,250,90,40,0x00CCFF,0.2)
  20. bridge.addText(1,255, "By Fatal1tyGC", 0xFF0000)
  21. bridge.addText(1,265, "This script",0xFFFF00)
  22. bridge.addText(1,275, "Runs Statview 0.1",0xFF0000)
  23. bridge.addText(1,1, name..": "..amount.."/"..capacity, 0xFF0000)
  24. bridge.addText(1,10,tank2, 0xFFFFFF)
  25. bridge.addText(1,20, barrel, 0xFF0000)
  26. else
  27. name = "No Fluid"
  28. amount = 0
  29. end
  30. sleep(0.15)
  31. bridge.sync()
  32. bridge.clear()
  33. end
Advertisement
Add Comment
Please, Sign In to add comment