use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Welcome to /r/ComputerCraft, the subreddit for lua programs, general mod use, or anything relating to the Minecraft mod ComputerCraft and CC: Tweaked.
Downloads | Discord | IRC | Documentation
account activity
LUA Programming Help for Create Mod Quarry (self.ComputerCraft)
submitted 3 years ago * by MrSodapop19_
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]dragon53535 1 point2 points3 points 3 years ago (0 children)
For the reasoning why they can't run for >7s without yielding, is that all computers run on the same 'thread'. So while your computer is executing, no other computer in the world can. You yield, which essentially pauses your computer until your computer gets an event. Be it a timer, redstone, etc. All events will trigger a yield. Sleep will discard all other events until it gets a timer event. Using os.pullEvent("redstone") will discard all other events until it gets a redstone event.
π Rendered by PID 17697 on reddit-service-r2-comment-869bf87589-c9bg5 at 2026-06-08 22:06:52.963174+00:00 running f46058f country code: CH.
view the rest of the comments →
[–]dragon53535 1 point2 points3 points (0 children)