Attributes

Published by Azzier on
Supported MCreator versions
2023.1
2023.2
2023.3
Tags / plugin type
Java plugin
Procedures
Variables
MCreator plugin
Downloads:
5302
Upvotes: 127
About the plugin

Currently active fork: 
https://mcreator.net/plugin/103319/attributes-nerdy-edition


The plugin enables the modification of attributes, including Vanilla, Forge, Custom Attributes, and those from other mods. It also allows for the addition of attribute modifiers to items and the creation of custom attributes.

Forge  1.20.1, 1.19.4, 1.19.2, 1.18.2

NeoForge 1.20.1

Important Information

  • Ensure that you are utilizing MCreator 2022.2 (including snapshots) or a more recent release.
  • To use this plugin, it is essential to have the Java Plugins enabled.
  • Prior to updating the plugin, create a backup of your workspace.
  • Read changes :>.
  • Full changelog available on github. 
  • Make sure you use attribute blocks with an entity that is a (sub) type of an Entity Living 

Features:

  • Create custom attributes and add them to any entity you want.
    • Now Custom Attribute can be Persistent (only for Players) 
  • Set/get value of attribute from entity.
  • Set/get value of custom attribute from entity.
  • Has attribute ⁠⁠... 
  • Add modifier ... of an attribute .. to an item .. on slot ..
  • Create new modifier with UUID ... named ... with value ... and operation ...
  • Modifier variable for Attribute Modifiers
  • Add/Remove modifier ... of an attribute ... of an entity ... (optionally as permanent)
  • Remove modifier with UUID ... of an attribute ... of an entity ...  (optionally as permanent) 
  • Has modifier ... of an attribute ... entity ...
  • Has modifier with UUID ... of an attribute ... entity ...

NOTE: 

Please ensure that each new modifier for the game is assigned a unique UUID to maintain consistency in their addition and removal. To generate a random UUID, you can utilize resources such as uuidtools.com/minecraft or any other suitable method. Additionally, it is important to verify that the entity has the desired attribute before setting or retrieving.has attribute check

Custom AttributeModifiers

 

License

  • Licensed under the GNU Lesser General Public License, version 3.0  
  • Mods created with this tool may be closed-source and/or distributed with a different license.
  • Appropriate credit must be provided to the creators and maintainers of this software.
  • Forked versions of this software must be distributed under the same license as this with attribution if distributed.
  • Changes must be stated if any modified works are to be distributed.
  • Under no circumstances can you state that the original creator endorses modified works.

Last changes:

V2.3.8:
- Added two new Forge attributes to lists for 1.20.1: EntityReach and BlockReach
- Removed forge attribute ReachDistance from 1.20.1
V2.3.7:
- Added procedure to add modifier to an item, old system for adding attribute modifiers to items is now deprecated (will be deleted later)
V2.3.6:
- Added Forge 1.20.1 support
- Added NeoForge 1.20.1 support
- Localisation changes
- Procedures code cleanup
V2.3.5:
- Limited the available entities in the gui to being LivingEntites
- Added possibility do add attribute to all Monsters, Animals, Water Animals, Golem Mobs, Ambient Creatures
- Added entity attribute modifiers
- Removed dependency from create new modifier
- Localisation changes
Project members
Lead developer
Contributor
License
GNU General Public License version 3 (GPLv3)

Plugin downloads
2.3.8 MCreator 2023.3 ONLY - attributes-2-3-8-2023-3.zip Uploaded on: 09/20/2023 - 10:31   File size: 96.65 KB
2.3.8 MCreator 2023.2 ONLY - attributes-2-3-8-2023-2.zip Uploaded on: 09/20/2023 - 10:31   File size: 96.66 KB
2.3.8 MCreator 2023.1 ONLY - attributes-2-3-8-2023-1.zip Uploaded on: 09/20/2023 - 10:31   File size: 96.66 KB

Comments

The new update sucks.
It removed the ability to edit entity attributes, which is supposed to be the point of this plugin.

i don't get it dude...im a beginner so maybe i misunderstood something. when i clicked the "attributes"element and typed in the name of it, nothing happended afterwards. i didn't see any new elements added... is this a bug? or maybe i got it wrong;-; my version is 2023.2 and im working on 1.18.2

This has to be one of my favorite plugins, thanks for maintaining it!

Hi, I was trying the get value of the attributes and some of the atributes work and others of mods also work but attack_damage and knockback resistance just show the base value that are 1 and 0, I know there are some that get the base value but I'm mo using those, and I also not using others plugins

I knew about the knockback, I didn't knew the get value was for modifiers, but how I'm using them it works for all of them but with attack damage and knockback resistance it don't work, but I'll try with modifiers and see what happens, also there is not a way to get the value of attributes that is show when you use the command "attribute get" this one is able to change it's value when the player have different swords or weapons in hand

In case anyone is wondering if this works with 1.19.4: Yes, it does, but some file editing is needed. You need to go into the plugin zip, and extract (copy) the forge-1.19.2 folder, into your plugins folder. Then, you need to rename the extracted forge-1.19.2 folder to forge-1.19.4. After that, drag and drop it into the attributes-2.3.1a.zip file (because that is the one you should have extracted from to begin with), and your version of the plugin should work correctly with the 1.19.4 generator.

I actually got this tip from the developer of this plugin, but for an older version, and I went to see if it works for the current version, and it does! :)

How would you exactly add attributes to an item? Nothing in the example images really clarify things for me. I am trying to make an item that dependent on the item's lore, will result with different attributes. How would I accomplish that using the procedures in this plugin?

Is it worth waiting for the update to 1.19.4 in the near future?

Very nice plugin, just on little thing i would like to know
Whenever I create a new modifier for an item slot for some reason all items that can get modifiers gets the text
"When in (slot where modifier was added)"
Is there a way to remove this and only apply this text to the specific slot or even a way to apply this only in specific circunstances
Example: when an item has a specific enchantment.