tuekats

manaChecking

Jul 14th, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local modem = peripheral.wrap("back") -- Wraps the modem on the right side.
  2.  
  3. local compSide = "left"
  4.  
  5. while true do
  6.     local reading = redstone.getAnalogInput(compSide)
  7.     print("mana level: " ..reading)
  8.     modem.transmit(2, 2, reading )
  9.     sleep(10)
  10. end
Advertisement
Add Comment
Please, Sign In to add comment