Advertisement
Guest User

Untitled

a guest
Mar 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. local component = require("component")
  2. local me_controller = component.me_controller
  3.  
  4. local amount = 100
  5. local selection = "minecraft:stick"
  6.  
  7. local craftables = me_controller.getCraftables({name = selection})
  8.  
  9. if craftables.n >= 1 then -- at least one entry found
  10. craftables = craftables[1] -- set craftables to first entry in list
  11. local retVal = craftables.request(amount) -- request to craft item(s)
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement