daily pastebin goal
20%
SHARE
TWEET

Recieve

Quant Jan 15th, 2016 (edited) 117 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. e=require('event')
  2. local b,bb='',''
  3.  
  4. while true do
  5.  local _,_,_,_,rs=e.pull(3,'redstone_changed')
  6.  if not rs then break end
  7.  if rs>0 then
  8.  
  9.   if rs==12 then
  10.    bb=bb..(string.char(tonumber(b))) b=''
  11.  else
  12.   b=b..tostring(rs-1)
  13.   end
  14.  end
  15. end
  16. arg={...}
  17. if arg[1] then
  18.  f=io.open(arg[1],'w') f:write(bb) f:flush()f:close()
  19. else print(bb)
  20. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top