
Override this if you do not want the properties to be set for you. More.Īutomatically sets certain static defaults. This information is used for when the player is holding down the auto-select keybind. More.ĪutoLightSelect (ref bool dryTorch, ref bool wetTorch, ref bool glowstick)Īllows you to tell the game whether this item is a torch that cannot be placed in liquid, a torch that can be placed in liquid, or a glowstick. More.Īutomatically sets certain defaults. Use the player.armorEffectDraw bools to activate the desired effects. Note that this hook is only ever called through this item's associated equipment texture. More.Īllows you to determine special visual effects this vanity set has on the player without having to code them yourself. Also note that this hook is only ever called through this item's associated equipment texture. Note that this is only called for body armor. More.ĪrmorArmGlowMask ( Player drawPlayer, float shadow, ref int glowMask, ref Color color)Īllows you to modify which glow mask and in what color is drawn on the player's arms. The description parameter is his dialogue, and catchLocation should be set to "\n(Caught at )". More.ĪnglerQuestChat (ref string description, ref string catchLocation)Īllows you to set what the Angler says when he requests for this item. When this item is used by right-clicking, player.altFunctionUse will be set to 2. More.Īllows you to make this item usable by right-clicking. More.įorce a re-roll of a prefix by returning false.
#TERRARIA AUTOTRASH TMODLOADER MOD#
This allows you to avoid clutter in your overriding Mod class by adding recipes for which this item is the result. Do note that this will be called for every instance of the overriding ModItem class that is added to the game. This is essentially the same as Mod.AddRecipes. The Basic Item Guideteaches the basics of making a modded item. Create instances of ModItem (preferably overriding this class) to pass as parameters to Mod.AddItem.

This class serves as a place for you to place all your properties and hooks for each item.
