Feldherren

Minecraft: Immersive Engineering Silo Fullness Thing

Feb 1st, 2016
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.37 KB | None | 0 0
  1. -- configuration --
  2. local siloSide = "back"
  3. local wait = 5
  4. -- configuration --
  5.  
  6. local monitor = peripheral.find("monitor")
  7. monitor.setTextScale(2)
  8. quit = false
  9. while not quit do
  10.     if monitor then
  11.         monitor.clear()
  12.         monitor.write(rs.getAnalogInput(siloSide))
  13.     end
  14.     sleep(wait)
  15.     local event, key, isHeld = os.pullEvent("key")
  16.     if event then
  17.         quit = true
  18.     end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment