osmarks

flight2

Apr 4th, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local modules = peripheral.wrap "back"
  2.  
  3. os.loadAPI "metaowner.lua"
  4. metaowner.upgrade(modules)
  5.  
  6. while true do
  7.     local meta = modules.getMetaOwner()
  8.    
  9.     if meta.motionY < -0.3 then
  10.         modules.launch(0, 270, math.min(4, math.abs(meta.motionY)))
  11.     end    
  12.    
  13.     if meta.isSneaking then
  14.         modules.launch(meta.yaw, meta.pitch, 3)
  15.     end
  16. end
Add Comment
Please, Sign In to add comment