Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local data = {}
- print("Enter the target inventory:")
- data.primaryInventory = read()
- print("\nEnter the secondary inventory direction:")
- data.secondaryInventory = read()
- print("\nEnter the fluid used for crafting:")
- data.craftingFluid = read()
- print("\nEnter the direction to turn:")
- data.turnDirection = read()
- print("\nEnter the delay:")
- data.delay = tonumber(read())
- print("\nEnter the resulting item:")
- data.result = { name = read() }
- print("\nEnter the resulting count:")
- data.result.count = tonumber(read())
- data.ingredients = {}
- for i=1, 15 do
- print("\nEnter an ingredient name (use !q to stop):")
- local name = read()
- if name == "!q" then
- break
- end
- print("\nEnter an ingredient count:")
- local count = tonumber(read())
- table.insert(data.ingredients, { name = name, count = count })
- end
- print("\nEnter the output file name:")
- local fileName = read()
- local file = fs.open(fileName, "w")
- file.write(textutils.serializeJSON(data))
- file.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement