PowerShell scripts to accelerate item duplication for Terraria the game.
- Install Terraria
- Create a non-Journey, classic World named "Duplicator" you will use to duplicate items. If you want to use a different world name you will need to modify the scripts.
- Add a chest to this world near spawn and build an enclosure around both the chest and the spawn point
- Fill up the chest with items you want to duplicate like money, potions, food, crafting ingredients, and building materials
- Save and close the world. You may leave Terraria running, you do not need to exit the game to use duplication.
- Run Save-Duplicator.ps1 from anywhere on your computer using Windows PowerShell. The easiest way to do this is by right-clicking on the file and selecting Run with PowerShell.
- You will now have a copy of this World saved in your temporary files
- Play Terraria
- Open the Duplicator world
- Take out whatever you need for your character
- Save and close the world
- Alt + Tab out of Terraria to Windows Explorer. You do not need to exit Terraria.
- Run Dupe-Duplicator.ps1 to replenish the World from your saved copy. The fastest way to do this is to right-click on the script and select Run with PowerShell.
- Repeat as needed
Make sure to always run Dupe-Duplicator.ps1 immediately after taking resources out of the Duplicator world to replenish them in case you add more later. You may want to add more resources later and use Save-Duplicator.ps1 to setup a new version.
If you don't want to use the name "Duplicator" for your world, open both scripts and change the first line from:
$worlds = "Duplicator.wld","Duplicator.wld.bak","Duplicator.wld.bak2"
to
$worlds = "My_World_Name.wld","My_World_Name.wld.bak","My_World_Name.wld.bak2"
where you replace My_World_Name
with the actual world name file name from your Terraria My Games/Worlds folder. You can find this file name by going to your Documents folder, opening the My Games folder, opening the Terraria folder, and the Worlds folder. Example:
C:\Users\[my-user]\Documents\My Games\Terraria\Worlds