Questions tagged [minecraft-computercraft]

Computercraft is a mod for Minecraft. It adds computers, monitors, networking and more to the world of Minecraft. Use in combination with [minecraft-java-edition].

Computercraft is a mod for Minecraft. It adds computers, monitors, printing, networking and more to the world of Minecraft. One can control the monitors and printers through a few lines of lua, a programming language. It has many addons that add integration with other mods, such as , , and .

See also

20 questions
18
votes
2 answers

Help I'm trapped in an infinite loop and I can't get out

Like a complete genius, I put this in the startup program: while true do shell.run("power") end Which seemed fine at the time, except now I need to edit something. Here's the fun part: when I try to terminate the program, it will terminate power,…
Unionhawk
  • 34,497
  • 34
  • 165
  • 252
12
votes
4 answers

If I destroy a computer, will it lose its programs?

If I destroy my computer, will the programs on it remain if I replace it somewhere else?
fredley
  • 53,371
  • 95
  • 298
  • 448
10
votes
2 answers

How to make a turtle run a program over the Modem API in computercraft

I have an advanced computer with a wireless modem in my world as well as several Wireless turtles. Now I want to sent a program from that computer to the turtle and run it. I looked up the modem API on the ComputerCraft website but I could not find…
6
votes
3 answers

Checking amount of items in a barrel using computercraft

How can I use computers or turtles to check how many items and stacks are there in a barrel? (Is there any way even?) Im using MindCrack Feed the beast pack.
6
votes
1 answer

Is it possible to use ComputerCraft to show the TPS of a server?

Sometimes a Minecraft server is running a bit slow. How slow? Well, that's what we want to know. With this program, we should be able to see what the currently Ticks Per Second (TPS) is on a nearby monitor. Note that there are usually 20 ticks per…
5
votes
2 answers

Where am I going wrong with this code?

FTB Direwolf20 v 1.0.21 CC 1.57 I have a turtle mining script that I am getting an error 'attempt to call nil' on line 18: if turtle.getFuelLevel() >= turtle.getFuelLimit() - 500 then and cannot see what's causing it. Here's the complete…
4
votes
1 answer

Computercraft trading machine script

I was trying to program a computercraft trading machine which would let the player select an item after he paid a fixed price. This is my current setup: This is my current program code: sort =…
2
votes
1 answer

How can you insert/extract items in/from a specific inventory slot?

I know it is possible, but I have no idea whether it is an add-on or just some undocumented vanilla method (the turtle api can't be used for that, apparently).
sh4dow
  • 125
  • 1
  • 10
2
votes
1 answer

Is there an online storage option that can connect with Computercraft?

I want an online storage that can connect with Computercraft in minecraft which uses lua. Is there some sort of online database, like mysql, that I can use in lua without installing external programs? I only have access to Computercraft computers…
1
vote
1 answer

Is it possible to have OpenComputers get information from blocks from other mods?

I'm playing skyfactory 3 with OpenComputers 1.6.2.7 installed. I'm used to playing with computercraft where you could read information from blocks fron other mods and use them in your program (for example read rf/t output of a big reactors reactor).…
1
vote
1 answer

How to control computers using rednet? 1.7.10

I would like to set up a big computercraft network with one main computer using wireless modems and rednet api. Though I was not able to find any tutorials - all of the tutorials I found were using Craft os 1.6 or lower (I am using 1.7). The wiki…
technikfe
  • 604
  • 3
  • 9
  • 30
1
vote
1 answer

Can't run any program in

Probably very dumb problem here. I am trying to run a basic program on my turtle, like a turtle.forward() then end. I then save and exit, but when I type the name of the program I want to run, I get this error: bios.lua:14: [string…
1
vote
1 answer

RR# ComputerCraft Startup Script?

I am on a Resonant Rise 3 server version 3.2.7.1-RC. I'm trying to run a script on an advanced computer from ComputerCraft to control my Big Reactor and I want it to run on the computers start up so that if the computer is reset (server reset, human…
1
vote
1 answer

Is it possible to save a picture to a floppy disk in Computercraft?

I am trying to save a picture I created in paint on to a Floppy Disk, but I don't know how. Could someone please tell how to do it, or if it's possible?
Sam
  • 11
  • 2
1
vote
2 answers

How can I get my turtle to pull liquid from a tank?

I've tried turtle.place() with a bucket selected, which I assume would emulate a right-click, but it didn't work. What can I do?
Nathan2055
  • 731
  • 1
  • 7
  • 23
1
2