Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- blaze_rod, emerald, ice, blaze_powder
- -- iron_ingot, ender_eye, diamond, nether_star
- -- snow_ball, certus_quartz, uranite_ore, dielectric_casing
- -- capacitor_basic_tiny, redstone_block, blazing_crystal_block, gold_ingot
- reader = peripheral.find("blockReader")
- chest = peripheral.wrap("front")
- while true do
- print("waiting complete craft")
- while reader.getBlockData().contain_recipe == 1 do
- sleep(0.1)
- end
- print("detected complete craft")
- while #reader.getBlockData().Items > 0 do
- sleep(0.1)
- end
- print("export done")
- did = false
- for i=1,11 do
- if turtle.getItemCount(i) > 1 then
- print("start crafting")
- print(i)
- turtle.select(i)
- turtle.drop(1)
- if i == 3 then
- turtle.drop(1)
- elseif i == 4 then
- turtle.drop(3)
- elseif i == 5 then
- turtle.select(16)
- turtle.drop(1)
- elseif i == 6 then
- turtle.select(12)
- turtle.drop(1)
- turtle.select(13)
- turtle.drop(1)
- elseif i == 8 then
- turtle.select(14)
- turtle.drop(2)
- turtle.select(15)
- turtle.drop(1)
- end
- print("waiting insert")
- while #chest.list() > 0 do
- sleep(0.1)
- end
- print("insert done")
- break
- end
- end
- if not did then
- sleep(1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement