View difference between Paste ID: v9ZMCPPE and J8Z1XqSK
SHOW: | | - or go back to the newest paste.
1
term.clear()
2
print( "*******************************" )
3
print( "***********WELCOME!************" )
4
print( "*******************************" )
5
print( "********turtle.bridge()********" )
6
print( "**************is***************" )
7
print( "************ACTIVE*************" )
8
print( "***Please read & follow all****" )
9
print( "****instructions closely.******" )
10
print( "*******************************" )
11
print( "Press any key to continue..." )
12
os.pullEvent("char") 
13
term.clear()
14
print( "*******************************" )
15
print( "********turtle.bridge**********" )
16
print( "*****is brought to you by******" )
17
print( "******theCountChuckula*********" )
18
print( "*******************************" )
19
print( "Press any key to continue..." )
20
os.pullEvent("char") 
21
term.clear()
22
print( "Place 2+ Block-Auto-Re-Filled" )
23
print( "Ender Chests into Slot 1." )
24
print( "Place 2+ Fuel-Auto-Re-Filled" )
25
print( "Ender Chests into Slot 2." )
26
print( "Place 2+ Auto-Sorting" )
27
print( "Ender Chests into Slot 3." )
28
print( "Press any key to continue..." )
29
os.pullEvent("char")
30
term.clear()
31
print( "I mean it. At least 2 of each chest!" )
32
print( "When the turtle places one, it uses the" )
33
print( "extras as a placeholder to prevent errors." )
34
print( "Press any key to continue..." )
35
os.pullEvent("char")
36
term.clear()
37
print( "Turtle is now building bridges to a brighter tomorrow!" )
38
39
local function ascend()
40
  turtle.digUp()
41
  turtle.up()
42
  turtle.select(16)
43
  turtle.placeDown()
44
end
45
local function descend()
46
  turtle.digDown()	
47
  turtle.down()
48
end
49
local function refuel()
50
  turtle.select(5)
51
  turtle.digUp()
52
  turtle.select(2)
53
  turtle.placeUp()
54
  turtle.select(15)
55
  turtle.suckUp()
56
  shell.run("refuel all")
57
  turtle.select(2)
58
  turtle.digUp()
59
end
60
local function restock()
61
  turtle.select(5)
62
  turtle.digUp()
63
  turtle.select(1)
64
  turtle.placeUp()
65
  turtle.select(16)
66
  turtle.suckUp()
67
  turtle.select(1)
68
  turtle.digUp()
69
end
70
71
local function unload()
72
  turtle.select(5)
73
  turtle.digUp()
74
  turtle.select(3)
75
  turtle.placeUp()
76
  for s = 4, 14 do
77
    turtle.select(s)
78
	turtle.dropUp()
79
  end
80
  turtle.select(3)
81
  turtle.digUp()
82
end
83
84
local function checks()
85
86
  if turtle.getFuelLevel() < 140 then
87
    refuel()
88
  end
89
  
90
  if turtle.getItemCount(16) < 64 then
91
    restock()
92
  end
93
  
94
end
95
96
local function surface()
97
  if turtle.getItemCount(16) < 4 then
98
    checks()
99
    unload()
100
  end
101
  if turtle.getFuelLevel() < 4 then
102
    checks()
103
    unload()
104
  end
105
  turtle.turnLeft()
106
  turtle.select(16)
107
  turtle.dig()
108
  turtle.place()
109
  turtle.turnRight()
110
  turtle.turnRight()
111
  turtle.select(16)
112
  turtle.dig()
113
  turtle.place()
114
  turtle.turnLeft()
115
  ascend()
116
  turtle.digUp()
117
  turtle.dig()
118
  turtle.forward()
119
end
120
121
local function pillar()
122
  checks()
123
  unload()
124
  
125
  for i = 1, 63 do
126
    descend()
127
  end
128
  
129
  for i = 1, 62 do
130
    ascend()
131
  end
132
  surface()
133
end
134
135
local function beginArch()
136
  
137
  checks()
138
  unload()
139
  
140
  for i = 1, 10 do
141
    descend()
142
  end
143
  
144
  for i = 1, 9 do
145
    ascend()
146
  end
147
  surface()
148
  for i = 1, 8 do
149
    descend()
150
  end
151
  
152
  for i = 1, 7 do
153
    ascend()
154
  end
155
  surface()
156
  for i = 1, 5 do
157
    descend()
158
  end
159
  
160
  for i = 1, 4 do
161
    ascend()
162
  end
163
  surface()
164
  for i = 1, 3 do
165
    descend()
166
  end
167
  
168
  for i = 1, 2 do
169
    ascend()
170
  end
171
  surface()
172
  for i = 1, 2 do
173
    descend()
174
  end
175
  
176
  for i = 1, 1 do
177
    ascend()
178
  end
179
  surface()
180
  for i = 1, 2 do
181
    descend()
182
  end
183
  
184
  for i = 1, 1 do
185
    ascend()
186
  end
187
  surface()
188
  for i = 1, 1 do
189
    descend()
190
  end
191
  surface()
192
  for i = 1, 1 do
193
    descend()
194
  end
195
  surface()
196
  for i = 1, 1 do
197
    descend()
198
  end
199
  surface()
200
  
201
end
202
203
local function endArch()
204
  
205
  checks()
206
  unload()
207
  
208
    for i = 1, 1 do
209
    descend()
210
  end
211
  surface()
212
  for i = 1, 1 do
213
    descend()
214
  end
215
  surface()
216
  for i = 1, 1 do
217
    descend()
218
  end
219
  surface()
220
  for i = 1, 2 do
221
    descend()
222
  end
223
  
224
  for i = 1, 1 do
225
    ascend()
226
  end
227
  surface()
228
  for i = 1, 2 do
229
    descend()
230
  end
231
  
232
  for i = 1, 1 do
233
    ascend()
234
  end
235
  surface()
236
  for i = 1, 3 do
237
    descend()
238
  end
239
  
240
  for i = 1, 2 do
241
    ascend()
242
  end
243
  surface()
244
  for i = 1, 5 do
245
    descend()
246
  end
247
  
248
  for i = 1, 4 do
249
    ascend()
250
  end
251
  surface()
252
  for i = 1, 8 do
253
    descend()
254
  end
255
  
256
  for i = 1, 7 do
257
    ascend()
258
  end
259
  surface()
260
  for i = 1, 10 do
261
    descend()
262
  end
263
  
264
  for i = 1, 9 do
265
    ascend()
266
  end
267
  surface()
268
  
269
end
270
271
local function path()
272
  descend()
273
  for i = 1, 10 do
274
    surface()
275
    descend()
276
  end
277
  ascend()
278
end
279
280
while true do
281
pillar()
282
pillar()
283
pillar()
284
beginArch()
285
path()
286
endArch()
287
288
end