r/ComputerCraft • • Jun 21 '22

Help (create: above and beyond)

2 Upvotes

I've set up a turtle based quarry and it is mining as it's supposed to but every once in a while at seemingly random times the turtle that is mining will just explode and drop all it's items. No idea why

EDIT: also on a multiplayer server


r/ComputerCraft • • Dec 09 '16

Need Help Finding a ComputerCraft v1.58 Pastebin For Monitoring Thermal Expansion Energy Cells.

2 Upvotes

Just what the title says, I'm working with a survival world in Tekkit (space) and it has ComputerCraft v1.58. I need a pastebin for monitoring thermal expansion energy cells. It doesn't even have to have a gui, a simple text readout would be fine.


r/ComputerCraft • • Aug 11 '25

Quarry for CC: Restitched

2 Upvotes

Hello fellow ComputerCraft quarry hunters, I come bearing a new quarry code on the day of our lord 8/11/25
I spent a solid 4-5 hours trying to find one that worked, or editing it till it did when I decided it was simpler to make a new one (it took another 4-5 hours lmao) https://pastebin.com/0QZKGwpy - Updated new quarry works better

 if it has issues, I'll be using it myself and updating as needed, and of course, hoping it works.

Usage goes: (name) (0,0,0)
example: quarry 16 16 50

I was having trouble getting it to be efficient, so 50 in this case translates to 150, as each layer is 3 blocks high. So imagine it's 16 16 150 depth, so whatever number you put *3, so 50*3

I also couldn't get it to mine efficiently from any/the corners, so after every layer, it returns to the starter chest to deposit any item it has. This was sort of like a calibration mechanic, and it was the only way I could get it to work.

It works with any chest/inventory as I just tell it to drop at the top right behind where you placed the turtle.
Make sure you place the turtle in the bottom left of where you'd like to be mined, it mines forward and to the right.

At the very top of the code, there is a list of trash items that are changeable.

This works actively right now using CC: Restitched version 1.101.2 and Minecraft version 1.19.2 with the Tekxit 4 modpack. Restitched is the fabric version of the mod, so take that with a grain of salt. I don't know if it works in other versions of the mod/fabric versions.


r/ComputerCraft • • May 20 '26

ME bridge from advanced pheriphirals problem

2 Upvotes

https://docs.advanced-peripherals.de/0.7/peripherals/me_bridge/#getcraftingcpus

https://github.com/SirEndii/Lua-Projects/tree/master

playing on stoneblock 4
minecraft version 1.21.1 (neoforge)
craft os 1.9 on computercraft 1.117.0
i dont get it, i have set a free channel from the advanced peripherals ME bridge, got the code from the official advanced peripherals mod site, but i still get a error
" attempt to index global 'me' (a nil value) "

(im a completly noob in programming dont mind that im on linux)

here is the full code

  1. https://github.com/SirEndii/Lua-Projects/tree/master/src/ME%20Cpus


r/ComputerCraft • • Mar 26 '26

10 secondes pour une réponse ou ci non fait ceci

2 Upvotes

bonjour tout le monde, donc comme le titre le dit, sur computercraft, je veux faire un startup qui attend 10 secondes pour appuies sur le 3, ci le trois est appuies dans les 10 secondes alors il ouvre un deuxième programme (A) et a l’inverse ci le trois n’est pas appuies dans les 10 secondes alors il ouvre un deuxième programme (B). est-ce que quelqu’un peut m’aider s’il vous plais, merci d’avance


r/ComputerCraft • • Sep 17 '26

How can i get craftos to act like a basic computer with peripherals?

2 Upvotes

r/ComputerCraft • • Jan 23 '21

Possible glitch? Explanation in comments

Post image
11 Upvotes

r/ComputerCraft • • Dec 24 '20

New to CC. Never coded before.

11 Upvotes

I want to learn to do things with CC but I’ve never coded anything and this seems like the best option to learn


r/ComputerCraft • • Sep 28 '26

Some way to copy text on a server with no Http?

11 Upvotes

Hi everyone! I'm currently on a MC server about nations and wars. And so I had a computer connected to a radar spending Http requests to my server to record​ trespassers.

