This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Engineer's profile picture

AutoCutter 0.2 == ADDED FIR SAPLINGS == *beta*

Started by Engineer, 15 January 2013 - 06:30 AM
Engineer #1
Posted 15 January 2013 - 07:30 AM
THIS THREAD IS NOT BEING CONTINUED, FEEL FREE TO EDIT THIS PROGRAM
————————————————————————————————————————————————————————————–
Welcome to my thread,

here is my AutoCutter Program!

Make sure you have dirt block in front of the turtle, and a chest to the left! You also need light if it iis cutting trees through the night.



ToDo List
- oak tree
- big Jungle tree
- adding ExtraBiomesXL saplings
- Forestry Saplings
- GUI for SaplingControl
- Auto-refuel
- Auto-refill

run this command on your computer (HTTP API must be enabled)
 pastebin get 46RRC9DJ 

Here is the actual pastebin link for those who are interested: http://pastebin.com/46RRC9DJ

SpoilerChangelog 16/1/2013
- Improved efficiency
- Added fir sapling, 2x2 and 1x1
-shortened code quite a bit for my skills :P/>

Please leave behind your bugs you encountered with this program and your suggestions for improvement!

Enjoy your wood-farming program!

DISCLAIMER: You may use this script, if posted I would like a credit

NOTE: This is my first program on the internet, please give me constructive critism to get better.

CREDITS:
Of course to myself :)/>
Sjele, for helping me with a selectSlot() function and planting saplings.
IRC of computercraft for helping me with small troubles
zekesonxx #2
Posted 15 January 2013 - 07:41 AM
You have now never to touch an axe again! :D/>

I beg to differ. What if I have to move my crafting bench?
Engineer #3
Posted 15 January 2013 - 07:49 AM
You have now never to touch an axe again! :D/>

I beg to differ. What if I have to move my crafting bench?

Changed, if it's this time not good, can you suggest some?
zekesonxx #4
Posted 15 January 2013 - 08:26 AM
You have to never farm wood again! :D/>
I still beg to differ. What if I die and spawn far away from my base?
Engineer #5
Posted 15 January 2013 - 08:41 AM
You have to never farm wood again! :D/>
I still beg to differ. What if I die and spawn far away from my base?

Well this is much better I guess. Could you maybe review / test my program? :P/>
sjele #6
Posted 15 January 2013 - 08:47 AM
I see you got it working.
I see you used the code for selectSapling i gave ya. Tho that code will error since if there is no sapplings in slots 1-4, it will try to select pos nil, and thus error.

Try the function from here, it's better:
http://pastebin.com/fwbVzwHH
Engineer #7
Posted 15 January 2013 - 08:52 AM
I see you got it working.
I see you used the code for selectSapling i gave ya. Tho that code will error since if there is no sapplings in slots 1-4, it will try to select pos nil, and thus error.

Try the function from here, it's better:
http://pastebin.com/fwbVzwHH

Thank you for pointing that out to me!
However I put a check() function that checks for saplings, bonemeal and fuel if needed.

Thank you very much with helping me!