Posted 04 March 2015 - 07:18 PM
This is really bizarre, none of the turtle functions work! Can somebody help me out here?
EDIT: It only happens with labelled turtles.
EDIT 2: I am using CC 1.7.3, MC 1.7.10, Forge 10.13.1.1217. My code is this:
EDIT: It only happens with labelled turtles.
EDIT 2: I am using CC 1.7.3, MC 1.7.10, Forge 10.13.1.1217. My code is this:
rednet.open("right")
while true do
term.clear()
term.setCursorPos(1, 1)
term.write("ID: "..os.getComputerID())
local id, msg, dis = rednet.receive()
if msg then
if msg == "forward" then
while not turtle.forward() do
turtle.dig()
end
elseif msg == "back" then
while not turtle.back() do
turtle.turnLeft()
turtle.turnLeft()
turtle.dig()
end
elseif msg == "up" then
while not turtle.up() do
turtle.digUp()
end
elseif msg == "down" then
while not turtle.down() do
turtle.digDown()
end
elseif msg == "left" then
turtle.turnLeft()
elseif msg == "right" then
turtle.turnRight()
elseif msg == "dig" then
turtle.dig()
elseif msg == "digUp" then
turtle.digUp()
elseif msg == "digDown" then
turtle.digDown()
elseif msg == "exit" then
term.clear()
term.setBackgroundColour(colours.yellow)
term.setCursorPos(1, 1)
term.write(os.version())
term.setCursorPos(1, 2)
return
end
end
end
Edited on 04 March 2015 - 06:32 PM