But admins decided to​ disable http requests, they say is for security reasons, and this change affected the tech of multiple nations that were using CCtweaked.

The radar can still detect people, but with http calls disabled we cannot use "http.post()" or "pastebin put" to send our data. And so I have​ been looking for some way to copy the data from computercraft to paste it manually on my host so my team can still use the radar even after this limitation.

Any ideas of how to do it?


r/ComputerCraft • • Feb 22 '26

ReconnectedCC

11 Upvotes

A minimal ComputerCraft experience, including a few addon and QOL mods including

  • Plethora

  • SC Peripherals and Goodies

  • Classic Peripherals

We have an active community, averaging around 3-7 players online daily with around 10 on peak hours
We also have some custom features including

  • WebSocket based Chatbox API

  • Kromer economy server

  • Custom Pastebin replacement with no ads

  • Playtime based welfare system

Our Community has also created many things like

  • /warp enderstorage for many free items offered by players

  • /warp mall for shops that sell many different items

Modpack: https://reconnected.cc/install
Website: https://reconnected.cc
Discord: https://discord.gg/2QSFfAx8DC


r/ComputerCraft • • Oct 11 '26

[Concept] InformatiCraft — A brutal, bare-metal computing mod for NeoForge 1.21.1+ (Looking for Java Devs / GNU GPLv3)

Post image
3 Upvotes

r/ComputerCraft • • Sep 25 '24

is it possible to delete rom/, somehow?

3 Upvotes

(this has been answered already)

i want to make a command prompt which allows you to put in the /delete command that should allow you to delete anything. but if possible, how do i allow it to delete rom/


r/ComputerCraft • • Jun 21 '20

CC:Tweaked emulator with plethora support?

3 Upvotes

I'm trying to make a program that relies on plethora's chest API that can pull and push items to it and i want to test it in a virtual enviroment, but i haven't found any that support plethora. are there any CC:Tweaked EMUs that have plethora support?


r/ComputerCraft • • Jul 31 '21

Censor systems and data gathering

3 Upvotes

I recently started playing Computer Craft on my server with a few friends, it’s 1.16.5 so technically it’s CCtweaked but I’m not sure if there really is any big differences. Basically, I’m wondering if there’s some way of making censor systems to detect certain things like players in a region or inventory etc. I found OpenCC Censors online however it’s extremely outdated. It’s open source so technically I think I could port it to my version however I have no clue where to even start with that.

Additional info: Forge 1.16.5 server Create mod Computer craft Optifine That’s it it’s just a small server with me and some buddies


r/ComputerCraft • • May 08 '24

Is there any way for CC to interact with anvils?

3 Upvotes

I'm trying to automate the void forge from cataclysm for atm 9, and I want to know if CC can interact with anvils at all. If so how?


r/ComputerCraft • • Apr 22 '24

Is there a reason why my turtle and computer tracker isn't working

3 Upvotes

Code below:

local trackingRadius = 32
local function getPlayerDetails(player)
local x, y, z = player.x, player.y, player.z
local name = player.name
local health = player.health
local gamemode = player.gamemode
return x, y, z, name, health, gamemode
end
local function getDistance(x1, y1, z1, x2, y2, z2)
local dx, dy, dz = x1 - x2, y1 - y2, z1 - z2
return math.sqrt(dx * dx + dy * dy + dz * dz)
end
while true do

if term then
term.clear()
term.setCursorPos(1, 1)
print("Player Tracker")
print("Tracking radius: " .. trackingRadius .. " blocks")
print("")
else
print("Terminal not available.")
end
local x0, y0, z0 = gps.locate()
if not x0 then
print("Failed to get location.")
else
print("Computer position: " .. x0 .. ", " .. y0 .. ", " .. z0)
print("")
local players = peripheral.find("playerPlus")
if #players == 0 then
print("No players found.")
else
print("Players within radius:")
for _, player in ipairs(players) do
local x, y, z, name, health, gamemode = getPlayerDetails(player)
local distance = getDistance(x, y, z, x0, y0, z0)
if distance <= trackingRadius then
print("- " .. name .. " at " .. x .. ", " .. y .. ", " .. z .. " (Health: " .. health .. ", Gamemode: " .. gamemode .. ")")
end
end
end
end

