Turtle script requests

  • Please make sure you are posting in the correct place. Server ads go here and modpack bugs go here
  • 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

scoggin949

New Member
Jul 29, 2019
2
0
0
Hey guys, I have 2 scripts in mind for a server I'm on.

Turtle landmark placer for quarry:

Goes specified length in both x and z and places a landmark
Breaks all blocks In its path
If there is no block to place on, goes down and places blocks until on the same y as central location
One central location, goes (x) blocks in x axis, places landmark, comes back. Goes (x) blocks on the z axis, places landmark, and comes back

Mob farm:

With a soul shard or something else, all mobs will pile up in one spot, and turtle will repeatedly kill mobs, and wen inventory is full drop them down
Not an xp turtle

Thanks guys!
Scoggin
 

Guswut

New Member
Jul 29, 2019
2,152
0
0
Hey guys, I have 2 scripts in mind for a server I'm on.

You would likely be best off checking on the ComputerCraft forums (http://www.computercraft.info/forums2/) for these scripts. Like there, asking for scripts to be written for you usually won't get you the script. Every now and again, someone decides to pander, but usually people are smart enough to remember that teaching a man to fish will feed him for life. Good luck!
 

zilvarwolf

New Member
Jul 29, 2019
541
0
0
There's no need for a turtle to go down to place a block for the landmark. A turtle has the amazingly awesome ability to place blocks on empty space with no connectors (at least, they did in 5.1.1)

So you should be able to write two loops (or a function) that iterate from 1 to (max of 64 and entered values). Each loop would check to see if something is in front, break the block, repeat as needed, and finally move forward. When it reaches the right distance, place a block of cobble/sand/wood down, move back one, place the landmark which has to be in slot (whatever), and then go back to the beginning, turn left, and then do it again. The if the placedown command fails, there's probably already a block there, so it's no biggie.

The other one is really simple and has been demonstrated on the forums a couple of times, I think. I personally use a row of 7 of them. They get into an infinite loop, attack, and spit out whatever is in slots 1 and 2.
 

plzent3r

New Member
Jul 29, 2019
190
0
0
I will get to work, nothing I love more than turtle coding(thats not sarcasm, I actually enjoy it;))!