Syla's Resource Pack Library
⚪ Last updated 2024Preview
🔍 Analysis
- 👍 0.0% endorsement rate
📋 About This Mod
Allows for the replacement of textures from Asset and Texture2D objects with resource packs. How to make a resource pack for a mod that supports this: 1. Instead of a Content folder, use a ModContent folder. 2. Inside of this folder, follow the mod's folder layout. 3. Put your replacement textures in the same place in your resource pack. Ex: replacing "S_Panel_Middle.png" in my Summoner UI mod. The file path for the file in the mod is: SummonsUI/UI/S_Panel_Middle.png Put your file at: YourResourcePackNameHere/ModContent/SummonsUI/UI/S_Panel_Middle.png How to make your mod support this: 1. Add "modReferences = SylaResourcePackLib@#.#" without the quotation marks, and the #'s being this mod's version number to your build.txt file (if you already have modReferences, add ", SylaResourcePackLib@#.#" instead, still without quotation marks and with replacing the #'s). 2. In your mod, add a new class that inherits from the ResourceLoader abstract class. Name it something you will remember, like "YourModNameHereRL". 3. Add "using SylaResourcePackLib;" and "using SylaResourcePackLib. ResourceTypes;" to the top of the new class's file. 4. Add public static assets, and make them either ModifiableAsset (where T is the type you usually use in Asset ) or ModifiableTexture2D. For example: "public static ModifiableAsset UIFFill;" 5. Add public override void methods for InitializeResources(), ReloadResources(), PostSetupContentResources(), and Unload() to the new class. 6. In InitializeResources(), initialize each asset. You can find the constructors by extracting the mod (source code is included). Here's an example from my Summoner UI mod: "UIFFill = new ModifiableAsset ("SummonsUI/UI/Summon_Fill", mode: AssetRequestMode. ImmediateLoad);" 7. In PostSetupContentResources(), replace assets handled by TextureAssets as follows: "TextureAssets. Item = YourItemAsset.asset;" 8. In ReloadResources(), run the Reload() method on each asset. For example: "UIFFill. Reload();
📊 Mod Details
- Game
- Tmodloader Mods
- Author
- 76561198884251400
- Version
- N/A
- Downloads
- 657,970
- Endorsements
- 0
- Category
- library, Utilities, Client, 1.4.4
- Created
- 6/17/2024
- Updated
- 6/17/2024
🔧 How to Install tModLoader Mods
Subscribe on Steam Workshop. Mods auto-download and install. Launch the game to activate.
📖 Full step-by-step install guide for tModLoader →
Visit the official mod page for specific installation instructions for this mod.
🎮 Need cheat codes or console commands? Check ur gaming wiki for tModLoader commands, item IDs, and more.
Keep browsing — more tModLoader mods await