SHOW:
|
|
- or go back to the newest paste.
| 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 |