Disclaimer: before I begin, I should mention my problem was discovered having somewhat haphazardly read the wiki (I at least read the entries related to the projects I was working on) and that I have no recent experience using JS. I've learned other languages like Java, C++, and Python, but never mastered them and haven't worked with them in a while. Last time I used JS alone was for a highschool class well over a half-decade ago. That being said, I am fully cognizant and amicable to the possibility of being denied assistance on the grounds of not doing my due diligence (I mean...Mozilla DOES have JavaScript documentation publicly available online, so... yeah).
I have experimented using the exact same code blocks for different items (vanilla + modded), and confirmed the code which works for vanilla items (say, a wooden sword) does not work for modded items (at least the ones I've directly experimented with; say a steel dagger from Spartan Weaponry) I've seen various tutorial videos, sought server comments from similar issues, but none of them really mention modifying attributes for non-vanilla items, not even the wiki (or if there is, I didn't find it...). I'll include screenshots of the test scripts I was using during experimentation. From my eyes, it was as if modded items weren't even recognized. What's bugging me is a quote from a certain hard-working support extraordinaire affirming the possibility of such modification, at least on FORGE. Well I guess it's a good thing for me (bc I'm using that :D). If it turns out I lack the basic foundation on successful use of this mod, then fair enough; sorry for wasting your time. But for the sake of my sanity at the moment, I seek help. Thank you. 🙏 If there is vital information I left out, I do hope you'll accept my apology as it is late and I'm rather sleepy. Have a good night, if it is night time. If not, have a good night anyway
