Hey so i started messing with computercraft a few days ago and have made a mobgrinder program that will run this mob grinder:

[media]http://www.youtube.com/watch?v=_f8wUDAw2zI&feature=BFa&list=HL1353296316[/media]

the actual mechanisim is what the Computer runs through a disk that doubles as our PVP base keycards!!

if you know what your doing scroll down a bit.

so for noobs to Computercraft this would be how you would start if you just wanted it on your computer
edit <the name of your command>
and it should take you to a blank prompt
enter all of the code below vvvvvvvvv
and when your ready to run it all you have to do is this:
<the name of your command>
just make sure to hit ctrl then enter to save your work then crtl right arrow enter to exit
if your not sure your in this prompt the bottom of your screen should look like this:
[save] exit

here is how you set this up if your wanting to write this on a disk like i have it:
cd disk<enter>
your promt now should read like this:
disk>
now type this:
disk> edit <the name of your command>
and it should take you to a blank prompt
enter all of the code below vvvvvvvvv
then when your ready to run the program type this in:
cd disk<enter> (looks familiar huh?)
disk> <the name of your command>
by this time you should see the text and it will execute your program! its that easy
just make sure to hit ctrl then enter to save your work then crtl right arrow enter to exit
if your not sure your in this prompt the bottom of your screen should look like this:
[save] exit

this is a SUPER simple script that I learned off of a few Tutorials
here is my exact coding
1. print("prepare for your doom spiders!")
2. rs.setBundledOutput("left", colors.purple)
3. sleep(3)
4. print("Damageing Spiders")
5. rs.setBundledOutput("left", colors.red)
6. sleep(5.6)
7. rs.setBundledOutput("left", colors.black)
8. print("Spiders now down to 1 hit left")
9. rs.setBundledOutput("left", colors.purple)
10. sleep(6)
11. rs.setBundledOutput("left", colors.black)
12. print("System now ready for more Spiders")


1. print( whatever you want such as "starting up mob grinder")
2. rs.setBundledOutput("direction", colors.color1)whatever color you put as the top ie purple white etc) this closes the bottom half of the mob grinder so nothing escapes
3. sleep (3) keeps it closed
4. print( this is not really needed it just helped me figure out that it was working i have "Damageing Spiders")
5. rs.setBundledOutput("direction", colors.color2)again whatever color just as long as it is connected to the top. this closes the top half to start killing the spiders
6. sleep(5.6) <—– this number is SUPER IMPORTANT this is how long the crusher stays in to allow for 1 punch kills
7. rs.setBundledOutput("left", colors.color3) this color is the "ground" since i didnt know how to make it any other way and releases the top half
8. print( again this was to make sure it was working
9. rs.setBundledOutput("left", colors.color1) keeps the bottom half closed while last hitting the mobs so no more come up
10. sleep() this can be for however long you want to keep the bottom half closed
11. rs.setBundledOutput("left", colors.color3) opens it all back up again
12. print( letting you know the system is ready again

im farily sure that this could be a LOT better but i like it for my first try and IT WORKS!!!

also this is the setup you will need if following this exactly
http://ansarum.deviantart.com/art/Back-of-Compy-craft-mobgrinder-338539037?ga_submit=10%3A1353299876
feel free to repost an improved config of this by all means i know this isnt perfect at all but here it is!