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

[1.4] ComputerCraft TNT cannon detonator V.0.1

Started by Luigi9990, 23 September 2012 - 04:07 PM
Luigi9990 #1
Posted 23 September 2012 - 06:08 PM
Hello!
My name is Luigi9990, and I'm a new member of the ComputerCraft forums.

So… since I am new this is my first shot at coding. My first instinct was to build an automatic firing TNT cannon. This is a very early beta and all it does right now is set off the cannon the number of times that you desire it to.

What's New
SpoilerV.0.1: First version released!


What's to come
SpoilerV.0.2: Program that builds cannon. Slimmer code.
V.0.3: GPS support.


How to build the cannon
Key:
0 = No blocks
1(T) = Block on the top
1(B) = Block on the bottom
2 = 2 blocks
(L) = Ladder (will be below)
(W) = Water source (will be below)
(P) = Pressure plate (always on top)

2 2 2 2 2 0
0(L) 0 1(T,P)0 1(T,W)1(B)
2(P) 2 2 2 2 0



Download:
Get V.0.1 here: http://pastebin.com/DsjDy6jX


Feedback:
As i said before this is my first time coding, so I welcome feedback on how to make it better.
However, I do ask that you respectfully give me feedback and don't yell at me.

Thank you for taking the time to read this!
sjele #2
Posted 23 September 2012 - 06:12 PM
Spoilers :

[*spoiler]
[/*spoiler]

Remove *'s
Luigi9990 #3
Posted 23 September 2012 - 06:15 PM
Spoilers :

[*spoiler]
[/*spoiler]

Remove *'s
Thanks for the help!
jag #4
Posted 25 September 2012 - 07:58 PM
Wow the code is really messy, I cant really understand the code…
Could you record it and make a video of it.

You should consider putting in some loops in there, some while or for loops.