WARNING: This is my first program in Lua and ComputerCraft
WARNING: This program will also probably break if unloaded
Pastebin: https://pastebin.com/VrDXp25t (https://pastebin.com/VrDXp25t)
Previews:Main Menu:
(https://camo.tmpim.com/e0602e2a4f2c899240a95677e87ea784df4d63e6/68747470733a2f2f6472706c65617365726573706563742e6769746875622e696f2f6472706c65617365726573706563742d7765626173736574732f636f6d707574657263726166745f73747566662f6272616e63686d696e6568656c7065722f4d61696e4d656e752e676966)
Refuel Menu:
(https://camo.tmpim.com/b0a36c593d19be1e306cce51e63a587ebf14f090/68747470733a2f2f6472706c65617365726573706563742e6769746875622e696f2f6472706c65617365726573706563742d7765626173736574732f636f6d707574657263726166745f73747566662f6272616e63686d696e6568656c7065722f52656675656c2e676966)
Start Menu:
(https://camo.tmpim.com/6b6974626bbed676d287be04ffb655bfa26b43b4/68747470733a2f2f6472706c65617365726573706563742e6769746875622e696f2f6472706c65617365726573706563742d7765626173736574732f636f6d707574657263726166745f73747566662f6272616e63686d696e6568656c7065722f53746172742e676966)
Mining Pattern:
(https://camo.tmpim.com/28d516621a90aa5d6c1e199d2abc110825df1f34/68747470733a2f2f6472706c65617365726573706563742e6769746875622e696f2f6472706c65617365726573706563742d7765626173736574732f636f6d707574657263726166745f73747566662f6272616e63686d696e6568656c7065722f7061747465726e2e706e67)
Usage:Program will immediately mine to the left once Mine has been started
pastebin get VrDXp25t miner.lua
I see your program has some very cool knick-knacks.
As I looked through your pastebin code, you used
term.blit() a lot when writing text. It's confusing for me and some coders, so why not check out the wiki for CC (https://tweaked.cc/) and try getting around all the APIs, including the colors api.
A few tips for improv- Instead of
term.blit(text, "ffffff", "000000")
Do this for writing text better, and for better understanding
term.setCursorPos(1,1) --whatever pos in x, y
term.setBackgroundColor(colors.white)
term.setTextColor(colors.black)
term.write("A big fat black and white text")
to better help others who are viewing your code. You can even ask others (including me) to join in on your development. - Create a repository in Gitlab or Github (Gitlab is recommended because it has a Web IDE, and more Markdown features) and store files for your code instead of Pastebin. You can use the Gitlab API through the http API and download files.
- Add a settings page for changing settings to change the mining pattern and even other customizable settings.
- If you want, you can use my zipmenu API to work around on making your own menus. I'm working on it as I grow more ideas for customization.
- Add a way to communicate to your turtle by using the Peripherals++ mod anywhere you go, and to control just from your advanced wireless pocket computer and your advanced computer. Just like MerlinLikeTheWizard's Mastermine.
- Make sure when a update is issued to your creation, have it updated through the repository you chosen git website.