Тёмный

Minecraft | Mining Turtle Tutorial | Feed the Beast 

SeleckPlays
Подписаться 1,4 тыс.
Просмотров 375 тыс.
50% 1

»» Subscribe: bit.ly/XInXt8 ««
In this tutorial, I cover the basics of the mining turtle for the beginner. We walk through how to program the mining turtle to dig a 3 X 1 branch mine and a 3 x 3 tunnel.
Mining Turtle Programs: www.mediafire.c...
The Basics: 0:15
The Branch Program: 2:52
The 3 x 3 Tunnel: 11:54
It's a Dancing Machine! 16:27
ComputerCraft Turtle Wiki: computercraft.i...
Turtle API: computercraft.i...)
I am using the Feed the Beast mod manager and the Mindcrack mod pack.
Download Minecraft: minecraft.net/
Download Feed the Beast: feed-the-beast....
Intro and Outro Song: Frost Waltz
Dance Music: One-eyed Maestro
Kevin MacLeod is licensed under a CC Attribution 3.0.
incompetech.com...
-Branch
function digIt()
while turtle.detect() do
turtle.dig()
os.sleep(0.5)
end
turtle.forward()
while turtle.detectDown() or turtle.detectUp() do
turtle.digUp()
turtle.digDown()
end
end
function placeTorch()
turtle.down()
turtle.back()
turtle.select(16)
turtle.placeUp()
turtle.forward()
turtle.up()
end
local run = 0
local j = 0
local k = 0
term.write("Branch length: ")
run = read()
for i = 1, run do
k = i - 1
j = k % 10
if j == 1 then
placeTorch()
end
digIt()
end
turtle.down()
turtle.turnRight()
turtle.turnRight()
turtle.select(16)
turtle.placeUp()
for i = 1, run do
turtle.forward()
end
-3Tunnel
function digIt()
while turtle.detect() do
turtle.dig()
os.sleep(0.5)
end
turtle.forward()
while turtle.detectDown() or turtle.detectUp() do
turtle.digUp()
turtle.digDown()
end
end
local run = 0
term.write("Tunnel length: ")
run = read()
for i = 1, run do
digIt()
turtle.turnLeft()
digIt()
turtle.turnRight()
turtle.turnRight()
turtle.forward()
digIt()
turtle.back()
turtle.turnLeft()
end
-3Tunnel with Torches
function digIt()
while turtle.detect() do
turtle.dig()
os.sleep(0.5)
end
turtle.forward()
while turtle.detectDown() or turtle.detectUp() do
turtle.digUp()
turtle.digDown()
end
end
function placeTorch()
turtle.select(16)
turtle.placeUp()
end
local run = 0
term.write("Tunnel length: ")
run = read()
for i = 1, run do
k = i - 1
j = k % 4
digIt()
turtle.turnLeft()
digIt()
turtle.turnRight()
turtle.turnRight()
turtle.forward()
digIt()
turtle.back()
turtle.turnLeft()
if i == 2 or j == 1 then
turtle.back()
turtle.turnRight()
turtle.forward()
placeTorch()
turtle.back()
turtle.back()
placeTorch()
turtle.forward()
turtle.turnLeft()
turtle.forward()
end
end

Опубликовано:

 

