Posted 12 March 2012 - 03:18 PM
hi
i am making a automated tree farm with 2 turtle's
turtle 1 will chop down the tree when powerd with redstone from the back
turtle 2 will check if there is a tree and when there is a tree it will send out a redstone signal
but every time i run script(redstone_listner) on turtle 1 i get the error:
"java.lang.ArrayIndexOutOfBoundsException"
and on turtle 2's script(block_listner) i get the error:
"bios:15: vm error: java.lang.ArrayIndexOutOfBoundsException: 256
redstone_listner(turtle 1) script:
block_listner(turtle 2) script
the script to chop the tree runs perfectly from the terminal
sorry for my bad english i am dutch
i am making a automated tree farm with 2 turtle's
turtle 1 will chop down the tree when powerd with redstone from the back
turtle 2 will check if there is a tree and when there is a tree it will send out a redstone signal
but every time i run script(redstone_listner) on turtle 1 i get the error:
"java.lang.ArrayIndexOutOfBoundsException"
and on turtle 2's script(block_listner) i get the error:
"bios:15: vm error: java.lang.ArrayIndexOutOfBoundsException: 256
redstone_listner(turtle 1) script:
Spoiler
function rslistning()
if redstone.getInput("back")then
shell.run("tree")
rslistning()
else
rslistning()
end
end
rslistning()
block_listner(turtle 2) script
Spoiler
function listning()
if turtle.detect() == true then
redstone.setOutput("back", true)
sleep(2)
redstone.setOutput("back", false)
listning()
else
listning()
end
end
listning()
the script to chop the tree runs perfectly from the terminal
sorry for my bad english i am dutch