Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --floor2
- local turnLeft=true;
- local failCount=0;
- local breakFloor=true;
- local sel=1;
- local slot=1
- local width=1;
- local length=1;
- local stage=0
- local args={...}
- print("platform 3xlength builder by Niseg")
- print("refuel the turtle put tell it to level where you want platform")
- print(" builds backwards do turn right 2 ");
- turtle.select(sel)
- if #args>1 then
- --width=tonumber(args[1])
- length=tonumber(args[1])
- --sel=tonumber(args[3])
- if width<1 then
- print("invalid length ")
- exit()
- end
- -- print("args3="+args[3])
- else
- repeat
- print("length ")
- length=tonumber(read())
- until length>0
- end
- length= length*3;
- for j= 1,length,1 do
- if stage== 0 then
- turtle.turnRight();
- elseif stage==1 then
- turtle.turnLeft();turtle.turnLeft();
- elseif stage==2 then
- turtle.turnRight();turtle.back();
- end
- if(not turtle.place()) then sel=sel+1;turtle.select(sel);turtle.place();end
- stage=(stage+1)%3;
- end
- print("done")
Advertisement
Add Comment
Please, Sign In to add comment