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 join lock is so world generation doesn't get stuck. I was just trying to test if the attributes work, but I found they didn't, just wanted you to know. Anyway if you get this fixed I definitely will have a few cool mods I will finish...

When I try to add attributes to entities in the world, the game crashes. I'm in Mcreator 2023.2 and I try to add the "ATTACK_DAMMAGE" and "MAX_HEALTH" to every entity that isn't the player. In the crash report is says there is a null when adding the attributes.

java.lang.NullPointerException: Cannot invoke "net.minecraft.world.entity.ai.attributes.AttributeInstance.setBaseValue(double)" because the return value of "net.minecraft.world.entity.LivingEntity.getAttribute(net.minecraft.world.entity.ai.attributes.Attribute)" is null

When I mess with the Health Attribute, it seems it won't update after adding +2 to the current Player Health, from right clicking an item. But it heals all the way after you get damaged once, is there a fix for this?

I cannot use "reach distance" or "attack range" in 2023.3, it will build fail.

how do i add attribute modifiers to my items? i cant find a tutorial or clear images on how to use this plugin. im using version 2022.2 of mcreator and version 2-3-0 of the plugin, and im making a 1.16.5 forge mod

can you help me with making an item that changes attack speed ONLY if its in offhand sty if its a stupid question but i couldnt figure it out

yo so i was wondering how to add a modifier say to a helm. I'm a bit confused on how to do that. I'm trying to increase its damage. Ive tried doing it myself, but i cant see +2 damage on the armor

I can't use vanilla attributes. there's no vanilla attributes

Adding modifiers to attributes on items don't seem to be working, I can't add any block I've tested.

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.