Posted 01 October 2015 - 02:19 PM
First, ZeroBrane Studio is superb. Simple to install, use, has a good editor, run your programs with a click. Only problem of course, any CC api calls will fail since they don't exist. - http://studio.zerobrane.com/
So, make a new file, call it minecraft.lua or whatever you like. At the top of any CC program you are working on, add:
require "minecraft"
At the top, that will pull in the file.
Minecraft.lua can then have a stub for all the API calls you are going to use, like so:
http://pastebin.com/SPBTrBvp
I'm just printing out each api call, which lets me visualize in my head that the turtle is doing the right thing, but it wouldn't be too hard to actually output a 2d graphical representation instead if you wanted as well.
Then when you grab your code into your turtle, all you do is remove the requires line, and you are good to go
So, make a new file, call it minecraft.lua or whatever you like. At the top of any CC program you are working on, add:
require "minecraft"
At the top, that will pull in the file.
Minecraft.lua can then have a stub for all the API calls you are going to use, like so:
http://pastebin.com/SPBTrBvp
I'm just printing out each api call, which lets me visualize in my head that the turtle is doing the right thing, but it wouldn't be too hard to actually output a 2d graphical representation instead if you wanted as well.
Then when you grab your code into your turtle, all you do is remove the requires line, and you are good to go