Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tSides = {"left","right","bottom","top","front","back"}
- while true do
- if rs.getInput("front") == true then
- redstone.setOutput("top", true)
- redstone.setOutput("bottom", true)
- redstone.setOutput("left", true)
- redstone.setOutput("right", true)
- redstone.setOutput("back", true)
- local side = peripheral.find("monitor")
- for i = 1, #tSides do
- monitor = peripheral.wrap(tSides[i])
- if monitor then
- shell.run("monitor", tSides[i], "movie-code")
- end
- end
- else
- redstone.setOutput("top", false)
- redstone.setOutput("bottom", false)
- redstone.setOutput("left", false)
- redstone.setOutput("right", false)
- redstone.setOutput("back", false)
- end
- sleep(0.25)
- end
Add Comment
Please, Sign In to add comment