Posted 31 July 2013 - 02:57 PM
As seen in this youtube video:
[media]http://www.youtube.com/watch?v=_YyB6sAdR7Q[/media]
You can make a TNT cannon out of dispensers and a few other materials. But what if you want to make that bad boy automatic? That's where this script comes into play.
You can type in the following to download this utility and use it as startup (if you don't save it as startup, hold Ctrl+T for one second to terminate the application).
pastebin get gz1UGX1w startup
This utility is meant to be used as the startup program on a regular computer attached to the front of the TNT cannon.
The code follows:
Screenies:
You can place up to 576 TNT's in each dispenser.
For those who are wondering, in the first picture, yes, that is an obsidian slab, taken from the mod Slabcraft.
[media]http://www.youtube.com/watch?v=_YyB6sAdR7Q[/media]
You can make a TNT cannon out of dispensers and a few other materials. But what if you want to make that bad boy automatic? That's where this script comes into play.
You can type in the following to download this utility and use it as startup (if you don't save it as startup, hold Ctrl+T for one second to terminate the application).
pastebin get gz1UGX1w startup
This utility is meant to be used as the startup program on a regular computer attached to the front of the TNT cannon.
The code follows:
Spoiler
term.clear()
term.setCursorPos(1, 1)
print("Welcome to the Anon10W1z TNT cannon controller!")
sleep(2)
while true do
term.clear()
term.setCursorPos(1, 1)
print("Place as many TNT's as you want in each dispenser.")
print()
print("Type in the number of TNT's you want to launch. This number should be at maximum the number of TNT's in the dispenser with the least.")
print()
local amount = read()
for DoNotChangeThis=1,amount do
term.clear()
term.setCursorPos(1, 1)
print("Readying TNT...")
term.setCursorPos(1, 3)
print("TNT's that have been launched:")
print(DoNotChangeThis-1)
redstone.setOutput("back", true)
sleep(0.2)
redstone.setOutput("back", false)
sleep(4.25)
term.setCursorPos(1, 2)
print("TNT launched!")
term.setCursorPos(1, 4)
print(DoNotChangeThis)
term.setCursorPos(1, 1)
sleep(1)
term.clear()
end
end
Screenies:
Spoiler
For those who are wondering, in the first picture, yes, that is an obsidian slab, taken from the mod Slabcraft.