sleep(5) -- Wait for 5 seconds before refreshing
end


r/ComputerCraft • • Dec 02 '14

Help needed with rednet

0 Upvotes

Does anyone know a good tutorial not made by a mumbling twelve circa 1989? Or just please just post a clear written post as a comment here It would much appreciated.


r/ComputerCraft • • Dec 22 '13

Can turtles remove a queen from an apiary?

3 Upvotes

If it can, what's the command?


r/ComputerCraft • • Sep 29 '24

turtle.getItemCount(n) requires the nth slot to be selected first by using turtle.select(n) when writing it as part of a program

3 Upvotes

Just discovered this now, while working on a chunk miner turtle that is supposed to go back to a chest and empty its contents when full. Unlike in the command interface wherein entering the lua command line, you just type *turtle.getItemCount(n)* and get item count of nth slot, when writing it as part of a program, first select the nth slot with *turtle.select(n)* and then do *turtle.getItemCount(n)*. Otherwise, it will remain stuck at the last selected slot.

I don't know if this is commmon knowledge or not, but I faced problem with this, and when I found the solution, thought of posting it here for others and also for me when I fall into the same problem.

EDIT: Turns out problem was not with the sequencing of the commands, but I was obtaining values of itemcount from a variable that I made at the beginning of the code and it never got updated, giving me the same value again and again, because, it is a variable which won't update without me telling it to do so. So now, whenever I need any itemcount, I just tyoe the command at the point that I need it instead of going for the variable.


r/ComputerCraft • • Sep 25 '24

how to make my file corrupt uther files on CC:Tweaked

0 Upvotes

i plan to make it so the file i made, has a 1 in 2 chance of deleting a file. how do i do this?

it's for destroying some os's


r/ComputerCraft • • Aug 13 '23

how to create code that segments a bigger mine into smaller mines for turtles?

3 Upvotes

I know the title sounds confusing but I don't know how else to phrase it.

I know this has probably been done before but what I want is to know how i could possible take something like a 9*9 mining area and cut it up into smaller chunks that a group of turtles could mine easier. I'm pretty new to computer craft and coding so if you could point me in the right direction and explain it to me that would be very appreciated.

The problem starts with my aforementioned example of a 9*9. When I first was trying to find a pattern for cutting up this area, my very first thought was to make it into 3*3's meaning i would need 9 turtles in total to mine out that area. however i came to the realization that by doing it a less uniform way (6*5,6*4, and a 3*9) i could do it with 3 turtles instead

im just curious if there is a way to do this on a larger scale so i can chunk any X*Z area using the least amount of turtles mining the least amount of blocks


r/ComputerCraft • • Apr 05 '21

Trouble with turtle.detect() command

3 Upvotes

Hello all. I'm having some trouble with the turtle.detect() command in the modpack Project Ozone 2 (Minecraft 1.7). Here is the code:

if turtle.detect() then

print("yes")

else

print("no")

end

Running the code does nothing at all, though it should output to the console one of either 'yes' or 'no', correct? I've tried making a completely new advanced turtle with just that program in it, still doesn't work. What am I doing wrong? All the other commands in my larger script are working, it's just turtle.detect() and turtle.inspect() that are behaving oddly.


r/ComputerCraft • • Jun 12 '23

Alternatives to `continue` in loops

3 Upvotes

Hi,

I am not a LUA developer, I write my code most of the time in C and JS so it is natural for me that I've got access to continue keyword inside loops. But not in LUA.

I've seen that people use goto to achieve that:

local cnt = 0
while cnt < 10 do
  cnt = cnt + 1
  if cnt == 5 then goto continue end
  
  ::continue::
end

But it doesn't work in CC. Is there any other way to get continue functionality in here?


r/ComputerCraft • • Jun 11 '23

Eneable Http

3 Upvotes

I am Playing minecraft in aternos server and i wanted to isntall a os to a computer but it doesnt install on github and i cant open Http . How Can i open the Http api in aternos server?