SHOW:
|
|
- or go back to the newest paste.
1 | -- places soul sand, wither skulls, kills wither | |
2 | ||
3 | - | -- pastebin get 8FxdGgY2 tiewither |
3 | + | -- pastebin get 40wxFAVW dw20wither |
4 | ||
5 | -- soulsand in slot 1 | |
6 | -- skulls in slot 2 | |
7 | ||
8 | -- functions | |
9 | ||
10 | local function MoveLeft() | |
11 | turtle.turnLeft() | |
12 | turtle.forward() | |
13 | turtle.turnRight() | |
14 | end | |
15 | ||
16 | local function MoveRight() | |
17 | turtle.turnRight() | |
18 | turtle.forward() | |
19 | turtle.turnLeft() | |
20 | end | |
21 | ||
22 | -- select slot 2 | |
23 | -- get count in 2 | |
24 | -- divide by 3 | |
25 | -- set i = to that count | |
26 | ||
27 | local tArgs = { ... } | |
28 | ||
29 | -- local function printUsage() | |
30 | if #tArgs < 1 then | |
31 | print("Usage: tiewither <x> ") | |
32 | print("Soul Sand in slot 1; Skulls in slot 2.") | |
33 | return | |
34 | end | |
35 | ||
36 | local x = tArgs[1] | |
37 | ||
38 | for i = 1,x do | |
39 | ||
40 | -- place the soulsand | |
41 | turtle.select(1) | |
42 | - | for i = 1, 10 do |
42 | + | for i = 1, 5 do |
43 | turtle.forward() | |
44 | end | |
45 | ||
46 | turtle.forward() | |
47 | turtle.placeDown() | |
48 | turtle.back() | |
49 | turtle.place() | |
50 | ||
51 | MoveLeft() | |
52 | turtle.place() | |
53 | ||
54 | MoveRight() | |
55 | MoveRight() | |
56 | ||
57 | turtle.place() | |
58 | ||
59 | -- place the wither skulls | |
60 | turtle.select(2) | |
61 | turtle.up() | |
62 | turtle.place() | |
63 | MoveLeft() | |
64 | turtle.place() | |
65 | MoveLeft() | |
66 | turtle.place() | |
67 | MoveRight() | |
68 | turtle.down() | |
69 | ||
70 | - | for i = 1,10 do |
70 | + | for i = 1,5 do |
71 | turtle.back() | |
72 | end | |
73 | ||
74 | -- wait for Mob Grinder to kill wither | |
75 | - | os.sleep(10) |
75 | + | os.sleep(72) |
76 | ||
77 | end |