"No Such Progam" How do I do this?

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Airbornehurdle

New Member
Jul 29, 2019
144
0
1
This is my first time using ComputerCraft and when I type the commands that I got from the internet says "No Such Program".

P.S. I have another question, what is the command for the melee turtle.
 

Oatmonster

New Member
Jul 29, 2019
120
0
0
You should read the computercraft wiki.

Programs and "commands" are different things.

"Excavate" is a program, turtle.attackLeft() is a "command".

If you want your computer/turtle to simply do something simple at that moment (like display some text) you need to go into the Lua window. IIRC, you do this by typing lua. if you want a program that can be saved and executed on demand, you will need to create one by typing /edit [program name].

Again, I highly recommend reading the computercraft wiki. Learning Lua wouldn't hurt either.
 

casilleroatr

New Member
Jul 29, 2019
1,360
0
0
Oatmonster is right but just a few things to add. Open up a computer or a turtle and type this 'help' without the quotation marks. The computercraft wiki is definitely one of the better ones but computercraft has useful in game documentation too. The computers and turtles both have a set of in built programs but they also have APIS. If you type 'help' followed by the name of the program or api you want to know about (again without the quotation marks). Apis contain alot of the commands in computercraft. For example there is an api called turtle which defines all of the turtle related commands such as turtle.suck() or turtle.attackLeft().

On the computercraft wiki the section on apis is where you will find most of the practical stuff along with the tutorials page. For putting together a melee turtle program, make sure to pay attention to the section on the turtle api and the tutorial page on loops will give you what you need to instruct the computer to repeat a section of code over and over again.

One last thing, when you have opened a file to write your program in by typing edit <nameofprogram> pressing ctrl opens up a menu which will allow you to save your work and print it or exit.