![t mod loader t mod loader](https://i.gyazo.com/15b819aef39a1c7507c587742a97d46b.png)
More.ĪddNPCHeadTexture (int npcType, string texture)Īssigns a head texture to the given town NPC type. Also allows you to give the NPC alternate textures. More.Īdds a type of NPC to the game with the specified name and texture. When a tile with the given type and Y-frame is nearby, if its X-frame is >= 36, it will play the music that has musicSlot as its ID. When an item with the given item type is equipped, it will play the music that has musicSlot as its ID. When music with the given ID is playing, equipped music boxes have a chance to change their ID to the given item type. More.ĪddMusicBox (int musicSlot, int itemType, int tileType, int tileFrameY=0)Īllows you to tie a music ID, and item ID, and a tile ID together to form a music box. The extraTextures dictionary should optionally map types of mount textures to the texture paths you want to include. More.ĪddMount (string name, ModMountData mount, string texture, IDictionary extraTextures=null)Īdds the given mount to the game with the given name and texture. More.ĪddModWorld (string name, ModWorld modWorld)Īdds a ModWorld to this mod with the given name. You can obtain an instance of ModItem by overriding it then creating an instance of the subclass. More.Īdds a type of item to your mod with the specified internal name. If no custom gore behavior is provided, the custom gore will have the default vanilla behavior. More.ĪddGore (string texture, ModGore modGore=null)Īdds the given texture to the game as a custom gore, with the given custom gore behavior. More.ĪddGlobalWall (string name, GlobalWall globalWall)Īdds the given GlobalWall instance to this mod with the provided name. Manually add a Global Recipe during Load More.ĪddGlobalTile (string name, GlobalTile globalTile)Īdds the given GlobalTile instance to this mod with the provided name. More.ĪddGlobalRecipe (string name, GlobalRecipe globalRecipe) More.ĪddGlobalProjectile (string name, GlobalProjectile globalProjectile)Īdds the given GlobalProjectile instance to this mod with the provided name. More.ĪddGlobalNPC (string name, GlobalNPC globalNPC)Īdds the given GlobalNPC instance to this mod with the provided name. More.ĪddGlobalItem (string name, GlobalItem globalItem)Īdds the given GlobalItem instance to this mod with the provided name. More.ĪddGlobalBuff (string name, GlobalBuff globalBuff)Īdds the given GlobalBuff instance to this mod using the provided name. More.ĪddGlobalBgStyle (string name, GlobalBgStyle globalBgStyle)Īdds the given global background style with the given name to this mod. All other parameters are the same as the other AddEquipTexture. This method is different from the other AddEquipTexture in that you can specify the class of the equipment texture, thus allowing you to override EquipmentTexture's hooks. More.ĪddEquipTexture ( EquipTexture equipTexture, ModItem item, EquipType type, string name, string texture, string armTexture="", string femaleTexture="")Īdds an equipment texture of the specified type, internal name, and associated item to your mod.
![t mod loader t mod loader](https://cdn.cloudflare.steamstatic.com/steam/apps/1281930/ss_c2829b132cf00dad0d17c546420cbfa3a122cf9d.1920x1080.jpg)
Returns the ID / slot that is assigned to the equipment texture. If the EquipType is EquipType.Body, make sure that you also provide an armTexture and a femaleTexture. (The item parameter may be null if you don't want to associate an item with the texture.) You can then get the ID for your texture by calling EquipLoader.GetEquipTexture, and using the EquipTexture's Slot property. More.ĪddEquipTexture ( ModItem item, EquipType type, string name, string texture, string armTexture="", string femaleTexture="")Īdds an equipment texture of the specified type, internal name, and associated item to your mod. Leave the texture as an empty string to use the vanilla dust sprite sheet. Create an instance of ModDust normally, preferably through the constructor of an overriding class. Manually add a Command during Load More.ĪddDust (string name, ModDust dust, string texture="")Īdds a type of dust to your mod with the specified name. More.ĪddBuff (string name, ModBuff buff, string texture)Īdds a type of buff to the game with the specified internal name and texture. More.ĪddBossHeadTexture (string texture, int npcType=-1)Īssigns a head texture that can be used by NPCs on the map. Adds a texture to the list of background textures and assigns it a background texture slot.