can someone please help me understand what it is doing, and how to fix it? thanks so much!
EDIT: It's only seeds from fully grown wheat, not just planted seeds, or in one of the other stages of wheat growth
i don't have any code yet, just manually entering digDown, placeDown, and select(1) or select(2), working on the code later to automate it, just wondering if there is a reason why the seeds aren't stacking even though the first slot only has 1 or 2 seeds,
My farming program has no problem with stacking so.. Most likely the manual typing of the codeTry selecting slot 4 and using turtle.transferTo(1) and see if it can actually combine the 2 stacks. If that doesn't work see if YOU can combine the stacks. If you can't then it's not CC it's mc.
Well I'll check to see if I can replicate the issue when I get back to my computer… If I can't then yeh you'll have to use transferTo… If I can replicate then post this in bugs with a detailed explanation for Cloudy to replicate.@suicidal: yes
@theoriginalbit: its CC, cause transferTo works, and i can combine the stacks. Does this mean after every harvest I will have to add turtle.select(4) turtle.transferTo(1)?
About 10mins…@theoriginalbit: ok, thanks, how long will it be till you get back to your computer, if you don't mind me asking?
local rows = 15
local columns = 4
local y = 1
local x = 1
function transferSeeds()
if turtle.getItemSpace(1) > 0 then
for i = 3, 16 do
if turtle.compareTo(1) then
turtle.transferTo(1, turtle.getItemSpace(1))
end
end
end
end
function farm()
turtle.digDown()
turtle.select(1)
turtle.placeDown()
turtle.select(2)
turtle.placeDown()
turtle.select(1)
turtle.digDown()
transferSeeds()
end
while true do
if y < columns then
if x < rows then
farm()
end
end
if x == rows then
x = 0
if y == 1 then
y = y + 1
turtle.turnRight()
turtle.forward()
turtle.turnRight()
end
if y == 2 then
y = y + 1
turtle.turnLeft()
turtle.forward()
turtle.turnLeft()
end
if y == 3 then
y = y + 1
turtle.turnRight()
turtle.forward()
turtle.turnRight()
end
if y == 4 then
y = 1
turtle.turnRight()
turtle.forward()
turtle.forward()
turtle.forward()
turtle.forward()
turtle.turnRight()
turtle.back()
transferSeeds()
for s = 3, 16 do
turtle.select(s)
turtle.dropDown()
end
turtle.forward()
end
end
end
Oh oops sorry didn't even see that code post…ok… well, i just tested the code above, and it kindof worked… lost of bugs, first of which i was an idiot, and used if y == 1, incrimented y, then if y == 2, not thinking about what i was doing, so it got to the last row of the field and kinda went herp a derps flerp… think i got that ironed out though…. lmfao the whole time it went derp though
local rows = 15
local columns = 4
local y = 1
local x = 1
turtle.select(16)
turtle.refuel(64)
turtle.select(1)
function transferSeeds()
if turtle.getItemSpace(1) > 0 then
for i = 3, 16 do
if turtle.compareTo(1) then
turtle.transferTo(1, turtle.getItemSpace(1))
end
end
end
end
function farm()
turtle.digDown()
turtle.select(1)
turtle.placeDown()
turtle.select(2)
turtle.placeDown()
turtle.select(1)
turtle.digDown()
transferSeeds()
end
while true do
if y < columns then
if x < rows then
farm()
turtle.forward()
x = x+1
end
end
if x == rows then
if y == 1 then
x = 1
y = y + 1
turtle.turnRight()
turtle.forward()
turtle.turnRight()
elseif y == 2 then
x = 1
y = y + 1
turtle.turnLeft()
turtle.forward()
turtle.turnLeft()
elseif y == 3 then
x = 1
y = y + 1
turtle.turnRight()
turtle.forward()
turtle.turnRight()
elseif y == 4 then
y = 1
x = 1
turtle.turnRight()
turtle.forward()
turtle.forward()
turtle.forward()
turtle.turnRight()
turtle.back()
transferSeeds()
for s = 3, 16 do
turtle.select(s)
turtle.dropDown()
end
turtle.forward()
end
end
end
local function forward()
if not turtle.forward() then
if turtle.getFuelLevel() == 0 then
-- out of fuel
elseif turtle.detect() then
-- *wild block appears*
else
turtle.attack() -- incase of mobs
end
end
end
for c = 1, columns - 1 do
for r = 1, rows do
forward()
-- below here may need to be reversed depending on the way you want it to move
if c % 2 == 0 then
turtle.turnLeft()
forward()
turtle.turnRight()
else
turtle.turnRight()
forward()
turtle.turnRight()
end
end
end