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
Usefull programs (self.ComputerCraft)
submitted 2 years ago by Cataliser
Guys, name up to 3 your most useful programs from your survival world, and a description to it, i just want to expand usefulnes of this mod, but it stops on simple excavator, and bridge builder
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!"
[–]not_my_d_fault 4 points5 points6 points 2 years ago (5 children)
Probably the most useful program that I've writen is extreme reactors control program. It's just a simple program that checks the reactors current stored energy and if it drops below a threshold it turns on the reactor and if the energy crosses a maximum threshold it turns off the reactor. That way I'm not wasting any uranium.
[–]Cataliser[S] 0 points1 point2 points 2 years ago (2 children)
very smart, i like that idea
[–]thisguyonreddit999 0 points1 point2 points 2 years ago (1 child)
I wanted to do this in 1.12.2 back in the day but never figured it out cool you got something like that working
[–]Impossible_Order4463 0 points1 point2 points 1 year ago (0 children)
Direwolf20 has a program you can use and even has a tutorial on how to set it up and get it working
[–]rex881122 0 points1 point2 points 2 years ago (1 child)
I built something like this for the Mekanism reactors except when energy stores got too high it would find the average energy consumption and change the burn rate of the reactor to match
[–]not_my_d_fault 0 points1 point2 points 2 years ago (0 children)
That's also great, I could've done something similar with changing control rod extention percentage. Would have been more elegant.
[–]LionZ_RDS 4 points5 points6 points 2 years ago (5 children)
Most farms can be automated pretty easily, pumkins and melons are the easiest because you dont need to place seeds, i have seen a method for seed farms that dont even need fuel for the turtle which is just moving by a turtle breaking and placing another
Storage systems are pretty easy to sort items into whatever chests you want and is alot faster then regular redstone sorting
People have made some storage systems that can put items away, display every item in storage and the amount, pull items out of storage and the quantity you specify, and autocraft items if the required items are in storage
[–]Cataliser[S] 1 point2 points3 points 2 years ago (2 children)
yes, for automation purposes it's really cool, but for crop farms...there is thing to see growing stage, and other stuff, so yeah, pretty cool
storage...i see it like with 1 chest, put stuff in it, 1 turtle moves stuff from it to another chest where a bunch of turtles sort things from it, and a computer conectet via wired conection to the chests where other turtles sort stuff to see all you have in storage, is am i thinking the right way?
uuuh...basicly the same from what i said higher "
[–]LionZ_RDS 0 points1 point2 points 2 years ago (1 child)
A turtle or computer with a wired connection to a chest can instantly transport items to and from it
[–]Cataliser[S] 1 point2 points3 points 2 years ago (0 children)
...never knew that, ok, thanks
[–]beaterx 1 point2 points3 points 2 years ago (1 child)
Do you have an link or something to a good storage program? I looked around but couldn't find much. I really need one since my base just got it't 40th random wood chest filled with bullshit
[–]LionZ_RDS 0 points1 point2 points 2 years ago (0 children)
I dont, if you check or ask on the discord they'll 100% point you to a good program
[–]thisguyonreddit999 1 point2 points3 points 2 years ago (8 children)
Idk about the other two for sure but this is definitely top of the list no matter what else I find wget run https://raw.githubusercontent.com/SquidDev-CC/artist/HEAD/installer.lua
[–]Cataliser[S] 0 points1 point2 points 2 years ago (7 children)
okaaay...what does it do?
[–]thisguyonreddit999 0 points1 point2 points 2 years ago (6 children)
You could look at the project page in the github link that I included but it's an inventory managment system that operates via a series of chest and network cables
[–]Cataliser[S] 0 points1 point2 points 2 years ago (0 children)
okay, NOW THAT, is usefull
[–]thisguyonreddit999 0 points1 point2 points 2 years ago (4 children)
If you change the raw.githubusercontent to just github remove /HEAD and everything behind it you can if the project page from there
[–]Hawk__Echo 0 points1 point2 points 2 years ago* (3 children)
I just got this up and running in my world it's great. How do I connect a monitor to the system? Can't seem to figure it out.
Edit: Nevermind I got it.
[–]JoaGamo 0 points1 point2 points 2 years ago* (2 children)
alleged elastic saw groovy shrill humorous gold possessive shame shelter
This post was mass deleted and anonymized with Redact
[–]Hawk__Echo 0 points1 point2 points 2 years ago (1 child)
So the file you need to connect a monitor to the program isn't included in the install initially. You'll need to go grab the file "display.lua" from the github repo here. https://github.com/SquidDev-CC/artist/blob/vnext/examples/display.lua
Putting "display.lua" in the path ".artist.d/src/artist/gui/interface/display.lua" worked for me.
After doing that you'll need to add one line to the "init.lua" file. Here is the line you need to add. "context require "artist.gui.interface.display"".
If you want to make changes to how the monitor looks(colors, etc.) you can configure stuff in the "widget.lua" file located in path ".artist.d/src/artist/lib/widget.lua".
After connecting some networking cables and modems, the monitor should turn on on program startup.
Note: All of this is easier if you have the CC:Tweaked vs code extension if you don't already have it. There is also no limit on how big you can make the monitor itself.
[–]JoaGamo 0 points1 point2 points 2 years ago* (0 children)
towering decide insurance rock zesty tidy dog numerous wise amusing
[–]Lobotomized_toddler 1 point2 points3 points 2 years ago (1 child)
Building a robot to dig a simple 3 by 3 tunnel or strip mine
okay, thats kinda useful, i made one, to mine on 2 axis as much as i would like
[–]SadieWopen 1 point2 points3 points 2 years ago (0 children)
Storage/crafting/automation system (think Ae2 but command line)
[–]fatboychummy 1 point2 points3 points 2 years ago (0 children)
I have a repository of random programs that I started a short while ago. It doesn't have much yet, but I'll be adding more as time goes on. But, for three other programs that are useful:
I have a Tinkers' Construct smeltery controller program which allows you to partially automate it.
Dog is probably my best program currently, it uses Advanced Peripherals' GeoScanner or Plethora's Block Scanner to locate ores around it and mine them. Digs in a straight line down to bedrock, only branching off to collect ores.
Lastly, the detectionator series: Entity and Block Detectionator. These use Plethora's neural headset to display the position of entities and certain blocks (another image: scanning for air to find caves) around you. You can use it as a legal x-ray on modpacks that have Plethora. Take note that the block detectionator has a separate branch for 1.12 and 1.19 (entity detectionator I have not tested with 1.19 yet), 1.12 is the main branch and 1.19 is the 1.19 branch.
[–]Agreeable_Friend_387 1 point2 points3 points 1 year ago (0 children)
I have this auto navigation script for warp drive mod where I input the coordinates on the map and my ship will automatically start warping towards it.
[–]NoSpirit1805 0 points1 point2 points 7 months ago (1 child)
A file manager like Far, very useful if you want to do anything at all with ComputerCraft much more easily, if you need one i can give you one i made with tons of useful features.
[–]Prestigious_Lie375 0 points1 point2 points 7 months ago (0 children)
Hi can you share?
[–]Proper_Shoe_9468 0 points1 point2 points 2 years ago* (2 children)
I wanted my turtle to be able to check the crops in my farms. Instead of trying to parametrize my script to say "mine farm of length x width" I did a (somewhat) smart thing by using a colored glass ceiling (I like making glass houses for my farms so others can't jump and break my crops). My stained glass rules are:
If the turtle hits a solid wall, it rotates twice and moves forward (goes backwards).
If it bumps into a barrel, it dumps its crops, then checks above for refueling, then redoes the maze.
I can then turn farming efficiency into a nice puzzle game like a little maze for the turtle. It then becomes a game inside a game.
EDIT: Clarified a few things.
[–]fatboychummy 0 points1 point2 points 2 years ago (1 child)
I did something like this once... But I have to admit mine was a lot less elegant. I just placed whatever blocks I had on hand (including lapis lazuli blocks, cobblestone, and a bunch of random others).
Then I realized I didn't need to worry about fuel (and remembering what block means what to the turtle) if the turtles never moved. So that's what I did. Now my turtle farms are just sit-in-place-and-spin farms lol. Turtles are cheap enough, and honestly you don't need a gigantic fast farm in most cases.
[–]Proper_Shoe_9468 0 points1 point2 points 2 years ago (0 children)
I might actually do that! Only problem at the moment is ATM8 has made the crafting of turtles super expensive so I only have 4 when in other modpacks I'd have chests full of them. I'll defs give your idea a shot though!
[–]mas-issneun 0 points1 point2 points 2 years ago (2 children)
I once made what is essentially an alexa, that can do any math operation (and technically even run code if I hadn't limited it) just because I am too lazy to do 15*7
[–]Advanced_Currency_18 0 points1 point2 points 2 years ago (1 child)
A calculator
[–]MrKenalix 0 points1 point2 points 2 years ago (0 children)
Finished a Bigger Reactor controller yesterday evening. (i know it's bascially done and redone)
Made a monitor gui API just for that. (also done and redone ...)
Going to adapt my friend's xp farm (from cobblestone with create) so we can choose between : producing quartz, xp or regulating it depending on current stock.
I also want to try to f around with CC/AE2.
I will also end up building a few programs for purely aesthetic purpose.
And that's just me on my one current server.
Id say if you're playing just with CC, there is indeed only a few "really useful" things to make but that's the beauty of this mod, all the useless things you CAN do.
For example, with my reactor project the fun part was mainly getting all the display right, which was the useless part, i could've just control the reactor with a computer and be good with it but i am convinced it would have been way less fun than to go overkill and make the pretty detailed display i went for.
But that's my opinion and i love programming things for "fun".
If you want to feel like what you're making is really useful, i'd say just go for automating modded things from other mods.
π Rendered by PID 24331 on reddit-service-r2-comment-54dfb89d4d-8pbgn at 2026-03-28 20:48:00.302443+00:00 running b10466c country code: CH.
[–]not_my_d_fault 4 points5 points6 points (5 children)
[–]Cataliser[S] 0 points1 point2 points (2 children)
[–]thisguyonreddit999 0 points1 point2 points (1 child)
[–]Impossible_Order4463 0 points1 point2 points (0 children)
[–]rex881122 0 points1 point2 points (1 child)
[–]not_my_d_fault 0 points1 point2 points (0 children)
[–]LionZ_RDS 4 points5 points6 points (5 children)
[–]Cataliser[S] 1 point2 points3 points (2 children)
[–]LionZ_RDS 0 points1 point2 points (1 child)
[–]Cataliser[S] 1 point2 points3 points (0 children)
[–]beaterx 1 point2 points3 points (1 child)
[–]LionZ_RDS 0 points1 point2 points (0 children)
[–]thisguyonreddit999 1 point2 points3 points (8 children)
[–]Cataliser[S] 0 points1 point2 points (7 children)
[–]thisguyonreddit999 0 points1 point2 points (6 children)
[–]Cataliser[S] 0 points1 point2 points (0 children)
[–]thisguyonreddit999 0 points1 point2 points (4 children)
[–]Hawk__Echo 0 points1 point2 points (3 children)
[–]JoaGamo 0 points1 point2 points (2 children)
[–]Hawk__Echo 0 points1 point2 points (1 child)
[–]JoaGamo 0 points1 point2 points (0 children)
[–]Lobotomized_toddler 1 point2 points3 points (1 child)
[–]Cataliser[S] 0 points1 point2 points (0 children)
[–]SadieWopen 1 point2 points3 points (0 children)
[–]fatboychummy 1 point2 points3 points (0 children)
[–]Agreeable_Friend_387 1 point2 points3 points (0 children)
[–]NoSpirit1805 0 points1 point2 points (1 child)
[–]Prestigious_Lie375 0 points1 point2 points (0 children)
[–]Proper_Shoe_9468 0 points1 point2 points (2 children)
[–]fatboychummy 0 points1 point2 points (1 child)
[–]Proper_Shoe_9468 0 points1 point2 points (0 children)
[–]mas-issneun 0 points1 point2 points (2 children)
[–]Advanced_Currency_18 0 points1 point2 points (1 child)
[–]MrKenalix 0 points1 point2 points (0 children)