Mining Turtle Script

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Bryan_

New Member
Jul 29, 2019
5
0
0
Hello, and I am new to mining turtles. It would be great if someone could write a script for me that I could use in a Wrath Furnace so I can put in Iron Blocks and get Dark Iron. If possible, I would like it if I could type something in like "Dark 4" and it would run the program dark and use 4 iron blocks to make 4 dark iron blocks. It would be great if anyone could help me.

P.S. I need the dark iron for a project I am working on that requires Upgraded barrels.

Thanks,
Bryan_
 

Yusunoha

New Member
Jul 29, 2019
6,440
-4
0
don't know if it is possible, but you might also code it so you have a button next to the turtle, and when you press the button the turtle automatically does the code for you.
 

MrCervelo

New Member
Jul 29, 2019
248
0
0
Written on the fly and untested.

Code:
args={ ... }
blockNum=tonumber(args[1])
turtle.select(1)
if ( turtle.getItemCount(1) < blockNum ) then
  io.write("Insufficient Iron Blocks in slot 1")
  os.exit()
end
for i = 1,blockNum do
  turtle.place()
  sleep(1)
  turtle.dig()
end
 

Bryan_

New Member
Jul 29, 2019
5
0
0
Thanks! I haven't tried the script yet, my FTB is being really weird. Whenever I try to load up my world, I get around 70 fps but it will after like 5 minutes say "Shutting down internal server". I am pretty sure it is because of Thaumcraft, because some text popped out and I crashed and I couldn't read what it said. I think it spawned a wisp, but I am not sure.
P.S. I am on a mac.
Yes, I get 70 fps on FTB on a mac. Deal with it.
P.P.S. I am using the Mindcrack mod pack.