30 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 375   
@JekktSpecial
@JekktSpecial 10 лет назад
10:34 "Oh it's dark again..." - Every Programmer everywhere.
@finn_dane
@finn_dane 5 лет назад
Lol
@patchyweasel
@patchyweasel 11 лет назад
Thank you very much for this video, full of information
@Enviousttv
@Enviousttv 11 лет назад
on line 28 you might have a period or you need a end quotation
@oliver-nation4377
@oliver-nation4377 3 года назад
Thx man
@SeleckPlays
@SeleckPlays 11 лет назад
That would miss the first torch placement since j == 0 would not be true until i = 10. Also, to positioned correctly, the turtle has to dig past the 10th position. So k is just a trailing counter. I could have written j = (i - 1) % 10 but I don't care about being perfectly concise with code I'm having fun with. =)
@C1cat
@C1cat 11 лет назад
My turtle just stays in the same place and mines the blocks up down left and right of it and turns. I don't get any errors or anything it just sits there and spins. Im doing the 3tunnel w/out torches i copyed everything word for word
@Swifty_OneX
@Swifty_OneX Год назад
Took me an hour to figure this out. You have to make sure you have given it fuel using the refuel all command. I suppose this won't be that helpful since you commented 9 years ago lol, but im posting in case someone stumbles upon this problem :)
@C1cat
@C1cat Год назад
@@Swifty_OneX I can't even remember my old world or even what modpack I was playing lol
@PhoebeAu122
@PhoebeAu122 10 лет назад
My turtle ran out of fuel while mining. I refuel it and it did not continue its mining. If i type excavate again the size of the mining cave will change and i dont want that. pls help~
@matsko2340
@matsko2340 5 лет назад
How to save ur program
@TitanGially
@TitanGially 11 лет назад
Music??
@bumpybumpybumpybumpy
@bumpybumpybumpybumpy 9 лет назад
Finally a good tutorial in english :) thank you.
@ElixirEdits
@ElixirEdits 8 лет назад
When I type branch nothing happens after the code is finished. It says "bios:14: [string "Branch"] : 34: '=' expected". HELP?
@magicmafia1774
@magicmafia1774 8 лет назад
Same
@smittywee8277
@smittywee8277 6 лет назад
Mine too. It'd be great if someone could correct it
@blackrabbit1479
@blackrabbit1479 10 лет назад
that's the music of Kerbal Space Program! :D
@WS6xMASTER
@WS6xMASTER 9 лет назад
i was looking for someone to say this
@moridrowsy419
@moridrowsy419 Год назад
So I've copied your code here line for line and even used pastebin to ensure that I've not missed anything or botched the syntax and all it wants to do is dig a single block ahead of it, and then turn around, what have I done wrong?
@hansgrobstok142
@hansgrobstok142 12 дней назад
same :(
@hunter32043
@hunter32043 10 лет назад
DAMNIT I BROKE MY TURTLE AND NOW I LOST ALL MY FUCKING WORK ON THIN STUPID ASS CODING
@AlchemiconSilver
@AlchemiconSilver 7 лет назад
Should have labeled it.
@jjaycepgamingidk1434
@jjaycepgamingidk1434 3 года назад
help so i set the name 3x and when I tried to run it says bios:14: {string} "3x"}:7: unexpected symbol
@OrangeC7
@OrangeC7 6 лет назад
TurtleOS 1.4 > dance Preparing to get down . . *awesome dance*
@B.BLH20
@B.BLH20 3 года назад
Why am I here
@app2562
@app2562 4 года назад
Help! I’m trying to do this in the mining dimension but every time I go out of the mining dimension the turtle stops and then I have to start it again. Is there a way that I can get him to keep mining while I’m not in the Mining dimension?
@Nonsanity
@Nonsanity 10 лет назад
You can save fuel by starting on the left, mining forward, turing right, mining across the hallway, turning left, mining forward, turning left, mine across in the other direction, etc. This pattern eliminates the need to backtrack, which, of course, takes more fuel. Once written this way, it is also a simple matter of changing a single variable from 3 to whatever width you'd like.
@4547466
@4547466 10 лет назад
Thx dude make one for advanced
@brandonmoore479
@brandonmoore479 10 лет назад
bios:337: [string "branch"}:42: syntax error help i dont know what im doing
@cowtippergaming2339
@cowtippergaming2339 9 лет назад
You mistyped something... That's what a syntax error is in almost every language ( Java, C, C#, C++, JavaScript, Python, The type of code in CC, etc.)
@chuggzies175
@chuggzies175 10 лет назад
mine turtle "hello" BOOM!
@willisvaughn7547
@willisvaughn7547 10 лет назад
atempt to call nil? after i do branch, 10
@rileypeters9886
@rileypeters9886 5 лет назад
I hate that I can hear you swallow and breath because of your mustache or beard
@SeleckPlays
@SeleckPlays 5 лет назад
I hated it too.
@sigmarkr
@sigmarkr 11 лет назад
dude i followed all your instrouktiouns and i got this bios:338: (string "branch"):1: ´=´ expected
@monseymons
@monseymons 5 лет назад
Nothing like typing all this code and simple forgetting to save -_-‘
@LLori496
@LLori496 5 лет назад
I knowww, i just forgot to save and completely sinked into my chair in disappointment ;-;
@SeleckPlays
@SeleckPlays 11 лет назад
Even the smallest mistake can cause the program to mess up. (Including my own!) If you have any details about why it's not working, like an error message, I would be more than happy to help. =)
@smittywee8277
@smittywee8277 6 лет назад
Mine says "bios:14: [string "Branch"] : 34: '=' expected"
@codyshaw2462
@codyshaw2462 4 года назад
smae for me line 7
@SeleckPlays
@SeleckPlays 11 лет назад
I updated the code in the description. Check that with the code you wrote and see if that fixes your problem.
@victxrr
@victxrr 4 года назад
11:30 I found it hilarious that the turtle just hovered back and looked at Seth like, "Did I do a good job?" 😂
@Dark_Vekx
@Dark_Vekx Год назад
Nice Kerbal space program music in the background
@SeleckPlays
@SeleckPlays 11 лет назад
I wrote this program before I knew how to pass arguments. I plan on re-writing the program at some point.
@jamesmckinney6425
@jamesmckinney6425 Месяц назад
I thought it'd be more simple. I'm not a programmer. Took me 10 seconds in to go hell nah I aint doin all that. Is there like pre-made programs I can just grab from somewhere?
@yarondragon9684
@yarondragon9684 7 лет назад
i typt everyting the same you did and i want to execute the program i typ in: branch and then i says: bios:338 [string "branch"]:29: ',' expected cud someone pls help me
@kennethgee2004
@kennethgee2004 2 года назад
LOL minecraft turtle sandbox to learn computer programming. This TurtleOS language is very close to the real turtle programming functions taught in software design classes.
@georgianbents
@georgianbents 11 лет назад
Thought of another question :) How can you include torch placement on the left hand wall with the 3tunnel script so it places a torch in between the 1st and 2nd right turns? Thanks again, loved the tutorial :)
@tripium2182
@tripium2182 3 года назад
It mines, then has an error, I tried it again and now it just dances. I'm on a server for a tekkit remake called "Definitely Not Tekkit" I currently have somebody helping but they are rusty with the turtle api. Can you help? I'll update you if it gets fixed
@fwog479
@fwog479 2 года назад
I keep getting a error “bios:14: [string “branch”]:1: ‘=‘ expected” what does this mean
@Liam-bp2rm
@Liam-bp2rm 3 года назад
I cannot for the life of me get the terminal to accept user input with FTB Revelation. But it's been nearly a decade since you uploaded this so some stuff has probably changed. Oh well..
@daviez2421
@daviez2421 3 года назад
here in 2021, my lua doesnt save so whe I broke the turtle I couldn't get the code back even when I saved it, yes I'm pressing enter lol.
@younglorddaggerdick1025
@younglorddaggerdick1025 3 года назад
ehhhm when i typed branch to star t the program it says branch. lua:1: "=" expected how do i fix this?
@hans_____
@hans_____ 2 года назад
Your KSP intro music told me you must know exactly what you're doing.
@voodoo_gaming
@voodoo_gaming 4 года назад
Using 3tunnel prompt my mining tunnel doesnt work, it'll mine 1 line and then stop, it's full on fuel and isnt showing any errors, help?
@Cherry12385
@Cherry12385 4 года назад
When i type branch it says branch. Lua:18: '.' expected
@CrimmzZT
@CrimmzZT 10 лет назад
how do i tell mr turtle it can eat any coal it finds? i have unlimited charcoal becuase of minefactory reloaded...
@SeleckPlays
@SeleckPlays 11 лет назад
I've seen alot of these "something" expected errors. The number after [string 'branch'] is the line number in the code that the error is found on, and the thing in single quotes is what is expected. Go to line 13 to add the '('. Hope that helps!
@kennyredthegreat3015
@kennyredthegreat3015 3 года назад
Wait what?
@zanhup7107
@zanhup7107 4 года назад
when i copy and paste the code from the description it doesnt paste the hole thing it just says "branc" and thats it, can u pls help
@mikelagaffe
@mikelagaffe 8 лет назад
it's an older code, but it checks out! amazing, it even works on longer distances and place torches at each .10 blocks. only problem is i cant craft the 16slots turtle(dont work for a reason) so i tried ro add a function where ,when full,it places a chest(wich is on slot 1 ,dump everything but the torches on slot 9, then picks up the chest and place it back to slot 1... but i'm so bad at coding...your branch progeam works fine. the chest thingy program works fine, but i am not able to add the chest function to your program without screwing everything up... chest code is if turtle.getItemCount(8) turtle.dig() turtle.select(1) turtle.place() for i = 2,8 do turtle.select(i) turtle.drop() end turtle.select(1) turtle.dig() end but i dont know how to add it to your code :s
@SeleckPlays
@SeleckPlays 11 лет назад
It looks like there was still a run = read() line missing. I re-uploaded the program to Mediafire. Try the new link and let me know how it goes.
@SeleckPlays
@SeleckPlays 11 лет назад
You have a loop on line 8. You forgot to put the word "do". For example: for i = 0, 9 do
@silkdragon47
@silkdragon47 8 лет назад
where is that song from in the beginning? Its so familiar but I can't put my finger on it.
@crackerjacks3563
@crackerjacks3563 3 года назад
What is 48 unexpected symbol im so confused
@phdanime1126
@phdanime1126 4 года назад
whenever i enter the command word for word it always comes up with some error lol not sure what im doing wrong
@Uncle_Jay13
@Uncle_Jay13 3 года назад
Branch:7: attempt to index ? (A nill value)
@tacoanator2936
@tacoanator2936 2 года назад
how do you import a turtle code or do u have to actually type it all out? you cant copy paste?
@EVoMVP
@EVoMVP 11 лет назад
It doesnt have a refuel program it says, im playing tekkit classic not feed the beast, i looked it up and it says I have to use lua, but I get an error using lua to refuel it .-.
@reecedouglass1151
@reecedouglass1151 11 лет назад
i feel like an idiot, but does anyone know how to terminate a program while its running, i have a few turtles that wont let me modify them because they are still running the program.
@T1m3b0mb1
@T1m3b0mb1 11 лет назад
i called my program "strip" and i did every thing like you but i get every time a error like this: bios:338: [string "strip"]:32: 'then' expected what should i do?
@hansstemshaug8947
@hansstemshaug8947 11 лет назад
umm i feel kinda dumb now...... i am trying to excacavate a 40 by 40 area but when ever i log out or is not in that chunck it stops plz respond to this it will really help :)
@vearheart42
@vearheart42 11 лет назад
Oh wow, I just realized a program I wrote is fairly inefficient. I should have detected up and down like you did here rather then go to each block on it's face.
@mrfootballman101
@mrfootballman101 10 лет назад
Im using 1.5 how can i make it mine a tunnel that come back dump into chest
@ShadowTheKitty42
@ShadowTheKitty42 11 лет назад
I don't understand why you did this: for i = 1, run do k = i - 1 j = k % 10 if j == 1 then placeTorch() Wouldn't it be simpler and easier to do this?: for i = 1, run do j = i % 10 if j == 0 then placeTorch()
@MinecraftGamerJoe
@MinecraftGamerJoe 11 лет назад
When using a turtle, a person has to be in the chunk while the turtle is excavating. If you're playing on a modpack, you can use a chunk loader?
@ONI_Zeus
@ONI_Zeus 4 года назад
Man I have an error saying 3tunnel :6: attempt to call nil
@PvmSeakush
@PvmSeakush 11 лет назад
hey i keep getting a message saying Turtle name:2: attempt to call nil any idea whats wrong its for the 3tunnel one by the way
@HitThatButtonWins
@HitThatButtonWins 10 лет назад
My computer is a piece of shit and this doesn't work
@TutorialOfComedy
@TutorialOfComedy 11 лет назад
i have written it like you but if i tipe branch it sais bios:338: [string "branch"]:28:`,` expected help me please
@amsears60441
@amsears60441 11 лет назад
When I use the "branch" program It says "branch :36: attempt to call nil. Help would be appreciated. Thank you.
@yertnert2624
@yertnert2624 3 года назад
mine alwasy stops when leaving world or going to the nether
@guccitrev
@guccitrev 11 лет назад
bios:338: [string "3dig"}:2: '(' any help i didint write the tunnel program if that has anything to do with it
@TheCraftCrewInfinity
@TheCraftCrewInfinity 11 лет назад
it said bios:338: [string "branch"] :34:'=' expected
@sircakey-5902
@sircakey-5902 4 года назад
same for me but mine says 4 instead of 34
@Enviousttv
@Enviousttv 11 лет назад
nope i tried it and its the same with that mod pack
@dolphinsavage7907
@dolphinsavage7907 3 года назад
Can I copy and paste the program into turtles?
@dillonreviews6931
@dillonreviews6931 3 года назад
when i type refuel all it says no such program
@unobtanium
@unobtanium 11 лет назад
Wow! Didnt realized that this video got such popular ;D Really nice!
@timlolland326
@timlolland326 11 лет назад
ive typed in everything but it wont save. i pressed CTRL but it says "[SAVE] exit print" plz help
@nyllet100
@nyllet100 11 лет назад
could you please put it up on pastebin^^ didnt understand shits even tough im using a turtle ^^
@tylerzahn660
@tylerzahn660 10 лет назад
Lots of people didn't understand plz put in more detailed
@Thebossineldorado
@Thebossineldorado 9 лет назад
my tutle does not go back to chest when it fills up
@totaly_savage
@totaly_savage 11 лет назад
any one know why I keep getting no such program
@minecraftguy73
@minecraftguy73 11 лет назад
I keep getting the message tunnelz:32: attempt to call nil and I copied it perfectly!
@EVoMVP
@EVoMVP 11 лет назад
Uhh after three blocks, my turtle just shutsdown on its own, any help with that?
@ads951632
@ads951632 11 лет назад
Y does mine say bios¦338¦ [string "branch"] ¦44¦ '‚' Expected Nice vid anyway
@markus7350
@markus7350 10 лет назад
How do i get the miningturtle to put its items into a chest once it has filled its inventory?
@MaverickGMR
@MaverickGMR 9 лет назад
You will have to research that code somewhere else and try to put it in with these codes
@SeleckPlays
@SeleckPlays 11 лет назад
I'm guessing that on line 7 there is a conditional loop that needs the keyword do at the end of it, like while (true) do.
@pepinismaster
@pepinismaster 11 лет назад
I try running 3tunnel and i get the same message. Not sure what it means
@karlfoley744
@karlfoley744 11 лет назад
done what you have said, comes up with attempt to call nil. can you help
@Thelethallion
@Thelethallion 11 лет назад
Every time the 3x3 tunnel digs 1 it says attempt to call nil please help
@RosieTheProti
@RosieTheProti 4 года назад
If it runs out of fuel, will it return to the chest?
@ARJGameplay
@ARJGameplay 11 лет назад
how do we copy and paste the codes from the description to the turtle
@glorri7
@glorri7 11 лет назад
why dont u jsut post this in the comment so whe can copy and paste?
@StreamTechnology
@StreamTechnology 10 лет назад
Loved your video keep up posting new and good quality videos, also i would appreciate if you could let me know what i could do to improve the quality of my videos.
@Nik420
@Nik420 5 лет назад
Mine worked ;) tyty
@SeleckPlays
@SeleckPlays 11 лет назад
When you go into your program, what does line 32 read?
@Rhovanion85
@Rhovanion85 2 года назад
Hello Mine Turtle! Hellooo!! * BOOM*
@oliverkarlsson3373
@oliverkarlsson3373 11 лет назад
When i right click the turtle, the turtle screen is just black
@mranderson7058
@mranderson7058 10 лет назад
Attempt to call nil Kept showing up on the three tunnel for me
@SeleckPlays
@SeleckPlays 11 лет назад
Nope... but I'll be working on one shortly. When that vid is finished you can check my channel. I'll also link it here.
@rollin3480
@rollin3480 10 лет назад
Okay how in the hell do u name/start a new program B/C I CANT GET IT TO WORK AND I FEEL AS IM JUST WASTING MY FUCKING TIME WITH THIS
@SuprH88
@SuprH88 10 лет назад
just write edit (name you want program to be called) Example: edit branch It creates it when u write the command
@ratoversky
@ratoversky 4 года назад
IM A HACKERMAN. Thanks
Далее
Self Replicating Turtles in Minecraft ComputerCraft!
13:42
Ко мне подкатил бармен
00:58
Просмотров 137 тыс.
Fully Automated Mining Tutorial | Modded Minecraft
12:32
Can You Beat Hitman 3 Without Breaking ANY Laws?
22:37
Can Windows XP Run Minecraft 1 21?
44:40
Просмотров 822 тыс.
BANNED Minecraft Mods...
16:39
Просмотров 265 тыс.
EpikTek Super Simple - ComputerCraft Turtle Quarry
9:38
Minecraft's Strangest Subgenre "Technology Mods"
22:41
Ко мне подкатил бармен
00:58
Просмотров 137 тыс.