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

Automatic mining help.

Started by slinker0, 26 March 2014 - 02:49 PM
slinker0 #1
Posted 26 March 2014 - 03:49 PM
I dont know how to program, can u help-me? I'm trying do this: i need for 0.6 sec a redstone signal at margenta cable side after it, i need for 0.6 sec a redstone signal in blank cable, after it i need 90 secs and restart the program.

see here:
1)

2)

3)


i'm using FTB monster.
Thanks very much! if u can, try to explain the code.
Edited on 26 March 2014 - 03:11 PM
CometWolf #2
Posted 26 March 2014 - 04:33 PM
We don't program for you here, we can help you learn however.
Handling redstone is pretty easy.

rs.setBundledOutput("side",color)
http://computercraft.info/wiki/Redstone_%28API%29

Note that the colors used are the power of 2 of every number from 1 to 16.
You can acess these easily by using the colors API
http://computercraft.info/wiki/index.php?title=Colors_%28API%29

colors.magenta

Then to wait 90 seconds, you use

sleep(time)
slinker0 #3
Posted 26 March 2014 - 05:03 PM
but, how can i star that program? i'm completely noob .-. sorry
CometWolf #4
Posted 26 March 2014 - 09:29 PM
I suppose you'll have to start from the beginning then
http://computercraft.info/wiki/Hello_World_Tutorial
Then have some look at some other tutorials as you go along
http://computercraft.info/wiki/Tutorials
slinker0 #5
Posted 26 March 2014 - 09:51 PM
i don't know how to speak english fluently, this is why i ask for u, a code to do this simple think..

I cant understand every think! :/

BUT, Thank you so much! i'm trying to learn Lua program