Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- repeat
- os.queueEvent("e")
- os.pullEvent()
- term.clear()
- print("Scanning for Items...")
- until turtle.suck() == true
- print("Items Found!")
- turtle.select(5)
- local stack1 = turtle.getItemDetail()
- function singleRecipe(num)
- print("Single Recipe: "+num)
- turtle.dropUp(num)
- turtle.select(1)
- turtle.dropDown()
- os.sleep(.25)
- rs.setOutput("bottom",true)
- os.sleep(.25)
- rs.setOutput("bottom",false)
- os.sleep(.5)
- for i=1,num do
- os.sleep(.5)
- rs.setOutput("right",true)
- os.sleep(.25)
- rs.setOutput("right",false)
- end
- os.sleep(.25)
- rs.setOutput("bottom",true)
- os.sleep(.25)
- rs.setOutput("bottom",false)
- turtle.suckDown()
- print("Completed")
- end
- if (stack1.name == "minecraft:diamond") then
- singleRecipe(stack1.count)
- elseif (stack1.name == "minecraft:emerald") then
- singleRecipe(stack1.count)
- elseif (stack1.name == "minecraft:quartz") then
- singleRecipe(stack1.count)
- elseif (stack1.name == "minecraft:nether_star") then
- singleRecipe(stack1.count)
- end
- --wait for items
- --take stack
- --check recipes take additional stacks if needed
- --deposit stack in dropper
- --insert die
- --pulse hammer n times
- --retrieve die
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement