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.
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
Comments
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!
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.
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.
In the bottom-right corner, there's a section called "provided itemstack." This shows the item currently being worked on. Make sure it's the item you want to add modifier to. This is important because when Calculating Attribute Modifiers is ran, it goes through many items in the game that need calculations (for client side when you check item tooltip, for server when modifier should apply to entity)
You can check if it's the right item in any way you like. For example, see if it matches your custom armor, has a specific name, or has special nbt tags or other item details.
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.