Skip to content

Instantly share code, notes, and snippets.

@its-truce
Last active June 9, 2023 09:25
Show Gist options
  • Save its-truce/a42026b4465f5b4f23cfc98653dc1c43 to your computer and use it in GitHub Desktop.
Save its-truce/a42026b4465f5b4f23cfc98653dc1c43 to your computer and use it in GitHub Desktop.
[tModLoader 1.4.4] VS Templates For Items & Projectiles

[tModLoader 1.4.4] VS Templates For Items & Projectiles

Here's a couple of item templates I made for VS. These are the steps to download and use them:

Downloading

Download the .zip files provided below and then copy them over to this location: %USERPROFILE%\Documents\Visual Studio 2022\My Exported Templates (going to this through explorer or run should work). Restart VS and continue.

Using the Templates

Next time you have to make a new ModItem or ModProjectile, simply right click on whatever folder you want to add it to, and click on Add New Item. In the wizard, select ModItem or ModProjectile, name the file, and continue. You can also use Ctrl + Shift + A. The new file will be updated with your namespace, SetDefaults hooks, and for projectiles, GetAlpha and AI hooks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment