Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jamieswhiteshirt/reach-entity-attributes
Library of entity attributes for armor, tools, potions, etc. to increase or decrease reach distance and attack range
https://github.com/jamieswhiteshirt/reach-entity-attributes
Last synced: 2 months ago
JSON representation
Library of entity attributes for armor, tools, potions, etc. to increase or decrease reach distance and attack range
- Host: GitHub
- URL: https://github.com/jamieswhiteshirt/reach-entity-attributes
- Owner: JamiesWhiteShirt
- License: mit
- Created: 2019-08-05T20:38:25.000Z (over 5 years ago)
- Default Branch: 1.19
- Last Pushed: 2024-02-29T10:06:45.000Z (10 months ago)
- Last Synced: 2024-10-15T06:33:10.347Z (3 months ago)
- Language: Java
- Size: 352 KB
- Stars: 58
- Watchers: 7
- Forks: 22
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Reach Entity Attributes
[![Maven Repository](https://img.shields.io/maven-metadata/v/https/maven.jamieswhiteshirt.com/libs-release/com/jamieswhiteshirt/reach-entity-attributes/maven-metadata.xml.svg)](https://maven.jamieswhiteshirt.com/libs-release/com/jamieswhiteshirt/reach-entity-attributes/)**A library mod for Minecraft that implements entity attributes for reach distance and attack range**
## Usage
### Setup
To use and include this mod in your project, add the following to your buildscript:```groovy
repositories {
maven {
url "https://maven.jamieswhiteshirt.com/libs-release"
content {
includeGroup "com.jamieswhiteshirt"
}
}
}dependencies {
include modImplementation("com.jamieswhiteshirt:reach-entity-attributes:$VERSION")
}
```### API
### `com.jamieswhiteshirt.reachentityattributes.ReachEntityAttributes.REACH`
Represents the reach distance modifier of an entity that is added to the base value. In vanilla, the base values are 4.5 for survival and 5.0 for creative.### `com.jamieswhiteshirt.reachentityattributes.ReachEntityAttributes.ATTACK_RANGE`
Represents the attack range modifier of an entity that is added to the base value. In vanilla, the base values are 3.0 for survival and 6.0 for creative.A player's reach is typically greater than their attack range. Any attack range beyond the player's reach will be ineffective.
---
## DevelopmentTo get started, refer to the [Fabric documentation](https://fabricmc.net/wiki/tutorial:setup).