Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.write("hoelang is een chinees?:")
- x = read()
- term.write("")
- term.write("hoe breed is een chinees?:")
- y = read()
- function check()
- local sslot = 1
- turtle.select(sslot)
- sslot = (sslot%16) +1
- turtle.select(sslot)
- turtle.getItemCount(sslot)
- while turtle.getItemCount(sslot) <1 do
- sslot = (sslot%16)+1
- end
- turtle.select(sslot)
- end
- function fw()
- for i = 1, x do
- check()
- turtle.placeDown()
- turtle.forward()
- end
- end
- function tr()
- turtle.turnRight()
- turtle.placeDown()
- turtle.forward()
- turtle.placeDown()
- turtle.turnRight()
- end
- function tl()
- turtle.turnLeft()
- turtle.placeDown()
- turtle.forward()
- turtle.placeDown()
- turtle.turnLeft()
- end
- function ss()
- for i=1,y do
- fw()
- tr()
- fw()
- tl()
- end
- end
- ss()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement