Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- args = { ... }
- food = args[1]
- if args[1] == "craft" then
- handle = fs.open("foodqueue", "r")
- output = handle.readAll()
- handle.close()
- mfcdest = textutils.unserialize(output)
- number = mfcdest.sNum
- cfood = mfcdest.food
- foodstuffs.craft(tostring(cfood),tonumber(number))
- menuApi.stopMenu()
- shell.run("startup")
- else
- for k,v in pairs(args) do
- if k ~= 1 then
- food = food..v
- end
- end
- numenu = {}
- for i = 1,999 do
- table.insert( numenu, { text = i })
- end
- print(food)
- sleep(0.1)
- menuApi.runMenu(numenu)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement