Attribute

Attribute is a customizable value that can alter a trait of an entity or a player.

NeoForge 26.1.2NeoForge 1.21.1

Step-by-step guide: how to make attribute →

Fields you fill in

Add to all living entities

If enabled, all entities in the world that can have attributes will have this attribute present and set at its default value when spawned.

Add to players

If enabled, all players in the world will have this attribute present and set at its default value when joining the world.

Attribute default base value

This is the attribute's default base value.

The attribute will have this as its value until something in the game (procedure, command or modifier) changes it.

The value of an attribute is the number that is calculated after modifiers and min/max restrictions are applied on its base value.

Entities with the attribute

Entities selected here will have this attribute present and set at its default value when spawned.

Attribute value range

This parameter controls the minimum and maximum values the attribute's value can be set to.

Attribute sentiment

This parameter determines if the attribute should be considered positive, negative, or neutral.

This also affects the color of attribute modifiers for this attribute.