View difference between Paste ID: XvZ1CbdR and 5WqJTNs3
SHOW: | | - or go back to the newest paste.
1
-- Minecraft Wither Boss Grinder
2
-- Made possible with MFFS, Redpower 2, and Computercraft.
3
-- Video: http://youtu.be/-6iaTAtZGfo
4
-- initial code: http://pastebin.com/5WqJTNs3
5
6
--##killing turtle##
7
8
function getFuel()
9
if turtle.getFuelLevel()<=10 then
10
turtle.select(1)
11
turtle.refuel(16)
12
end
13
end
14
15
function kill()
16
sleep(10)
17
redstone.setOutput("right",true)
18
repeat
19
getFuel()
20
turtle.attackDown()
21
until turtle.getItemCount(3)>0
22
redstone.setOutput("right",false)
23
end
24
25
getFuel()
26
kill()
27
28
--end[this is the end of the code :) ]
29
30
31
32
--##building turtle
33
34
35
function getFuel()
36
if turtle.getFuelLevel() <=10 then
37
turtle.select(1)
38
turtle.refuel(16)
39
end
40
end
41
42
function preparation()
43
getFuel()
44
turtle.up()
45
turtle.digUp()
46
for a=1, 3 do
47
turtle.up()
48
end
49
turtle.back()
50
turtle.select(3)
51
turtle.place()
52
turtle.turnRight()
53
turtle.forward()
54
turtle.turnLeft()
55
turtle.place()
56
turtle.up()
57
turtle.select(4)
58
turtle.place()
59
getFuel()
60
turtle.turnLeft()
61
turtle.forward()
62
turtle.forward()
63
turtle.down()
64
turtle.turnRight()
65
turtle.select(3)
66
turtle.place()
67
turtle.up()
68
turtle.select(4)
69
turtle.place()
70
turtle.down()
71
turtle.down()
72
getFuel()
73
turtle.turnRight()
74
turtle.forward()
75
turtle.turnLeft()
76
turtle.select(3)
77
turtle.forward()
78
turtle.down()
79
turtle.placeUp()
80
turtle.down()
81
turtle.select(2)
82
turtle.placeUp()
83
turtle.down()
84
turtle.down()
85
end
86
87
getFuel()
88
preparation()