Attributes

Published by Azzier on
Supported MCreator versions
2023.1
2023.2
2023.3
Tags / plugin type
Java plugin
Procedures
Variables
MCreator plugin
Downloads:
4410
Upvotes: 122
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.zipUploaded on: 09/20/2023 - 10:31   File size: 96.65 KB
2.3.8 MCreator 2023.2 ONLY - attributes-2-3-8-2023-2.zipUploaded on: 09/20/2023 - 10:31   File size: 96.66 KB
2.3.8 MCreator 2023.1 ONLY - attributes-2-3-8-2023-1.zipUploaded on: 09/20/2023 - 10:31   File size: 96.66 KB

Comments

HEy there Im using MCreator version 2023.3 and Im on 1,20.1 I want to make an item that increases the reach distance while heald but when I do the procedure and set the reach to 6 there is an arror. (compilation error)
is there a way to fix this

not fully working on 1.20.1, i made a procedure that adds +1 to entity/target attack range value and it gives me an error

Yo, been a while since i said something here, I have a feature request, is it possible to basically have a procedure that removes the health bar? I already made my own, and in a mod where the players can get up to 100,000 HP, well yeah the screen gets filled with hearts. I tried changing the texture of hearts to make them transparent, it works except the hearts are still there even tho you can’t see them, so when the game try to renders that much hp, it starts lagging(a lot).

Idk why, but each time i use a procedure or a command using the attributes plugin, my game immediately crashes (im using Mcreator 2023.3)

This is literally the exact thing I've been looking for so that I can make something I've been conceptualizing for a long time. Thank you so much.

Hey I wanted to say i really like your plugin, perhaps in an update you could make a procedure to add modifiers to base items. Like how netherite armor has knockback resistance in the creative menu, or whenever. It would be quite nice to make armor that modifies damage, or custom attributes.

Hi - does this add the option to check for an entities current location (x, y, z)? I've got several mobs in my mod that I want to check for the current location of a given entity name and provide it to the player initiating the command that does the procedure to check it. Thanks!

In addition to my other comment.
Screenshot:
https://docs.google.com/document/d/1JdqkxQqSKE9QBQwdbhtxmBT2ph81TRduVAhjM7Ao-4c/edit?usp=sharing

I know it is overcomplicated. I'm trying to make a system that lets you add attribute modifiers to items like it's done with entities. If it works out, we can get rid of the old system (will be deprecated and later deleted). The tricky part is that Minecraft already has its own system for it, but it only works for built-in attributes, not those from forge or your own.

Ps. The command you showed actually helped :>.

I don't know if this helps, but a good system would work in a similar way to enchantment, already present in MCCreator.
Minecraft enchantments are stored in a similar way to attributes, i.e. using NBTs.

So after experimenting, I checked the items to which I had assigned NBT attributes by block command. I don't vote for the custome attribute, but I do vote that it has been modified, and is behaving abnormally. In particular the type of item that doesn`t display or the boots with the modify attribute that doesn`t protect from anything. The ``Dog`` attribute doesn`t display but the information seems to be applied to the item.

The issues is in registries, forge has its own registry system, pretty much separate from vanilla Minecraft, so i cant use builtin method for adding attribute modifier like mcreator does to add enchantments.
Unfortunately enchantments are bit different than attributes and modifiers.

Hello,

I am a person with many years of experience in the field of thecnology. I know Minecraft since 8 years. I am currently at University. I know how to put attributes on items with a Minecraft command: /give @p diamond_chestplate{AttributeModifiers:[{AttributeName: "generic.max_health",Name: "generic.max_health",Amount:5,Operation:0,UUID:[I;-1554042859,-2087958305,-1689805617,-2128192925],Slot: "chest"}]} 1

But with this plugin and after spending 3 hours on it, I still can`t put an attribute on an item. I`m frankly afraid that if I fail, most people won`t be able to do it. I think that setting attributes on items is reserved for the elite with this plugin.
Recommendation:
- Make tutorials on how to use this plugin. I can`t find anything on the web.
- Simplify the system and do as with the enchantments in MCCreator, leave it up to the user to choose the item to which they want to add attributes. If possible.

All the best regards.

Entity attribute modifiers do not support custom attributes (version 2.3.5, MCreator 2023.2)
if you can add support for this, that would be amazing.

thank you for your plugin! it's really useful :)

Hey so I am fixing the Minecart speed & I'm wondering to I have to set the base attribute modifier to my value every tick or when I load into world/dimension?

With this is it possible to make it so once a bit of armor is put on say chest armor it can give the player stronger stats like 1 punch things or improved movement speed?

Certainly, you cando with with a new procedure that has a trigger called "Calculating Attribute Modifiers." In this procedure, specify which active slot it should affect. Then, you can implement your own conditions for when the modifier should be applied, such as when the item stack from dependencies has a specific NBT tag or is a particular item.