Questions tagged [computercraft]

ComputerCraft is a Minecraft mod which adds Lua-based scripting.

ComputerCraft (often also called CC) is a modification for the game . It adds new blocks (known as Turtles and Computers) and Items (known as Pocket Computers) to the game. They can be programmed using -based scripting.

141 questions
-1
votes
2 answers

Computercraft log in system not working with fs API

I'm working on a Windows 8 mock-up OS for Computercraft, and my log in system isn't working. I have been trying to figure it out for the past hour or so and it's really frustrating. Here's the log in code: -- Log-in and User Definition Service …
-2
votes
1 answer

How do I find the error details using the match function on Lua?

I'm just asking a question on finding error details from the error function. Like I would like to find error details from example.lua:50: "then" expected near "if". Any ways on how to do that on Lua? I'm working on something for ComputerCraft on…
-2
votes
5 answers

Computercraft Lua Multiple processes running simultaneously

I am trying to make a simple tunnel mining turtle. I tried to display some information on the turtle while mining. For instance, the progress and the fuel consumption. The process/function of mining the actual tunnel and displaying the information…
RubenDefour
  • 31
  • 1
  • 10
-2
votes
1 answer

Lua calling a nil value

This is in minecraft specifically so some of this code may not make sense. when ran it says line 77 is calling a nil value http://pastebin.com/RqWDpVqD (sorry pastebin but the code is rather big for here)
-4
votes
1 answer

Minecraft Rs Generator issue (attemt to index ? (a nil value)) (lua language)

I am trying to make the computer check how much power Energy cell has, but when i run this program it says: attemt to index ? (a nil value) Any suggestions? local energyCell = peripheral.wrap("back") local energyCellMax =…
-6
votes
1 answer

What's the difference between read() and io.read()?

I am new to lua. So what's the diference? I could not find it on the wiki.
technikfe
  • 121
  • 1
  • 8
1 2 3
9
10