Advertisement
TechManDylan

Yeet

Apr 24th, 2021
1,209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 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.  
  6. if not modules.hasModule("plethora:sensor") then
  7.     error("Must have an entity sensor", 0)
  8. end
  9. if not modules.hasModule("plethora:introspection") then
  10.     error("Must have an introspection module", 0)
  11. end
  12. if not modules.hasModule("plethora:kinetic") then
  13.     error("Must have an kinetic module", 0)
  14. end
  15.  
  16. while true do
  17.     local meta = modules.getMetaOwner()
  18.     if meta.isSneaking then
  19.         modules.launch(meta.yaw, meta.pitch, 4)
  20.         sleep(0.2)
  21.     else
  22.         sleep(0.1)
  23.     end
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement