diff --git a/neural/autorun/interface.lua b/neural/autorun/interface.lua index d063369..942996e 100644 --- a/neural/autorun/interface.lua +++ b/neural/autorun/interface.lua @@ -18,8 +18,9 @@ if device.neuralInterface and device.wireless_modem then gpt.z = math.min(math.max(gpt.z, -15), 15) return device.neuralInterface.walk(gpt.x, gpt.y, gpt.z) else - local y, p = ni.yap(pt, { x = x, y = y + 2, z = z }) - return ni.launch(y, p, 1) + local y, p = ni.yap(pt, { x = x, y = y + 3, z = z }) + ni.look(y, 0) + return ni.launch(y, p, 1.5) end end) end diff --git a/neural/elytraFly.lua b/neural/elytraFly.lua new file mode 100644 index 0000000..d3da878 --- /dev/null +++ b/neural/elytraFly.lua @@ -0,0 +1,26 @@ +-- credit: osmarks https://pastebin.com/ZP9Q1HCT + +local modules = _G.peripheral.wrap "back" +local os = _G.os + +local function get_meta() + return modules.getMetaOwner() +end + +while true do + local meta = get_meta() + local power = 4 + if meta.isElytraFlying or meta.isFlying then power = 1 end + + while meta.isSneaking or meta.isFlying or meta.isElytraFlying do + meta = get_meta() + modules.launch(meta.yaw, meta.pitch, power) + os.sleep(0.1) + end + + if meta.motionY < -0.8 then + modules.launch(0, 270, power / 2) + end + + os.sleep(0.4) +end