Creating a new blank plugin - TiberiumFusion/TTPlugins GitHub Wiki

This section explains how to create a new, blank plugin in Terraria Tweaker 2 using the default plugin template and new plugin wizard.

If you don't want to use Terraria Tweaker 2, you can download the plugin template from here.


Steps

◆ Launch Terraria Tweaker 2 and open the Plugins page from the sidebar.

Step 1 img

◆ Click "New Plugin" button in the My Plugins section. The new plugin wizard will open.

Step 2 img

◆ Fill out the fields to complete the wizard, then click Finish.

Step 3 img

Step 4 img

◆ When you click Finish, a new source code plugin file with be created in your Plugins folder.

Step 5 img

◆ To view your new plugin's code, hover over it and click "Edit Code...", then choose to edit in Terraria Tweaker 2 or with a text editor installed on your computer.

Step 6 img

◆ Note the areas that were filled in by the information you provided to the wizard.

Step 7 img


Next

Read the Plugin class structure article to understand the structure of your new plugin.