Tags
Creators
Details
1.7
Compatibility
Required content
Changes
Armour Weight 1.7
After a long, long time of Armour Weight being idle, I'm back with an update. (Hooray!)
What's changed?
Minor changes:
- Brought the "armour weight" bar back, with it's own texture.
- Made the weight bar move upward based off the amount of saturation/health a player has.
Major change(s):
- Added a brand-new system for datapacks that use Armour Weight's functionality. By creating a file, with a path like this:
data/armourweight/functions/your_item_name.mcfunctionyou can make a function is run every tick that the item is equiped, and using the integer output of the CalculateWeight command, you can track the weight of a player alongside equipment. This function is run as the player.
Using this, you can implement whatever you want to happen at certain weights with certain gear, and implement interactions that are out of the scope of what I intend for effects. If you need extra configuration, try out the Java API as well!
Due to the function API this uses, 1.20.2 and lower will not work.
Let me know over on the issue tracker/discussions at github if you have any issues, ideas, or want to share a datapack you made!
Supplementary resources
| File | Type | Size | |
|---|---|---|---|
| armourweight-1.7-sources.jar | Unknown | 17.56 KiB |
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:j4OnTuyf:HA69fknm"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:j4OnTuyf:HA69fknm"
}

