Advertisement
Guest User

test.lua

a guest
Jun 4th, 2014
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1. local component = require("component")
  2. local sides = require("sides")
  3. local os = require("os")
  4. local colors = require("colors")
  5.  
  6. rs = component.redstone
  7.  
  8. function checktop()
  9.   return rs.getOutput(sides.top)
  10.   end
  11.  
  12. print("The redstone I/O is currently outputting " .. tostring(checktop()) .. " signal strength.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement