MineMcMine

DraconicFusionCrafter

Apr 26th, 2022 (edited)
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[[
  2.     Using: CC: Tweaked, Plethora
  3.     pastebin run 1k4ECcCv
  4.     pastebin get 1k4ECcCv startup
  5. ]]--
  6.  
  7. if pcall(os.loadAPI, "jLib/jFuncs") then
  8. else
  9.     shell.run("pastebin get kqBFGcfV jLib/jFuncs")
  10.     os.loadAPI("jLib/jFuncs")
  11. end
  12.  
  13. local craftingCore = peripheral.find("actuallyadditions:phantomface")
  14. local input1 = peripheral.wrap("minecraft:ender chest_4")
  15. local input2 = peripheral.wrap("minecraft:ender chest_5")
  16. local output = peripheral.wrap("minecraft:ender chest_6")
  17.  
  18.  
  19. local function moveAllCobble()
  20.     for i, item in pairs(input1.list()) do
  21.         if(item.name == "minecraft:cobblestone") then
  22.             input1.pushItems(peripheral.getName(output), i)
  23.         end
  24.     end
  25.     for i, item in pairs(input2.list()) do
  26.         if(item.name == "minecraft:cobblestone") then
  27.             input2.pushItems(peripheral.getName(output), i)
  28.         end
  29.     end
  30. end
  31.  
  32. while(true) do
  33.     if(craftingCore.getItem(2)) then
  34.         moveAllCobble()
  35.         craftingCore.pushItems(peripheral.getName(output), 2)
  36.     end
  37.     os.sleep(1)
  38. end
  39.  
Add Comment
Please, Sign In to add comment