robocyclone

Skele Crush Farm 2

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