Programming Basics

Programming is one of the biggest parts of Autonauts, and can be really helpful when playing.

Getting Started
First, in order to even start programming, you'll need a bot. Once you have a bot you will need to open its brain, which you can do by either clicking the bot head tab on the right and clicking on the desired bot ' s name (e.g. BB001), or by hitting space, and left clicking on the desired bot.

Once you have the brain opened up, you can start giving commands by doing them (e.g. Moving to a rock and picking it up will automatically program the bot to find, move to, and pick up a rock once). After you have specified exactly what you want your bot to do you can click the repeat button on the lower right of the program screen to automatically put every bit of code inside a Repeat Forever surrounding block.

Simple Programs
Now that you have the basics down, you can set up a simple program for your bot to do.

Tree Planter
First, teach the bot to seek out Tree Soil, and dig a Tree Seed Hole. Next, click the button with cba blocks on the lower right. This will pull another menu out of the brain. Click on the blue button on the bottom left of all the other buttons. It will say Inventory when hovering over it. Drag the Stow Item command and put it underneath the first set of commands. Then, teach it to pick up a Tree Seed, and put it in the seed hole. Afterwards, drag a Cycle Held Item command from the inventory command list from earlier, and finish it all off by hitting that repeat button. Don't forget to give a shovel to the bot by stopping the bot, by hitting the inventory button which has two circling arrows.

Wood Collector/Harvester
'''Warning! Do not use this bot before creating a Tree Planter'''

First, teach the bot to seek out and chop down trees without putting a forever repeat on it. Then, click the button with cba blocks on the lower right. This will pull another menu out of the brain. Click on the blue button on the bottom left of all the other buttons. It will say Inventory when hovering over it. Drag the Stow Item command and put it underneath the first set of commands. Next, teach it to pick up logs, and take them to either a General Storage or to a specified location. Next, drag the Cycle Held Item command from the inventory command list and put it under everything, and to finish it all off, hit the repeat button. Don't forget to give an axe to the bot by stopping the bot, and hitting the inventory button which has two circling arrows.

Recharger
Next time a bot runs out of energy pull up the brain of a new bot, hit record, rewind the dead bot, and hit that repeat button!