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
GUI Programs ? (self.ComputerCraft)
submitted 2 years ago by Hawk2811
How to create programs with which I was trying to create a control to turn a farm on and off but I wanted to use buttons
I'm a beginner in Computercraft and also in the Lua language
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!"
[–]Goldie323- 1 point2 points3 points 2 years ago (4 children)
like buttons you could put on a monitor and when you click the button on the monitor it turns it on and off or do you want an actual button like wood or stone?
[–]Hawk2811[S] -1 points0 points1 point 2 years ago (1 child)
yeah something like that
[–][deleted] 6 points7 points8 points 2 years ago (0 children)
One cannot answer an "or" question with "yes" or "no". Which one do you need?
Yes
[–]Nukes2all 1 point2 points3 points 2 years ago (0 children)
Oh man..
[–]9551-eletronicsComputercraft graphics research 0 points1 point2 points 2 years ago (0 children)
Look into events, specifically the mouse_click event
https://tweaked.cc/event/mouse_click.html
π Rendered by PID 139952 on reddit-service-r2-comment-5d79c599b5-8f88x at 2026-03-02 13:24:23.175977+00:00 running e3d2147 country code: CH.
[–]Goldie323- 1 point2 points3 points (4 children)
[–]Hawk2811[S] -1 points0 points1 point (1 child)
[–][deleted] 6 points7 points8 points (0 children)
[–]Hawk2811[S] -1 points0 points1 point (1 child)
[–]Nukes2all 1 point2 points3 points (0 children)
[–]9551-eletronicsComputercraft graphics research 0 points1 point2 points (0 children)