tModLoader - Play Terraria with Mods! Dig, Fight, and Build your way through the world of player-created mods on Terraria with tModLoader - this DLC makes modding Terraria a reality!
tModLoader: Main Page A mod to make and play Terraria mods Main Page Related Pages Packages Classes
tModLoader: TooltipLine Class Reference This class serves as a way to store information about a line of tooltip for an item You will create and manipulate objects of this class if you use the ModifyTooltips hook
tModLoader: ModItem Class Reference This class serves as a place for you to place all your properties and hooks for each item To use it, simply create a new class deriving from this one Implementations will be registered automatically The Basic Item Guideteaches the basics of making a modded item More Inherits ModType< Item, ModItem >, and ILocalizedModType Inherited by ModLoaderModItem
tModLoader: Player Class Reference Gives the player the provided buff This accounts for if the player is immune to the buff This also accounts for adjusting the buff time for different game modes If the player already has the buff, the re-apply logic will happen Vanilla buff types are found in BuffID and modded buffs are typically retrieved using ModContent BuffType<T> The quiet parameter will determine if the network sync
tModLoader: Item Class Reference Vanilla uses this field for treasure bags and Defender Medals tModLoader automatically handles this for modded treasure bags If you would like to make an instanced item, see any one of the following for examples:
tModLoader: ModTile Class Reference This class represents a type of tile that can be added by a mod Only one instance of this class will ever exist for each type of tile that is added Any hooks that are called will be called by the instance corresponding to the tile type This is to prevent the game from using a massive amount of memory storing tile instances The Basic Tile Guide teaches the basics of making a modded tile
tModLoader: ModContent Class Reference Manages content added by mods Liaisons between mod content and Terraria 's arrays and oversees the Loader classes