How to make an Attribute

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:
  • This is the in-game name of the attribute.
Attribute default base value:
  • This sets the starting value of the attribute.
Attribute value range:
  • Min: This is the minium range of the attribute.
  • Max: This is the maximum range of the attribute.
Add to all living entities:
  • When checked this attribute will be applied to all living entities.
Add to players:
  • When checked this  attribute will be applied to all players.
Entities with the attribute:
  • This is the list of entities that can have the attribute.
  • Requires at least one entity to be in this list if the "Add to all living entities" is not checked.

 



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.