Advertisement
Olitrum

Untitled

Feb 20th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. local modules = peripheral.find("neuralInterface")
  2. if not modules then
  3. error("Must have a neural interface", 0)
  4. end
  5. if not modules.hasModule("plethora:sensor") then
  6. error("Must have an entity sensor", 0)
  7. end
  8. if not modules.hasModule("plethora:introspection") then
  9. error("Must have an introspection module", 0)
  10. end
  11. if not modules.hasModule("plethora:laser", 0) then
  12. error("Must have a laser", 0)
  13. end
  14. while true do
  15. local meta = modules.getMetaOwner()
  16. local event, key = os.pullEvent()
  17. if event == "key" and key == keys.x then
  18. modules.fire(meta.yaw, meta.pitch, 5)
  19. sleep(0.2)
  20. else
  21. sleep(0.1)
  22. end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement