Getting a turtle to drop stuff into a chest behind it...

  • 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

SmokeLuvr1971

New Member
Jul 29, 2019
753
0
0
According to the wiki, Turtle API specifies in front [turtle.drop], above [turtle.dropUp] and below [turtle.dropDown] and hints at other sides for each of these commands. Does the turtle have the capability to sense a chest behind it if I use turtle.drop, or will it drop the item in front regardless?

Trying to program a Wrath Furnace turtle so dropping my newly-converted Dark Iron block right below the fire isn't such a good thing.
 

EddieW

Member
Jul 29, 2019
12
0
16
To the best of my knowledge, turtles can only dig or drop up, forward, and down.

But you can always use turtle.turnRight a couple of times to have it face backwards - it's not an immobile block after all :)
 

SmokeLuvr1971

New Member
Jul 29, 2019
753
0
0
Hehe. Got tied of waiting and figured out how to test this myself. The hints implied at on the wiki are LIES. The examples are the truth. turtle.drop will drop the item in front of the turtle. Sos I needs to have the turtle turn around, and then drop the item [at least turning doesn't require fuel :)].

Hope this helps someone else out.
 

goreae

Ultimate Murderous Fiend
Nov 27, 2012
1,784
2,649
273
Raxacoricofallapatorius
Turtles can only operate in front, above, or below them. This applies to placing, breaking, moving, dropping, attacking, sucking, etc. The only thing the other sides can do is interact with peripherals.
 

tindin

New Member
Jul 29, 2019
369
0
0
According to the wiki, Turtle API specifies in front [turtle.drop], above [turtle.dropUp] and below [turtle.dropDown] and hints at other sides for each of these commands. Does the turtle have the capability to sense a chest behind it if I use turtle.drop, or will it drop the item in front regardless?

Trying to program a Wrath Furnace turtle so dropping my newly-converted Dark Iron block right below the fire isn't such a good thing.

get them to turn before they drop
 

Niseg

New Member
Jul 29, 2019
8
0
0
Because the turtle can only do operations up, down and forward here is a small tip:

If you are writing turtle scripts that involve placement of blocks(build script/mining well, etc) then the turtle would be better off moving backwards. If you are writing a dig script it's a good idea to move forward. Moving back in a script that builds will take advantage of the 3 possible placement positions while moving forward usually give you only 2 option .

The only exception to the rule is when the turtle does both digging and placing . I tested it on my build script building 11x11X40 tube inside a solid block of stone.The wall placement rate went down from 107~ blocks per second to about 26~ blocks per second because It had to turn around every time and it keeps the inventory clean.