Skip to content

Commit

Permalink
First version - working as intended
Browse files Browse the repository at this point in the history
  • Loading branch information
capSAR273 authored Jul 12, 2021
1 parent 5ecd648 commit 1674738
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions OmnifactoryMigrate.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#Omnifactory Migrate Script
#This script will help move important folders from one instance of the pack to another, saving you time!
#Author: capSAR273, if you have any questions or issues you can contact me on GitHub (Or on the Omnifactory Discord)!

Write-Host "Before you continue, make sure you have imported the new instance in MultiMC from the zip file first!"

$oldPath = Read-Host -Prompt "Enter the path to the old version's minecraft folder."
$newPath = Read-Host -Prompt "Enter the path to the new version's minecraft folder."

Write-Host "Copying Files..."

#This will take the important folders/files recommended on the Omnifactory GitHub and copy them to the new instance folder.
Copy-Item $oldPath\saves -Destination $newPath -Recurse
Copy-Item $oldPath\resourcepacks -Destination $newPath -Recurse
Copy-Item $oldPath\options.txt -Destination $newPath -Recurse
Copy-Item $oldPath\journeymap -Destination $newPath -Recurse
Copy-Item $oldPath\config\jei\bookmarks.ini -Destination $newPath\config\jei\ -Recurse

Write-Host "Copy Complete!"

0 comments on commit 1674738

Please sign in to comment.