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

[CC1.4]Pocket's Turtle Programs NEW! Mystcraft Traveler! (Portal Destroyer, Portal Builder, Mystcraft Traveler)

Started by ThePocketProductions, 06 September 2012 - 01:52 AM
ThePocketProductions #1
Posted 06 September 2012 - 03:52 AM
Hello there fellow turtles!
I would like to present my turtle programs on this forums!
The first is my portal destroyer:
Program name: Portal ( or what you name it)
Uses: reduces the time you use to destroy portals!
Code:
Spoiler


function up()
for i=1, 5 do
turtle.dig()
turtle.up()
end
end
function back()
turtle.turnLeft()
turtle.forward()
turtle.forward()
turtle.forward()
turtle.turnRight()
end


function turn()
turtle.turnRight()
turtle.forward()
turtle.turnLeft()
end

function down()
for i=1, 5 do
turtle.dig()
turtle.down()
turtle.dig()
end
end

up()
turn()
down()
turn()
up()
turn()
down()
back()

Pastebin: pastebin get 3PQkZVC5 Portal

Second my portal builder:
Program Name: Portalbuild ( or what you call it)
Uses: Duh!
Code:
Spoiler



function up()
for i=1, 5 do
turtle.place()
turtle.attack()
turtle.up()
end
end

function back()
turtle.turnLeft()
turtle.forward()
turtle.forward()
turtle.forward()
turtle.turnRight()
end

function turn()
turtle.turnRight()
turtle.forward()
turtle.turnLeft()
end

function down()
turtle.down()
turtle.place()
turtle.attack()
turtle.down()
turtle.down()
turtle.down()
turtle.down()
turtle.place()
turtle.attack()
end

function up2()
turtle.place()
turtle.attack()
turtle.up()
turtle.up()
turtle.up()
turtle.up()
turtle.place()
turtle.attack()
end

function down2()
for i=1, 5 do
turtle.place()
turtle.attack()
turtle.down()
end
end

up()
turn()
down()
turn()
up2()
turn()
down2()
back()

Pastebin: pastebin get 8sT7uCaU Portalbuild

New! my Mystcraft age traveler:
this has two parts
the Turtle:
Uses: Travels to The age you want… the catch, you have to have Mystcraft
Code:
Spoiler


turtle.suck()
rednet.open("right") -- must be a wireless turtle
senderId, message, distance = rednet.receive()
while true do
if message ==  "Change_This" then -- Change Change_This to the age name (Must be 1 word)
turtle.select(1) -- also copy if to else for a new age, then change the else to a elseif
turtle.drop()
sleep(2)
turtle.suck()
os.reboot()
else
end
Pastebin: pastebin get b1BSQHGr startup (Must be startup)

Now the console:
Uses: Sends the command to the turtle to place the age in. (uses arguments)
Code:
Spoiler


rednet.open("top") -- change this to the wireless modem's side
local tArgs = {...}
local x = tostring(tArgs[1] )
if not x then
print("Place Needed.")
elseif x == "Change_This" then -- Change Change_This to the age name (must be 1 word)
rednet.broadcast(x)
else
print("Cannot goto "..x)
end

Pastebin: pastebin get zY6i0eX1 Travel (Or whatever you want)

More To Come!

Videos: When i get it uploaded!

Changelog:
Spoilerv1: added: Portal Destroyer! + pastebin link

v2: added: Portal Builder! (ps. i love the nether) + pastebin link
change: Portal Destroy to go back to the starting point!

v3: added 2 New programs for mystcraft + pastebin link

v3.1: change: added the attack command to the portal builder!

Post any bugs you encounter here and i will help/fix it!
You can also leave feedback!
ThePocketProductions #2
Posted 08 September 2012 - 05:11 AM
Updated!
ThePocketProductions #3
Posted 15 September 2012 - 02:08 AM
What are peoples opinions? good or bad?
Tiin57 #4
Posted 29 September 2012 - 11:04 PM
Decent, if only because they are so simple. You generally want to post code that others would find difficult to make themselves on the forums, since most simple programs are too specialized to be of use. (No, I'm not a moderator. Just some advice.) I suggest you wait a bit until you know more Lua, then start posting programs. (Hypocrisy 101, anyone? :)/>/>)
ThePocketProductions #5
Posted 04 October 2012 - 12:09 AM
Decent, if only because they are so simple. You generally want to post code that others would find difficult to make themselves on the forums, since most simple programs are too specialized to be of use. (No, I'm not a moderator. Just some advice.) I suggest you wait a bit until you know more Lua, then start posting programs. (Hypocrisy 101, anyone? :(/>/>)

are you looking for anything? it doesn't matter what. (just don't ask me to make a computer in a computer… what are youngsters saying these days? computer-ception?)
slango20 #6
Posted 07 October 2012 - 12:54 AM
Make them a bit more robust? Like being able to Cope with obsticals?
ThePocketProductions #7
Posted 09 October 2012 - 03:43 AM
Make them a bit more robust? Like being able to Cope with obsticals?

i can incorporate my 3x3 tunnel program (not posted for reason of its not efficient) with the platform builder (too simple to post for now) to clear a 3 high area. is that what you sorta mean?
slango20 #8
Posted 11 October 2012 - 07:59 PM
Make them a bit more robust? Like being able to Cope with obsticals?

i can incorporate my 3x3 tunnel program (not posted for reason of its not efficient) with the platform builder (too simple to post for now) to clear a 3 high area. is that what you sorta mean?
like attacking mobs in its way, and stopping if it hits a stray block it can't mine
ThePocketProductions #9
Posted 12 October 2012 - 01:44 AM
Make them a bit more robust? Like being able to Cope with obsticals?

i can incorporate my 3x3 tunnel program (not posted for reason of its not efficient) with the platform builder (too simple to post for now) to clear a 3 high area. is that what you sorta mean?
like attacking mobs in its way, and stopping if it hits a stray block it can't mine

its STUDY TIME!
slango20 #10
Posted 12 October 2012 - 11:52 AM
Make them a bit more robust? Like being able to Cope with obsticals?

i can incorporate my 3x3 tunnel program (not posted for reason of its not efficient) with the platform builder (too simple to post for now) to clear a 3 high area. is that what you sorta mean?
like attacking mobs in its way, and stopping if it hits a stray block it can't mine

its STUDY TIME!
just use
if turtle.forward() then
   end
   else turtle.attack()
   turtle.dig()
   End
End
Sorry for the caps, stupid IOS auto capitalize
Eforen #11
Posted 26 December 2012 - 02:40 PM
It would apear that your Mystcraft Traveler program may be broken… If the turtle was intended to travel to the age that is…