Item Glow Mask Library 预览图

泰拉瑞亚 (Terraria)

Item Glow Mask Library

libraryBoth1.4.4

最后更新 2026/03/01文件 27.8 KBID 3565716201

模组简介

This simple library mod allows modders to add custom item and armor glow textures to the items they wanna add without all the hustle. Most modded items rely on adding new player layers and item sprite layers in order to add glow masks, which isn't exactly efficient. This mod edits TextureAssets.GlowMask and Item.glowMask to allow the addition of modded glow textures. This also means that it uses the VANILLA glow mask rendering code for both consistency and compatibility. How to use? In your build.txt file, add this mod to the modReferences list: displayName = Your Mod author = Your Name version = 0.1 modReferences = GlowMask In your Mod.cs file, add this instruction to the Load() function: public class YourMod : Mod { public override void Load() { GlowMask.GlowMask.RegisterGlowMasks(this); } } The rest is just adding "_Glow" textures for your items just like you would with projectiles: *YourItemSprite.png *YourItemSprite_Glow.png For armor, you just have to add "_Glow" to the end of the armor's sprite name: *YourArmorSprite_Head.png *YourArmorSprite_Head_Glow.png *YourArmorSprite_Body.png *YourArmorSprite_Body_Glow.png *YourArmorSprite_Legs.png *YourArmorSprite_Legs_Glow.png If you want to override the armor's glow mask color, you can do this: public class YourArmorItem : ModItem { public override void SetDefaults() { //This only works here! It crashes elsewhere! GlowMask.GlowMask.OverrideArmorGlowColor(this, whateverColorYouWant); } } Everything else is handled AUTOMATICALLY, you don't need to do anything. Known issues: Not compatible with animated textures as the vanilla code also doesn't support it. Developed By n0t_UN_Owen

详情图片

条目信息

所属游戏
泰拉瑞亚 (Terraria)
创意工坊 ID
3565716201
文件名
3565716201.bin
文件大小
27.8 KB
最后更新
2026/03/01
内容版本
v1772317112-3e814f3fb7cb8e3f
作者与来源
由原作者发布于 Steam 创意工坊。本站不改变署名,作者信息与原始内容请以 Steam 原始页面 为准。