- Sky
- Blueberry
- Slate
- Blackcurrant
- Watermelon
- Strawberry
- Orange
- Banana
- Apple
- Emerald
- Chocolate
- Charcoal
Salmax
-
Content Count
2 -
Joined
-
Last visited
Posts posted by Salmax
-
-
Hello
I use on my server and client:
"OpenComputers-MC1.8-1.5.3.8-universal.jar"
"forge-1.8-11.14.1.1334-universal.jar" or "forge-1.8-11.14.1.1339-universal.jar"
In my program does not perform the function of "robot.turn ... ()".
It does not work only on the server, if you test a program on a local world is OK.
My program:
local r = require("robot")local slot = 1local xmax = 11local ymax = 11local x = 1local y = 1local turn = 0r.select(slot)while true doif r.count(slot) == 0 thenslot = slot + 1if slot == r.inventorySize() + 1 thenprint("Koniec materiału!")os.exit()endr.select(slot)elseif r.placeDown() == nil thenprint("Nie mogłem postawić bloku!")os.exit()endx = x + 1if x == xmax + 1 thenx = 1y = y + 1if y == ymax + 1 thenprint("Koniec pracy :)")os.exit()endif turn == 0 thenr.turnRight()r.forward()r.turnRight()elser.turnLeft()r.forward()r.turnLeft()endturn = turn + 1if turn == 2 then turn = 0 endelseif r.forward() == nil thenprint("Nieusunięta przeszkoda!")os.exit()endendendendPlease help.
(sorry for my english)
robot.turn...() not working on server
in Miscellaneous
Posted