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

Farming Setup Help

Started by EcchiMemes, 08 September 2016 - 10:43 PM
EcchiMemes #1
Posted 09 September 2016 - 12:43 AM
Hello!
I was needing a little help making a farm.
I had this working off of a redstone clock, using repeaters, BUT COME ON, Using vanilla setups for a pack with 180 mods!
This is the setup I wish to have working,


I want the computer to, every X amount of seconds to send a signal to the Autonomous Activator which is to the left of the Computer



That's what I had but did not work.
So in a sentence to sum up what I need help with, or in other words, made.

I need a set of coding that will have that computer running a program pretty much 24/7
The program, I need it to send a redstone signal every X amount of seconds, like 3, It can't pulse for a while, maybe 1 or .5 second to toggle the
Autonomous Activator's, in which has my Zivicio Hoe in it.

Thank you for your time!
Lyqyd #2
Posted 09 September 2016 - 01:46 AM
You just need a while loop to repeat the redstone toggling code (and left needs to be a string):


while true do
  rs.setOutput("left", true)
  sleep(3)
  rs.setOutput("left", false)
  sleep(3)
end
EcchiMemes #3
Posted 09 September 2016 - 02:29 AM
You just need a while loop to repeat the redstone toggling code (and left needs to be a string):


while true do
  rs.setOutput("left", true)
  sleep(3)
  rs.setOutput("left", false)
  sleep(3)
end

Thank you so much!

But there is a small flaw :(/>
It works fine, but after a cycle through that it will activate the Autonomous Activator for a couple of seconds, mining the crop several times before resetting so it's not so efficient.
Bomb Bloke #4
Posted 09 September 2016 - 03:22 AM
Assuming you've already tried changing the values passed to sleep(), you may need to open the Activator's own settings panel and mess with the options there, perhaps.

http://teamcofh.com/docs/thermal-expansion/devices/autonomous-activator/#gui