View difference between Paste ID: ZjVabMFJ and QwLiNURd
SHOW: | | - or go back to the newest paste.
1
print ("house builder")
2
print("slot 1 - 1st wall")
3
print("slot 2 - 2nd wall")
4
print("slot 3 - 3rd wall")
5
print("slot 4 - 4th wall")
6
print("slot 5 - windows")
7
print("slot 6 - door")
8
print("slot 7 - lighting")
9
print("flooring upto you!")
10
11
-- program start --
12
13
-- 1st wall --
14
turtle.place() -- 1st block
15
turtle.up()
16
turtle.place() -- 2nd block
17
turtle.up()
18
turtle.place() -- 3rd block
19
turtle.up()
20
turtle.place() -- 4th block
21
turtle.turnRight()
22
turtle.forward()
23
turtle.turnLeft()
24
-- 2nd stack --
25
turtle.place() -- 1st block
26
turtle.down()
27
turtle.place() -- 2nd block
28
turtle.down()
29
turtle.select(5) -- slot 5
30
turtle.place() -- window
31
turtle.down()
32
turtle.select(1) -- slot 1
33
turtle.place() -- 4th block
34
turtle.turnRight()
35
turtle.forward()
36
turtle.turnLeft()
37
-- 3rd stack --
38
turtle.select(6) -- slot 6
39
turtle.place() -- door
40
turtle.select(1) -- slot 1
41
turtle.up()
42
turtle.up()
43
turtle.place() -- 3rd block
44
turtle.up()
45
turtle.place() -- 4th block
46
turtle.turnRight()
47
turtle.forward()
48
turtle.turnLeft()
49
-- 4th stack --
50
turtle.place() -- 4th block
51
turtle.down()
52
turtle.place() -- 3rd block
53
turtle.down()
54
turtle.place() -- 2nd block
55
turtle.down() 
56
turtle.place() -- 1st block
57
58
-- 1st wall end --
59
turtle.turnRight()
60
turtle.forward()
61
turtle.turnLeft()
62
turtle.forward()
63
turtle.forward()
64
turtle.turnLeft()
65
-- 2nd wall start --
66
turtle.select(2) -- slot 2 selected
67
turtle.place() -- 1st block
68
turtle.up()
69
turtle.place() -- 2nd block
70
turtle.up()
71
turtle.place() -- 3rd block
72
turtle.up()
73
turtle.place() -- 4th block
74
turtle.turnRight()
75
turtle.forward()
76
turtle.turnLeft()
77
-- 2nd stack --
78
turtle.place() -- 4th block
79
turtle.down()
80
turtle.place() -- 3rd block
81
turtle.down()
82
turtle.place() -- 2nd block
83
turtle.down()
84
turtle.place() -- 1st block
85
turtle.turnRight()
86
turtle.forward()
87
turtle.turnLeft()
88
-- 3rd stack -- 
89
turtle.place() -- 1st block
90
turtle.up()
91
turtle.place() -- 2nd block
92
turtle.up()
93
turtle.place() -- 3rd block
94
turtle.up()
95
turtle.place() -- 4th block
96
turtle.turnRight()
97
turtle.forward()
98
turtle.turnLeft()
99
-- 4th stack --
100
turtle.place() -- 4th block
101
turtle.down()
102
turtle.place() -- 3rd block
103
turtle.down() 
104
turtle.place() -- 2nd block
105
turtle.down()
106
turtle.place() -- 1st block
107
-- 3rd wall --
108
turtle.turnRight()
109
turtle.forward()
110
turtle.turnLeft()
111
turtle.forward()
112
turtle.forward()
113
turtle.turnLeft()
114
-- 1st stack --
115
turtle.select(3) -- slot 3 selected
116
turtle.place() -- 1st block
117
turtle.up()
118
turtle.place() -- 2nd block
119
turtle.up() 
120
turtle.place() -- 3rd block
121
turtle.up()
122
turtle.place() -- 4th block
123
turtle.turnRight()
124
turtle.forward()
125
turtle.turnLeft()
126
-- 2nd stack
127
turtle.place() -- 4th block
128
turtle.down()
129
turtle.place() -- 3rd block
130
turtle.down()
131
turtle.select(5) -- slot 5 selected
132
turtle.place() -- window
133
turtle.down()
134
turtle.select(3) -- slot 3 selected
135
turtle.place() -- 1st block
136
turtle.turnRight()
137
turtle.forward()
138
turtle.turnLeft()
139
-- 3rd stack --
140
turtle.place() -- 1st block
141
turtle.up()
142
turtle.place() -- 2nd block 
143
turtle.up()
144
turtle.place() -- 3rd block
145
turtle.up() 
146
turtle.place() -- 4th block
147
turtle.turnRight()
148
turtle.forward()
149
turtle.turnLeft()
150
turtle.forward()
151
turtle.forward()
152
turtle.turnLeft()
153
-- last wall --
154
turtle.select(4) -- slot 4 selected 
155
turtle.place() -- 4th block
156
turtle.down()
157
turtle.place() -- 3rd block
158
turtle.down()
159
turtle.place() -- 2nd block
160
turtle.down()
161
turtle.place() -- 1st block
162
turtle.turnRight()
163
turtle.forward()
164
turtle.turnLeft()
165
-- 2nd stack --
166
turtle.place() -- 1st block
167
turtle.up()
168
turtle.select(5) -- slot 5 selected 
169
turtle.place() -- window
170
turtle.select(4) -- slot 4 selected
171
turtle.up()
172
turtle.place() -- 3rd block
173
turtle.up()
174
turtle.place() -- 4th block
175
turtle.turnRight()
176
turtle.forward()
177
turtle.turnLeft()
178
-- last stack --
179
turtle.place() -- 4th block
180
turtle.down()
181
turtle.place() -- 3rd block
182
turtle.down()
183
turtle.place() -- 2nd block
184
turtle.down()
185
turtle.place() -- 1st block
186
-- lighting --
187
turtle.up()
188
turtle.up()
189
turtle.up()
190
turtle.up()
191
turtle.forward()
192
turtle.forward()
193
turtle.select(7) -- slot 7 selected
194
turtle.placeDown() -- lamp 1
195
turtle.forward()
196
turtle.placeDown() -- lamp 2
197
turtle.forward() 
198
turtle.placeDown() -- lamp 3
199
turtle.turnLeft()
200
turtle.forward()
201
turtle.placeDown() -- lamp 4
202
turtle.turnLeft()
203
turtle.forward()
204
turtle.placeDown() -- lamp 5
205
turtle.forward()
206
turtle.placeDown() -- lamp 6
207
turtle.turnRight()
208
turtle.forward()
209
turtle.turnRight()
210
turtle.placeDown() -- lamp 7 
211
turtle.forward()
212
turtle.placeDown() -- lamp 8
213
turtle.turnRight()
214
turtle.forward()
215
turtle.forward()
216
turtle.forward()
217
turtle.forward()
218
turtle.down()
219
turtle.down()
220
turtle.down()
221
turtle.down()
222
turtle.forward()
223
turtle.forward()
224
-- end --
225
textutils.slowPrint("house Building Complete.")