Adds a list of new attributes for entities and players. These attributes allow mod compatibility and serve as an API for mods that make use of them.
WATER_SPEED(living entities): Controls the speed of the player when in waterLAVA_SPEED(living entities): Controls the player's speed when in lavaJUMP_HEIGHT(living entities): Controls the jump height of the playerDROPPED_EXPERIENCE(living entities): Changes the amount of experience dropped from mining blocks and killing mobsMAGIC_PROTECTION(living entities): Reduces the amount of magic damage takenWIDTH(living entities): Controls the player's widthHEIGHT(living entities): Controls the player's heightHITBOX_SCALE(living entities): Controls the player's hitbox scaleHITBOX_WIDTH(living entities): Controls the player's hitbox widthHITBOX_HEIGHT(living entities): Controls the player's hitbox heightMODEL_SCALE(living entities): Controls the player's model scaleMODEL_WIDTH(living entities): Controls the player's model widthMODEL_HEIGHT(living entities): Controls the player's model heightMOB_DETECTION_RANGE(living entities): Controls the range that the player can be detected by hostile mobsWATER_VISIBILITY(player only): Controls the player's visibility in water by adjusting the fog distanceLAVA_VISIBILITY(player only): Controls the player's visibility in lava by adjusting the fog distanceCRITICAL_BONUS_DAMAGE(player only): Controls the bonus damage dealt when critical hits are madeDIG_SPEED(player only): Controls the player's digging speedBONUS_LOOT_COUNT_ROLLS(player only): Controls the number of drops the player receives when using enchantments such as Loot and LuckBONUS_RARE_LOOT_ROLLS(player only): The number of times the chance-based loot table is rolledCOLLECTION_RANGE(player only): Controls the distance where the player is able to collect ("touch") entity types in theadditionalentityattributes:affected_by_collection_rangetag (like items & experience orbs)
additionalentityattributes:affected_by_collection_range: Marks an entity type as being affected by the collection range attribute (by default items & experience orbs).
You will probably not need to install this library yourself, as most mods that use it will ship with it. If you want to use the above attributes via commands or anything else, feel free to do so, of course.
Feel free to JIJ. You can fetch all builds from the Modrinth Maven:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
filter {
includeGroup "maven.modrinth"
}
}
}
dependencies {
modImplementation include("maven.modrinth:AdditionalEntityAttributes:<version>")
}