I just want to know

How do i make it so when you are using an accessory, it gives a buff? Like, imagine there is a buff called "a", and i want to make an accessory called "b" give you the buff when you're using it, how do i make that?

Also, is there any way to make it not give you that while other specific effect is happening?
 
Is this for a mod?
Yeah and also because i want to know how to make stuff like accessories or armor give certain buffs or make defense higher, i am really new to coding and the Tmodloader wiki does not seem to be helping, i know how to make an item become an accessory but i don't know how to make it do something.
 
Back
Top Bottom