Advertisement
DarkProDEn

craftBlanks

May 30th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1. --Created By DarkProDen
  2. local robot = require("robot")
  3. local component = require("component")
  4. local crafting = component.crafting
  5.    
  6. function craftBlank()
  7.     if robot.count(1)>1 and robot.count(2)>1 and robot.count(3)>1 then
  8.         crafting.craft(1)
  9.     end
  10. end
  11.  
  12. while true do
  13.     os.sleep(1)
  14.     craftBlank()
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement