#Attribute modification failure: modded items

10 messages · Page 1 of 1 (latest)

wind pier
#

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

worthy nimbusBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

lavish orchid
#

Here's me working on some attribute stuff. Hopefully that will help you.

wind pier
#

Hi! This allowed me to get it working, albeit with a few quirks I wish I had the expertise to solve... but the attributes are indeed modified how I wished. Durability seems to be unaffected though (I guess that's not an attribute is it). In time maybe I'll figure that out as well. Until then, thanks! seems I've got some javascript learning to do.

vast verge
timber garnetBOT
#

Paste version of attributes.js from @vast verge

lavish orchid
wind pier
#

wow, this looks great! I've used C++ before so I'm surprised I never thought to use these. I didn't even check if they could be used in javascript dasscrazy

#

that reminds me; I have an imperfect fix for my rather big problem, and I've already made the commitment to teach myself javascript, so Ig I should close the ticket. I'll be back tho.

#

thx y'all, got some documentation to read. JS and Kube I suppose. Hopefully next time I'll be better equipped with neater-looking code. bye bye