All versions
1.21
Release
Chunker 1.212 years ago 104
Compatibility
Minecraft: Java Edition
1.21
Platforms
Bukkit
Paper
Purpur
Spigot
Changes
Old Approach:
- Utilizes the BukkitScheduler to run chunk unload tasks.
- Tasks are scheduled within the game loop, which introduces some overhead and can limit concurrency.
- Uses a scheduler to repeatedly check and unload chunks.
New Approach:
- Uses virtual threads to handle chunk unload tasks.
- Virtual threads are lightweight, allowing for many more concurrent tasks without significant performance penalties.
- Runs tasks asynchronously, removing the dependency on the game loop scheduler.
Why the New Approach is Better:
- The new approach using virtual threads offers lightweight concurrency and reduced overhead compared to the old scheduler-based method, simplifying the code and improving scalability for handling chunk unloading in Minecraft.
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:Ru3ze8x1:ez04UJac"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:Ru3ze8x1:ez04UJac"
}

