Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function RandomMats()
- currentslot=math.random(1,16)
- turtle.select(currentslot)
- while turtle.getItemCount(currentslot) == 0 do
- currentslot=math.random(1,16)
- turtle.select(currentslot)
- end
- end
- function MarsHome(size)
- Shapes.line(3)
- RandomMats()
- for loop=1, 4, do
- for i=1, size do
- RandomMats()
- turtle.forward()
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- turtle.placeDown()
- end
- turtle.forward()
- turtle.turnRight()
- end
- end
- function positionSelfOut()
- turtle.up()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- end
- function positionSelfIn()
- turtle.up()
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- end
- for i=1,2 do
- MarsHome(2)
- turtle.up()
- end
- positionSelfOut()
- for i=1, 3 do
- MarsHome(3)
- turtle.up()
- end
- positionSelfOut()
- for i=1, 7 do
- MarsHome(4)
- end
- PositionSelfIn()
- for i=1, 3 do
- MarsHome(3)
- turtle.up()
- end
- PositionSelfIn()
- for i=1,2 do
- MarsHome(2)
- turtle.up()
- end
- PositionSelfIn()
- for i=1,2 do
- MarsHome(1)
- turtle.up()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement