Advertisement
JaMaNi133

tinkers

May 1st, 2022 (edited)
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | None | 0 0
  1. local sodes = {"back","top","right"}
  2. while True do
  3.     ind = read("port id : ")
  4.     sleep(3)
  5.     drain(tonumber(ind))
  6.  
  7.     sleep(10)
  8. end
  9. function drain (index)
  10.     side = sides[math.floor(index/13 + 1)]
  11.     color =  2^((index-1)%13)
  12.  
  13.     redstone.setBundledOutput(side,color)
  14.     sleep(2/20)
  15.     redstone.setBundledOutput(side,0)
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement