Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local sodes = {"back","top","right"}
- while True do
- ind = read("port id : ")
- sleep(3)
- drain(tonumber(ind))
- sleep(10)
- end
- function drain (index)
- side = sides[math.floor(index/13 + 1)]
- color = 2^((index-1)%13)
- redstone.setBundledOutput(side,color)
- sleep(2/20)
- redstone.setBundledOutput(side,0)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement