Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. local component = require("component") --require component in order to use the component API
  2. local sides = require("sides")
  3. local redstone = component.redstone -- create the variable "redstone" (which is shorter than typing out component.redstone)
  4. local function wait(seconds)
  5. local begin = os.time()
  6. repeat
  7. computer.pullSignal(0.05)
  8. until os.time() - begin >= seconds
  9. end
  10. while true do
  11. redstone.setOutput(sides.left, 15)
  12. wait(0.1)
  13. redstone.setOutput(sides.left, 0)
  14. wait(0.1)
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement