Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Main Function
- function main()
- display()
- print("Main")
- print("[1] Thermal Mods")
- print("[2] Applied Energistics 2")
- print("[3] Ender IO")
- -- TODO Add more mods
- write("> ")
- modInput = read()
- if modInput == "1" then
- display()
- print("Thermal Mods")
- print("[1] Gears")
- print("[2] Machine Frames")
- print("[3] Coils")
- print("[4] Miscellaneous")
- -- TODO Add more categories
- write("> ")
- typeInput = read()
- if typeInput == "1" then
- display()
- print("Main>Thermal Mods>Gears")
- print("[1] Iron Gear")
- print("[2] Tin Gear")
- print("[3] Copper Gear")
- print("[4] Ferrous Gear")
- print("[5] Gold Gear")
- print("[6] Signalum Gear")
- print("[7] Enderium Gear")
- -- TODO Add All Gears
- gearInput = read()
- if gearInput == "1" then
- display()
- print("Crafting Iron Gear...")
- print("Please place 5 iron in chest...")
- print("Please SPACE to Continue...")
- if key == "keys.space" then
- craftGear()
- main()
- end
- elseif gearInput == "2" then
- display()
- print("Crafting Tin Gear...")
- print("Please place 4 tin and 1 iron in chest...")
- if key == "keys.space" then
- craftGear()
- main()
- end
- elseif gearInput == "3" then
- display()
- print("Crafting Copper Gear...")
- print("Please place 4 copper and 1 iron in chest...")
- if key == "keys.space" then
- craftGear()
- main()
- end
- elseif gearInput == "4" then
- display()
- print("Crafting Ferrous Gear...")
- print("Please place 4 ferrous and 1 iron in chest...")
- if key == "keys.space" then
- craftGear()
- main()
- end
- elseif gearInput == "5" then
- display()
- print("Crafting Gold Gear...")
- print("Please place 4 gold and 1 iron in chest...")
- if key == "keys.space" then
- craftGear()
- main()
- end
- elseif gearInput == "6" then
- display()
- print("Crafting Signalum Gear...")
- print("Please place 4 signalum and 1 iron in chest...")
- if key == "keys.space" then
- craftGear()
- main()
- end
- elseif gearInput == "7" then
- display()
- print("Crafting Enderium Gear...")
- print("Please place 4 enderium and 1 iron in chest...")
- if key == "keys.space" then
- craftGear()
- main()
- end
- end
- elseif
- typeInput == "2" then
- dsplay()
- print("Main>Thermal Mods>Machine Frames")
- print("[1] Basic Machine Frame")
- print("[2] Hardened Machine Frame")
- print("[3] Reinforced Machine Frame")
- -- TODO Finish Machine Frames
- write("> ")
- frameInput = read()
- if frameInput == "1" then
- display()
- print("Crafting Basic Machine Frame...")
- print("Materials:")
- print("1 Tin Gear")
- print("4 Glass")
- print("4 Iron Ingots")
- print("Press SPACE to continue...")
- if key == "keys.space" then
- craftFrame()
- main()
- end
- elseif framInput == "2" then
- print("Crafting Hardened Machine Frame...")
- print("Materials:")
- print("1 Basic Machine Frame")
- print("4 Glass")
- print("4 Ferrous Ingots")
- print("Press SPACE to continue...")
- if key == "keys.space" then
- craftFrame()
- main()
- end
- end
- -- TODO Finish Frames Recipes
- end
- elseif modInput == "2" then
- display()
- print("Applied Energistics 2")
- -- TODO Write Items
- elseif modInput == "3" then
- display()
- print("Ender IO")
- -- TODO Write Items
- end
- end
- -- Mini Functions
- local event,key = os.pullEvent("key")
- function craftGear()
- turtle.select(13)
- turtle.suck(4)
- turtle.select(14)
- turtle.suck(1)
- turtle.select(13)
- turtle.transferTo(2,1)
- turtle.transferTo(5,1)
- turtle.transferTo(7,1)
- turtle.transferTo(10,1)
- turtle.select(14)
- turtle.transferTo(6,1)
- turtle.select(1)
- turtle.craft()
- end
- function display()
- term.clear()
- term.setCursorPos(1,1)
- print("Small Parts Crafter 1.0")
- end
- -- Function List
- main()
Advertisement
Add Comment
Please, Sign In to add comment