githubEdit

Referencing Tea Framework

In order to use Tea Framework, you'll have to strongly-reference it inside your build.txtarrow-up-right file.

modReferences=TeaFramework

If you already have other mods in your modReferences list, you may add TeaFramework by appending ,TeaFramework (mind the comma).

Once you have done this, you have a few approaches for importing the assembly into your mod to reference in compilation and with an IDE.

tModLoader Mod Dependencies

The first approach is obtaining the mod's DLL and referencing it in the lib/ folder. You may find a full overview here.

NuGet Package Dependency

triangle-exclamation

The second approach is through referencing a NuGet packagearrow-up-right containing the Tea Framework dependency. You may find a full overview here.

Last updated