Minecraft Blogs / Tutorial

Computer craft tutorials - Lua

  • 3,261 views, 2 today
  • 5
  • 3
  • 7
exilepilot's Avatar exilepilot
Level 15 : Journeyman Engineer
21
I am making a series of Lua tutorials, in order to understand some of them.
If you want to learn this language, I recommend you go to: link. This free E-book will teach you the fundamentals of Lua and the syntax.

I also advise you to get Computer craft, whether it's from tekkit or you download it for vanilla.

  • For now, learn basic variables, input and output.
  • If you've made anything creative, I'd love to see it!

Currently, I've been having problems with uploading my first tutorial to the blog, the series will postpone till Sunday or until this problem has been resolved.

If you want to create minecraft mods without java.
Download luacraft, it has a new loader, a built in console... and custom lua functions for minecraft.
Download here: link

Brief of lua:

I'm going to quickly brief lua, so here goes.

Lua is a programming language which uses paradigms (concepts) such as: Procedural, prototype based, object oriented. If you're unsure of what these are, google programming paradigms then find the nearest wikipedia page.

Lua can be simple, yet it can be advanced, it depends what mess you're getting in. And if you want to see some really advanced stuff, I recommend you look at this. Lua is a fast and reliable scripting language, it's great for embedding too, which is why it's embedded into computer craft and others like lua craft and powder toy (link), it's used in other things too, you might be surprised! (well, I was)
Tags

Create an account or sign in to comment.

1
12/05/2012 7:46 pm
Level 53 : Grandmaster Pirate
RevolutionalRedStone
RevolutionalRedStone's Avatar
... Awesome ...
I'm a huge fan of The ComputerCraft MOD !
And Lua is one of my favorite languages !

As a creative use of CC, Here i built a Redstone turtle interface which aids in the construction and debugging of register access apperatusies. ( the turtle basically takes responsibility for absent components untill the design can operate without such support )
1
12/06/2012 7:04 pm
Level 15 : Journeyman Engineer
exilepilot
exilepilot's Avatar
Thanks, I saw some of your work. It's awesome I'd love to see more of this and if you need graphics you've got my support.
Lua is a crazy language, it can be either hard, or easy. Prototypes (for me) are the hardest part of 'OOP' with lua, but except from that, it's mostly easy stuff. I'm also familiar with C++ but I'd love to learn how to embed lua with a C/C++ game, which I suggest you do a tutorial on that.
1
11/25/2012 5:41 pm
Level 11 : Journeyman Network
Zeerawk
Zeerawk's Avatar
You should continue the series! I want to learn Lua but am sadly a begginer :(
1
01/07/2013 11:25 pm
Level 44 : Master Gent
Hydrian
Hydrian's Avatar
Beginners are best. But the most impatient
1
11/26/2012 2:42 am
Level 15 : Journeyman Engineer
exilepilot
exilepilot's Avatar
Heh, I'm glad someone found it helpful, or actually someones learning Lua. xD
At the mo' I'm having problems with posting blogs on PMC, so for now you'll have to wait Or add me on skype xD
1
11/23/2012 12:01 am
Level 18 : Journeyman Miner
Phrozenbit
Phrozenbit's Avatar
More code and examples! Neat idea bro! Diamonded
1
11/23/2012 10:26 am
Level 15 : Journeyman Engineer
exilepilot
exilepilot's Avatar
Thanks, I've updated it. As you can see :D
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome