Fandom

The Tekkit Wiki

Tutorial/Simple Lua 1.3

< Tutorial

874pages on
this wiki
Add New Page
Talk0 Share

This tutorial covers basic Lua 1.3 from ComputerCraft by dan200

More's Coming!

by a Wikia Contributer

See my other tutorial, Water - Oil

Just a quick note, this is how a computer is crafted.

Crafting GUI.png

Stone

Stone

Stone

Stone

Redstone

Glass Pane

Stone

Stone

Stone

Computer


The Basics

In this section, you can learn about displaying text(print), and variables.

A basic Program:

print "Hello, World"
hello = "Hello"
num = 123
print (hello.." World!")

More Advanced Variables and If Statements

A more advanced but still simple Lua program

thingy = true
object = not thingy
--  (This displays that thingy is true and object is false)
if thingy == true then
  print ("Thingy = "..thingy)
else
  print ("Thingy = "..object)
end

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.