Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local sd = "back"
- function setSide(side)
- sd = side
- end
- function off()
- redstone.setBundledOutput(sd, colors.white)
- end
- function offAll()
- redstone.setBundledOutput(sd, 0)
- end
- function red(vtime)
- if vtime == nil then
- redstone.setBundledOutput(sd, colors.red)
- else
- redstone.setBundledOutput(sd, colors.red)
- sleep(vtime)
- off()
- end
- end
- function blue(vtime)
- if vtime == nil then
- redstone.setBundledOutput(sd, colors.blue)
- else
- redstone.setBundledOutput(sd, colors.blue)
- sleep(vtime)
- off()
- end
- end
- function yellow(vtime)
- if vtime == nil then
- redstone.setBundledOutput(sd, colors.yellow)
- else
- redstone.setBundledOutput(sd, colors.yellow)
- sleep(vtime)
- off()
- end
- end
- function green(vtime)
- if vtime == nil then
- redstone.setBundledOutput(sd, colors.green)
- else
- redstone.setBundledOutput(sd, colors.green)
- sleep(vtime)
- off()
- end
- end
- function lightblue(vtime)
- if vtime == nil then
- redstone.setBundledOutput(sd, colors.lightBlue)
- else
- redstone.setBundledOutput(sd, colors.lightBlue)
- sleep(vtime)
- off()
- end
- end
- function lightgray(vtime)
- if vtime == nil then
- redstone.setBundledOutput(sd, colors.lightGray)
- else
- redstone.setBundledOutput(sd, colors.lightGray)
- sleep(vtime)
- off()
- end
- end
- function lime(vtime)
- if vtime == nil then
- redstone.setBundledOutput(sd, colors.lime)
- else
- redstone.setBundledOutput(sd, colors.lime)
- sleep(vtime)
- off()
- end
- end
- function brown(vtime)
- if vtime == nil then
- redstone.setBundledOutput(sd, colors.brown)
- else
- redstone.setBundledOutput(sd, colors.brown)
- sleep(vtime)
- off()
- end
- end
- function purple(vtime)
- if vtime == nil then
- redstone.setBundledOutput(sd, colors.purple)
- else
- redstone.setBundledOutput(sd, colors.purple)
- sleep(vtime)
- off()
- end
- end
- function magenta(vtime)
- if vtime == nil then
- redstone.setBundledOutput(sd, colors.magenta)
- else
- redstone.setBundledOutput(sd, colors.magenta)
- sleep(vtime)
- off()
- end
- end
- function cyan(vtime)
- if vtime == nil then
- redstone.setBundledOutput(sd, colors.cyan)
- else
- redstone.setBundledOutput(sd, colors.cyan)
- sleep(vtime)
- off()
- end
- end
- function pink(vtime)
- if vtime == nil then
- redstone.setBundledOutput(sd, colors.pink)
- else
- redstone.setBundledOutput(sd, colors.pink)
- sleep(vtime)
- off()
- end
- end
- function black(vtime)
- if vtime == nil then
- redstone.setBundledOutput(sd, colors.black)
- else
- redstone.setBundledOutput(sd, colors.black)
- sleep(vtime)
- off()
- end
- end
- function multi(vtime, color)
- if color == nil then
- return
- end
- if vtime == nil then
- redstone.setBundledOutput(sd, color)
- else
- redstone.setBundledOutput(sd, color)
- sleep(vtime)
- off()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement