Advertisement
Guest User

MaximoTG98

a guest
Mar 31st, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. local component = require("component")
  2. local sides = require("sides")
  3. local rs = component.redstone
  4.  
  5. while true do
  6. reds = rs.getInput(sides.back)
  7. if reds == 0 then
  8. print("There isn't redstone")
  9. elseif reds ~= 0 then
  10. print("There is redstone")
  11. rs.setOutput(sides.front,15)
  12. end
  13. end
  14.  
  15.  
  16. OpenComputers mod version: 1.7.1.43
  17. Photos of the setup:
  18. https://prntscr.com/iyzf7g
  19. https://prntscr.com/iyzf72
  20. Screenshot of the error:
  21. https://prntscr.com/iyzg5a
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement