Tags
Creators
Details
1.2
Compatibility
Changes
This version of the data pack maintains compatibility with previous versions but changes a lot internally.
This changelog doesn't go into much detail. For more information, read the documentation. A copy is included in a download of this data pack.
-
Improved the responsiveness of the AFK detection
- The data pack is performant enough that on a low spec system it can easily run for upwards of 40 players on every tick while only increasing the MSPT by about 1 or 2. I'm only increasing the rate of checking from every 5 seconds to 1.5 seconds (1 in every 30 ticks)
-
Added an
afktrigger- Admins can run
/scoreboard players enable <username> afkto allow a player to manually become AFK
- Admins can run
-
Added a new
afk.ticksscoreboard, which can be used to track the amount of ticks that players have been AFK -
A player exiting and re-joining the game is counted as active
-
Players leaving the game can be detected by add-ons without implementing a custom scoreboard
-
Added a configurable threshold for players becoming AFK, instead of hard-coding 3 minutes
- An admin can run
/scoreboard players set .threshold afk.settings <ticks> - 3600 ticks by default, which is 3 minutes
- An admin can run
-
Changed scoreboard objective names. The names documented in the documentation are now stable and part of the public API.
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:OZdgwUpA:iuBZbX5d"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:OZdgwUpA:iuBZbX5d"
}

