So I'm having a bit of trouble here... Each time I attempt to add a status effect to a piece of armor it ends up turning into a generic item in game. I have looked all over the web on how to fix this but so far no luck, so I've decided to post here hoping for help on this. This is what I've been trying to use: "statusEffects" : [ { "stat" : "protection", "amount" : 0 }, { "kind": "slow" } ], Everything works fine until I addin { "kind": "slow" } Once this is added into the coding it turns the item into a generic item. I've looked up different tutorials and pretty much all of em were the same. I don't know if adding status effects onto mods was updated or what, all i know is every time i try to add one it turns into a generic item.
The first question you should ask your self. Does a slow Status effect actually exist - or did I make it up thinking it does. All status effects possible are in the stats folder. Always make sure you are using freshly unpacked assets.
well i see the problem, the reason why your item turns into a PGI(perfectly generic item) is because you got the syntax wrong here have an example, it's my water wings mod... wow i'd never thought i would use this mod as a reference. but here is the short of it: Code: "statusEffects" : [ //Stat buffs or more technically correct statistic //modifiers are required to be in an element since they //require multiple values. { "stat" : "protection", "amount" : 0 }, //Effects don't they only require quotes around them. //now this status effect will be properly applied //You don't need to put curved brackets anything around it. "slow", //you can put what ever you want after the order //doesn't matter at all. { "stat" : "powerMultiplier", "baseMultiplier" : 1.5 }, //yes this is a thing and o my lord i have to stop jumping //down a mountain for no reason "nofalldamage" ],
I think the important message to take away is - "Freshly unpacked assets". The file you are showing is from 2014. In the latest nighties - slow does not exist. There are variations of slow mudslow \ slimeslow \ etc. But no slow.
As I stated earlier - first thing unpack your assets so they are always new. Then go to the stats folder and check which status effects are available for you and only use those and you should be fine.
if you just want a plain slow effect you can just duplicate one of the slow effects and remove the animator.functionNameHere and effect.functionNameHere lines from it's lua file and it would be just as good but there would be no colored overlay or particles coming out of the character. you might want to remove or add a new icon for the effect though, i don't think a mud/slime/frost icon is a good representation of a simple slow effect