Skip to content

Commit

Permalink
add scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Him188 committed Oct 8, 2023
0 parents commit 179bdf8
Show file tree
Hide file tree
Showing 5 changed files with 543 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/.idea
1 change: 1 addition & 0 deletions ICReactor/README.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# V1
17 changes: 17 additions & 0 deletions ICReactor/test.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
-- rm v1.lua && wget http://192.168.5.102/mc/v1.lua && v1

coroutine.wrap(function()
while true do
print("111")
wait(1)
end
end)()

function wait(t)
t = t or 0 -- default is 0 seconds
local start = tick()
local stop = start + t
repeat coroutine.yield() until tick() > stop
-- Return the time we waited + that second thingy of wait
return tick() - start, tick() -- #2 isn't tick(), but nobody knows
end
Loading

0 comments on commit 179bdf8

Please sign in to comment.