elytra fly tweak

This commit is contained in:
kepler155c@gmail.com
2019-02-15 06:30:13 -05:00
parent 88c9d33758
commit cbfc5901f3

View File

@@ -4,7 +4,9 @@ local Sound = require('sound')
local modules = _G.peripheral.wrap('back') local modules = _G.peripheral.wrap('back')
local os = _G.os local os = _G.os
local parallel = _G.parallel
local function run()
while true do while true do
local meta = modules.getMetaOwner() local meta = modules.getMetaOwner()
@@ -30,3 +32,19 @@ while true do
os.sleep(0.4) os.sleep(0.4)
end end
end end
end
parallel.waitForAny(
function()
print('press any key to exit')
os.pullEvent('char')
end,
function()
while true do
print('Starting')
local s, m = pcall(run)
print(m)
print('Waiting for 5 seconds before restarting')
os.sleep(5)
end
end)