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

[MC 1.5.2][CC 1.5.3][SSP] incorrect turtle.suck behaviour

Started by KaoS, 25 May 2013 - 03:24 AM
KaoS #1
Posted 25 May 2013 - 05:24 AM
I am not 100% sure if this is intended or not, perhaps it should be in suggestions but I will leave that up to the moderators

Turtles suck items out of inventories in the order of their slots which is perfectly fine however when you cannot fit the first item in your inventory but could hold the second item should it not suck out the second item?

SCENARIO:
Place a turtle and fill all of its slots with 1 stone each, place a chest in front of him with a dirt block in slot 1 and a stone block in slot 2 and use turtle.suck()
EXPECTED:
The stone to be sucked out as it can fit into the turtle's inventory
REALITY:
turtle.suck() returns false
Cloudy #2
Posted 25 May 2013 - 06:11 AM
This is intended behaviour. Turtles are blind. They will pull the first item they can that fits - if they can't do it, they'll just return false.
KaoS #3
Posted 25 May 2013 - 06:43 AM
Ok, thanks

They will pull the first item they can that fits
a little ambiguous there…