Advertisement
maxtorcd55

village

Mar 4th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.92 KB | None | 0 0
  1. cob = 1
  2. plank = 2
  3. log = 3
  4. glass = 4
  5. step = 5
  6.  
  7. function refual()
  8. while turtle.getFuelLevel() < 100 do
  9. print("brandstof nodig in laatste slot, druk op een toest voor door te gaan")
  10. os.pullEvent("key")
  11. turtle.select(16)
  12. turtle.refuel()
  13. turtle.select(1)
  14. end
  15. end
  16.  
  17.  
  18. function setplock(slot)
  19. turtle.select(slot)
  20. while turtle.getItemCount( turtle.getSelectedSlot() ) == 0 do
  21. print("item nodig")
  22. os.pullEvent("key")
  23. end
  24. turtle.placeDown()
  25. end
  26.  
  27.  
  28. function stepplace()
  29. turtle.select(step)
  30. turtle.down()
  31. turtle.turnLeft()
  32. turtle.back()
  33. turtle.place()
  34. turtle.up()
  35. turtle.forward()
  36. turtle.turnRight()
  37. end
  38.  
  39.  
  40. function placeblock(slot)
  41. turtle.dig()
  42. turtle.digDown()
  43. setplock(slot)
  44. end
  45.  
  46. function draaiL180()
  47. turtle.turnLeft()
  48. turtle.forward()
  49. turtle.turnLeft()
  50. end
  51.  
  52. function draaiR180()
  53. turtle.turnRight()
  54. turtle.forward()
  55. turtle.turnRight()
  56. end
  57.  
  58. for i = 1,2 do
  59.  
  60. for i = 1,9 do
  61. placeblock(plank)
  62. turtle.forward()
  63.  
  64. end
  65.  
  66. draaiR180()
  67. turtle.forward()
  68.  
  69. for i = 1,9 do
  70. placeblock(plank)
  71. turtle.forward()
  72.  
  73. end
  74.  
  75. draaiL180()
  76. turtle.forward()
  77.  
  78. end
  79.  
  80. for i = 1,9 do
  81. placeblock(plank)
  82. turtle.forward()
  83.  
  84. end
  85. draaiR180()
  86. turtle.forward()
  87. for i = 1,5 do
  88. turtle.forward()
  89. end
  90.  
  91. for i = 1,4 do
  92. placeblock(plank)
  93. turtle.forward()
  94. end
  95. draaiL180()
  96. turtle.forward()
  97. for i = 1,4 do
  98. placeblock(plank)
  99. turtle.forward()
  100. end
  101.  
  102. turtle.up()
  103. turtle.turnLeft()
  104. placeblock(cob)
  105. turtle.forward()
  106. placeblock(cob)
  107. turtle.turnRight()
  108. turtle.forward()
  109.  
  110. for i = 1,4 do
  111. placeblock(cob)
  112. turtle.forward()
  113. end
  114. turtle.turnLeft()
  115.  
  116. for i = 1,6 do
  117. placeblock(cob)
  118. turtle.forward()
  119. end
  120.  
  121. turtle.turnLeft()
  122.  
  123. for i = 1,10 do
  124. placeblock(cob)
  125. turtle.forward()
  126. end
  127.  
  128. turtle.turnLeft()
  129.  
  130. for i = 1,6 do
  131. placeblock(cob)
  132. turtle.forward()
  133. end
  134.  
  135. turtle.forward()
  136. placeblock(cob)
  137. turtle.forward()
  138.  
  139. turtle.turnLeft()
  140.  
  141. for i = 1,5 do
  142. placeblock(cob)
  143. turtle.forward()
  144. end
  145. placeblock(cob)
  146.  
  147. turtle.up()
  148. turtle.turnLeft()
  149.  
  150. placeblock(cob)
  151. turtle.forward()
  152. placeblock(plank)
  153. turtle.forward()
  154. placeblock(plank)
  155. turtle.turnRight()
  156. turtle.forward()
  157. placeblock(log)
  158. turtle.forward()
  159. placeblock(glass)
  160. turtle.forward()
  161. placeblock(glass)
  162. turtle.forward()
  163. placeblock(log)
  164. turtle.forward()
  165. turtle.turnLeft()
  166.  
  167. for i = 1,6 do
  168. placeblock(cob)
  169. turtle.forward()
  170. end
  171. turtle.turnLeft()
  172.  
  173. placeblock(cob)
  174. turtle.forward()
  175. placeblock(log)
  176. turtle.forward()
  177. placeblock(glass)
  178. turtle.forward()
  179. placeblock(glass)
  180. turtle.forward()
  181. placeblock(log)
  182. turtle.forward()
  183. placeblock(plank)
  184. turtle.forward()
  185. placeblock(log)
  186. turtle.forward()
  187. placeblock(glass)
  188. turtle.forward()
  189. placeblock(glass)
  190. turtle.forward()
  191. placeblock(log)
  192. turtle.forward()
  193.  
  194. turtle.turnLeft()
  195. placeblock(cob)
  196. turtle.forward()
  197. placeblock(plank)
  198. turtle.forward()
  199.  
  200. placeblock(log)
  201. turtle.forward()
  202. placeblock(glass)
  203. turtle.forward()
  204. placeblock(log)
  205. turtle.forward()
  206.  
  207. placeblock(plank)
  208. turtle.forward()
  209.  
  210. turtle.forward()
  211.  
  212. placeblock(plank)
  213. turtle.forward()
  214.  
  215. turtle.turnLeft()
  216.  
  217. placeblock(cob)
  218. turtle.forward()
  219.  
  220. placeblock(log)
  221. turtle.forward()
  222. placeblock(glass)
  223. turtle.forward()
  224. placeblock(glass)
  225. turtle.forward()
  226. placeblock(log)
  227. turtle.forward()
  228.  
  229.  
  230.  
  231. turtle.up()
  232. turtle.turnLeft()
  233. placeblock(cob)
  234. turtle.forward()
  235. placeblock(cob)
  236. turtle.forward()
  237. placeblock(cob)
  238. turtle.turnRight()
  239. turtle.forward()
  240.  
  241. for i = 1,4 do
  242. placeblock(cob)
  243. turtle.forward()
  244. end
  245. turtle.turnLeft()
  246.  
  247. for i = 1,6 do
  248. placeblock(cob)
  249. turtle.forward()
  250. end
  251.  
  252. turtle.turnLeft()
  253.  
  254. for i = 1,10 do
  255. placeblock(cob)
  256. turtle.forward()
  257. end
  258.  
  259. turtle.turnLeft()
  260.  
  261. for i = 1,6 do
  262. placeblock(cob)
  263. turtle.forward()
  264. end
  265.  
  266. turtle.forward()
  267. placeblock(cob)
  268. turtle.forward()
  269.  
  270. turtle.turnLeft()
  271.  
  272. for i = 1,5 do
  273. placeblock(cob)
  274. turtle.forward()
  275. end
  276. placeblock(cob)
  277.  
  278. turtle.up()
  279. turtle.turnLeft()
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286. placeblock(plank)
  287. turtle.forward()
  288. placeblock(plank)
  289. turtle.forward()
  290. placeblock(plank)
  291. turtle.turnRight()
  292. turtle.forward()
  293.  
  294. for i = 1,4 do
  295. placeblock(plank)
  296. turtle.forward()
  297. end
  298. turtle.turnLeft()
  299.  
  300. for i = 1,6 do
  301. placeblock(plank)
  302. turtle.forward()
  303. end
  304.  
  305. turtle.turnLeft()
  306.  
  307. for i = 1,10 do
  308. placeblock(plank)
  309. turtle.forward()
  310. end
  311.  
  312. turtle.turnLeft()
  313.  
  314. for i = 1,8 do
  315. placeblock(plank)
  316. turtle.forward()
  317. end
  318.  
  319.  
  320. turtle.turnLeft()
  321.  
  322. for i = 1,5 do
  323. placeblock(plank)
  324. turtle.forward()
  325. end
  326. placeblock(plank)
  327. turtle.forward()
  328. turtle.turnLeft()
  329.  
  330.  
  331. stepplace()
  332. turtle.forward()
  333. stepplace()
  334. turtle.turnRight()
  335. turtle.forward()
  336.  
  337. for i = 1,4 do
  338. stepplace()
  339. turtle.forward()
  340. end
  341. turtle.turnLeft()
  342.  
  343. for i = 1,8 do
  344. stepplace()
  345. turtle.forward()
  346. end
  347. turtle.turnLeft()
  348.  
  349. for i = 1,6 do
  350. stepplace()
  351. turtle.forward()
  352. end
  353. for i = 1,6 do
  354. turtle.forward()
  355. end
  356. turtle.turnLeft()
  357.  
  358. for i = 1,10 do
  359. stepplace()
  360. turtle.forward()
  361. end
  362.  
  363. turtle.turnLeft()
  364.  
  365. for i = 1,7 do
  366. turtle.forward()
  367. end
  368.  
  369. turtle.turnLeft()
  370. stepplace()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement