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

[1.63][SSP] turtle.suckDown() ignoring mc stacking limits

Started by souperdavecdn, 08 September 2014 - 12:24 AM
souperdavecdn #1
Posted 08 September 2014 - 02:24 AM



--# plantwheat

--# move to the right, maintain facing
local function slideRight()
turtle.turnRight()
turtle.forward()
turtle.turnLeft()
end

local function plant1Field()
for row = 1,6 do
for col=1,5 do
if (row == 1) and (col == 3) then
--# we're at the piston, so skip it
slideRight()
else
turtle.select(1)
turtle.dig()
turtle.place()
--# don't want to go right at last column or we'd hit the wall
if col ~= 5 then
slideRight()
end
end
end

if row ~= 6 then
turtle.back()
turtle.turnLeft()
for x=1,4 do
turtle.forward()
end
turtle.turnRight()
end

end
end

local function firstPosition()
--# get up over torches
turtle.up()
turtle.up()
--# move to 1st position on the field
for x = 1,7 do
turtle.forward()
end
--# get down on the 1st spot
turtle.down()
end

local function secondPosition()
--# turn to face field to the left
turtle.turnLeft()
--# move to the next field
for x = 1,10 do
turtle.forward()
end
--# turn to face piston side of field
turtle.turnRight()

--# move to 1st position on the field
for x = 1,5 do
turtle.forward()
end
end

local function returnHome()
turtle.up()

turtle.back()
turtle.back()

slideRight()
slideRight()

turtle.down()
turtle.down()
end

local function doPlanting()
--# begin sitting on top of seed chest
--# should verify seeds are full
firstPosition()
plant1Field()
secondPosition()
plant1Field()
returnHome()
end

while true do
sleep(30)
if rs.getInput("back") then
doPlanting()
turtle.select(1)
turtle.suckDown()
sleep(600)
end
end



Edited on 09 September 2014 - 08:59 PM
TurtleHunter #2
Posted 08 September 2014 - 03:14 AM
Are you using MCPC+/Cauldron?
theoriginalbit #3
Posted 08 September 2014 - 03:23 AM
Make sure to read through this thread before posting bug reports. Please do so now, and update the OP with more information.

Sorry about the messy code, it looks cool in my editor but the bbcode seems to screw it up.
Pastebin or use –# for comments so it doesn't try to highlight strings when it finds a ' or "

--# I'm a prettyprint safe comment
local str1 = "Code appears normal"
-- I'm not a prettyprint safe comment
local str2 = "Code is now affected by the above comment"
souperdavecdn #4
Posted 09 September 2014 - 10:51 PM
Are you using MCPC+/Cauldron?

Nope
Cycomantis #5
Posted 11 September 2014 - 08:29 AM
This appears to be related to the Dupe bug which has been reported numerious times since 1.63 was released. I've been able to confirm that the ignore of the stack limits is part of what leads to the duplication of items in those reports.
dan200 #6
Posted 29 September 2014 - 11:30 AM
Fixed in 1.64