Advertisement
Guest User

fly.lua

a guest
Apr 3rd, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement