#nms attribute
1 messages · Page 1 of 1 (latest)
I'm not sure i implemented it a few months ago, could it possible that the api don't have functions to get the default value of a attribute ?
did you open a feature request?
Nope
declaration: package: org.bukkit.attribute, interface: AttributeInstance
getBaseValue ?
The base attributes on a sword aren't actually attributes
But apparently there is an NMS method to retrieve them
Something like that, i had silly function which get the default values to add them as attribute to have the correct value if i add a other attribute...
Something like that was the reason for nms if i remember correctly.
I'll PR it if you can let me know how to get it via NMS
https://paste.md-5.net/duyopawule.java
That was my function before the 1.18 update.
Quiet ugly, but it worked.
@night canyon maybe this helps, i don't know 🙂
Well I have found the stuff I need for this, but I have no idea where it should be implemented