robocyclone

Crusher 3

Feb 21st, 2016
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. local cSide = ...
  2. local mSide = "top"
  3. local mHandle = peripheral.wrap(mSide)
  4. mHandle.setTextScale = .5
  5. function outputRedstoneOnSide(t,s)
  6.     if not t then return end
  7.     if not s then return end
  8.     rs.setOutput(s, true)
  9.     for i = 1, t, .5 do
  10.         mHandle.write("Crushing, " .. i .. " seconds left.")
  11.         sleep(.5)
  12.         mHandle.clear()
  13.     end
  14.     rs.setOutput(s, false)
  15. end
  16. outputRedstoneOnSide(9.5, cSide)
Advertisement
Add Comment
Please, Sign In to add comment