Section
What is an attribute?
Attributes are values assigned to entities that influence various mechanics in the game. They act as modifiers that control specific behaviors or properties of entities. For example, in the vanilla game, the movement_speed
attribute determines how fast a player or entity moves when walking or running.
Attributes can be applied to both living entities and players, functioning like variables that often connect to core game mechanics or mods, such as movement, max health, or attack damage.
Create the element
- Click the "Mod elements" tab.
- Click the green "plus" button.
- Select Attribute
- Give the mod element a name.
- Click the "Create new Attribute" button.
Element settings
Attribute name: |
|
Attribute default base value: |
|
Attribute value range: |
|
Add to all living entities: |
|
Add to players: |
|
Entities with the attribute: |
|
References
Minecraft Wiki - Attributes
https://minecraft.wiki/w/Attribute