View difference between Paste ID: ps5h8A5g and AYFunwfA
SHOW: | | - or go back to the newest paste.
1
modem = peripheral.find("modem")
2-
chest1 = peripheral.wrap("minecraft:chest_9")
2+
chest1 = peripheral.wrap("minecraft:chest_12")
3
chest2 = peripheral.wrap("minecraft:chest_10")
4-
out = peripheral.wrap("minecraft:chest_12")
4+
out = peripheral.wrap("minecraft:chest_11")
5
turt = modem.getNameLocal()
6
t = turtle
7
8
t.select(3)
9
10
-- main loop
11
while 1 do
12
13
t.craft(4)
14
chest2.pushItems(turt, 1, 1) -- get cobble from chest and to slot on int eh turtle
15-
item3 = t.getItemCount(3)
15+
16-
item4 = t.getItemCount(4)
16+
17
out.pullItems(turt, 3)
18-
if (item3 > 0) then
18+
19-
    item = t.getItemDetail(3).name
19+