Attributes (Nerdy edition)

Supported MCreator versions
2023.4
2024.1
2024.2
Tags / plugin type
Global triggers
Java plugin
Procedures
MCreator plugin
Downloads:
6875
Upvotes: 39
About the plugin

This is just an updated version of the attributes plugin by Azzier, which I will continue to maintain until the author can work on the plugin again. Switching between this and the original version of the plugin should not be a problem. Though this might not stay the case in the future as it seems the author is not coming back.

 

Item modifier procedures can only be used with the calculating attribute modifiers trigger. If not, they cause a build error.

 

Changelog

v2.4
-Ported to 2024.2 and neoforge 1.20.6
-Item modifier procedures are no longer deprecated, along with the attribute modifiers event
-The add modifier to item procedure that did not require the event is now deprecated
-Removed old bugged attributes from the attribute selection datalist
License
GNU General Public License version 3 (GPLv3)

Plugin downloads
2.3.8 (MCreator 2023.4 ONLY) - attributes.zip Uploaded on: 01/15/2024 - 16:41   File size: 96.32 KB
2.3.8 (MCreator 2024.1 ONLY) - attributes_0.zip Uploaded on: 04/13/2024 - 04:32   File size: 109.6 KB
2.4 (MCreator 2024.2 ONLY) - attributes.zip Uploaded on: 07/20/2024 - 09:35   File size: 64.56 KB

Comments

I think i fixed the issue on attribute modifiers in items
you can check it in my last post how i managed to add it to items without breaking anything and works even if there are multiples modifiers for the single attribute.
If you can check it here is the code, pretty easier to use and hope it helps you.
https://pastebin.com/TwNabuKF
is my first code in java

Hey this might be a dumb question but I'm not at my PC right now so I just want to check. Is there any way to change reach with this plugin, since its technically a attribute afaik, it would be incredibly useful for me.

Im sorry to keep it up but i think i found the issue
Im not sure if you can look directly into the code but the bug of all attributes getting deleted seems to occur when you use UUIDMost UUIDLeast (or even maybe just a typo when merging data)
I know this because i replicate the same result when using commands, ended up with an armor piece with broken attributes as here. If you can see it maybe it will be a nice idea to try

Update: I checked the code of the plugin and i think i found the issue
The plugin uses UUID.fromString() to add the UUID to an attribute, i tested this with commands in creative and found out that this cause the same issue of other attributes getting deleted (even the "When on main hand:" text), this might be because UUID.fromString returns a hexadecimal representation of the UUID but only the integer array UUID seems to work in minecraft (no idea why was this working before but it looks like just minecraft decided to not work with hexadecimal anymore)
You can test this yourself with commands using /data modify
If you can modify this to just convert the UUID string directly into integer-array format this plugin will work again

so i tried this plugin in hopes it would work but looks like it doesnt
whenever i try to add a modifier to an item, it breaks all others attributes the item has and in the end gives nothing.
I have no idea why does this happen but it is happening since they changed the way modifiers were added to items
I would like to know if there is a fix to this

you can also just edit the item using commands or summon the item with attributes using mcstacker and the execute command function, I stopped using most plugins like this bc when they break my mod breaks and thats annoyin

idk how to uhh send screenshots here I dont think I can but basically I used the mcstacker website to make a command, then I use nbt data/global persistant player data to set as some of the commands variables, and while im setting this up I bind this to an item so I can read a printout inchat/in console to see what the commands doing so if im being dumb it becomes really appartent what I have messed up, in the case of your attributes thing uhh I am ganna see if I cant dm you my attributes thing real quick if I can figure that out lmao I only currently use it to set health of entities but it can be used for anything on the mcstacker website

I mean in my case is just executing the command for the player to apply or update the modifier (enchantment levels change the value of the modifier) I already have a procedure to detect every time the player wear armor so i just need the command to work
if you can please thank you

Hey Nerdy, it's nice that you're taking care of this plugin as is one i actually need a lot in my mod. The thing is i just removed my old Attribute plugin (The original author's one) And installed yours, but now i had a procedure that worked fine and is now broken. Is there a way you could check this image and see if i should change anything with it to work with the plugin? Why did it broke?

https://imgur.com/a/8M9CzfY

The procedure is like a trigger to know when an item is put/removed from a slot of my bag item, so i use the global boolean variable to cancel the loop of the global trigger so i can only apply the attribute modification once and then stop. When i test for the attribute base value in-game, it seems like every tick the value goes down, like i got a value of -2596 or something among those lines, like the loop continues but keeps substracting the value. What should i do to prevent this behaviour?

Thanks beforehand!

MY MAN, Nerdy is just saving everyone here.
Making all the plugins here lol
Geckolib, Attributes, Configurations, Curious API, Player Animator and so many more!!!!!