Advertisement
SolarFlare123

Create CC Potion

Jun 20th, 2025 (edited)
417
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. function pushIngredient (ingredientName)
  2.     for i,v in ipairs(chest.list()) do
  3.         print("Index=",i," Value=",v)
  4.         if v.name==ingredientName then
  5.             basin.pullItems("bottom",i,1)
  6.             return
  7.         end
  8.     end
  9.     print("Try restocking, couldn't find ",ingredientName,"!")
  10. end
  11.  
  12. chest=peripheral.wrap("bottom")
  13. basin=peripheral.wrap("front")
  14. while true do
  15.     pushIngredient(read())
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement