Extra Entity Attributes
ModLicenseRef-Fneifnoxs-License

Extra Entity Attributes

This mod adds new attributes, which serve as an API for other mods.

167
Downloads
1
Followers
2 months ago
Updated
📦
11
Versions

📖About Extra Entity Attributes

This mod adds 18 new attributes to the game. These attributes can either be used by other mods to serve as an API or used by the player to customize specific values.

Features

Attributes

VILLAGER_DISCOUNT (player): How much cheaper / expensive an item from a villager should be

MAX_HUNGER (player): The max. amount of hunger a player can have

FOOD_NUTRITION_MULTIPLIER (player): How much hunger food should restore

FOOD_SATURATION_MULTIPLIER (player): How much saturation food should give

EATING_SPEED (player): How fast a player can eat

DRINKING_SPEED (player): How fast a player can drink

STATUS_EFFECT_DURATION (living entities): How long an potion or beacon effect should last

LIFESTEAL (player): How much health (percentage-wise) is stolen on damaging a living entity

HUNGERSTEAL (player): How much hunger (percentage-wise) is stolen on damaging a living entity

SPRINTING_FOOD (player): How much hunger is needed in order to sprint

CROSSBOW_PULL_TIME_MULTIPLIER (player): How long you need to pull your crossbow in order to shoot

FISHING_DURATION_MULTIPLIER (player): How long you need to wait until a fish appears

ADDITIONAL_FISHING_LUCK (player): How much additional luck (adding to Luck of the Sea) you will have in order to fish up a treasure (100 = always)

SPRINTING_SPEED (player): How fast a player should be whilst sprinting

CLIMBING_SPEED (living entities): How fast a living entity should climb

CREATIVE_FLYING_SPEED (player): How fast a player should fly in creative mode

MOUNT_SPEED_MULTIPLIER (player): How fast a ridden entity should go

SLIPPERINESS (living entities): How slippery ice should be

NAME_TAG_VISIBILITY_RANGE (player): How far a player can see nametags of others

A Player that eats food instantly and has more hunger

Got any ideas for new attributes? Suggest them to me on my discord.

Usage

For Users

You can configure all these values with /attribute.

Heres an example:

/attribute @p extra-entity-attributes:status_effect_duration base set 2

This doubles the duration of all potion and beacon status effects for the nearest player

For Developers

You are allowed to use this mod freely in your own mod. Feel free to embed it into your mod.

repositories {
    exclusiveContent {
        forRepository {
            maven {
                name = "Modrinth"
                url = "https://api.modrinth.com/maven"
            }
        }
        filter {
            includeGroup "maven.modrinth"
        }
    }
}
dependencies {
    modImplementation include("maven.modrinth:extra-entity-attributes:<version>")
}

Credits

Inspiration

If it wasn't obvious enough this mod is heavily inspired by Additional Entity Attributes. Therefore this mod is also fully compatible with Additional Entity Attributes as it only adds attributes which are not in Additional Entity Attributes.

Code

I reused some code of Artifacts (see Source Code to know where).

Support

If you have questions, encounter problems, find bugs or have suggestions you can join my discord server:

Fneifnox's Mods Discord Server