Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nope = true
- shell.run("foods")
- words = {}
- itemstack = {id=4,qty=1}
- export = peripheral.wrap("left")
- bridge = peripheral.wrap("top")
- while nope == true do
- itemstack = {id=4,qty=1}
- herp = 0
- derp = 0
- e, a, b, c, d = os.pullEvent("chat_command")
- if a == "update" then
- shell.run("delete startup")
- shell.run("pastebin get PnMvWduK startup")
- shell.run("reboot")
- elseif a == "updatefood" then
- shell.run("delete foods")
- shell.run("pastebin get y7uDVpjL foods")
- shell.run("foods")
- else
- for k, v in pairs(foods) do
- if k == a then
- for word in v:gmatch('[^%-]+') do
- value = tonumber(word)
- itemstack.id = value
- if string.find(word, ":") then
- print(word)
- for whut in word:gmatch('[^%:]+') do
- derp = herp
- herp = whut
- end
- print(derp)
- print(herp)
- itemstack = {id=4,dmg=0,qty=1}
- itemstack.dmg = tonumber(herp)
- itemstack.id = tonumber(derp)
- export.extractItem(itemstack,"down")
- else
- export.extractItem(itemstack,"down")
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement