Chunk Library

Quick rating

Community listing page, reviews here may not be monitored by the author.

Chunk Library

No reviews yet

A library for tracking a chunk's age and regenerating it with various configuration options.

No Theme
No Genre
QoL & Tweaks
API/Library
Mod Loaders
NeoForge
Minecraft

Community voices

Reviews

List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Show per page
10
25
50
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

About

Project Details

Type
Mod
Latest Version
chunklibrary-1.21.1-1.2.0a.jar

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

CurseForge ID

Resources

External Links

Source Issues Wiki Discord

About

Description

Chunk Library
 

A library focused on tracking a chunk's age since being loaded and implementing chunk regeneration depending on the externally set ConfigAPI settings. By itself, this mainly just tracks a chunk's age and allows for manual chunk resetting. For full use, you want to use https://www.curseforge.com/minecraft/mc-mods/unclaimed-chunks-regenerate or write something that utilizes this library's features!

KEY FEATURES:
 - Adds NeoForge events for initial chunk loading.
 - Adds hook for regenerating a chunk in a given dimension
 - Adds /chunklibrary commands for regenerating a chunk, changing it/the world's age, etc.
 - Supports modded dimensions
 - Injects a random seed into the ores, trees, and animals upon chunk regeneration
 - Teleports and protects entities from suffocation damage for 100 ticks following a chunk regenerating

 - Public methods and a ConfigAPI to allow for external mod hooks (KubeJS, non-AccessTransformer Mixin, etc.)

NOTE: For performance and compatibility, chunk regeneration occurs when it is being loaded. This means that to  regenerate a chunk, it must first be unloaded. This SIGNIFICANTLY reduces performance overhead. Entities are preserved, but blocks AND structure features are regenerated as if the chunk was never loaded before. This behaviour also ensures that compatability is entirely maintained.
 
This mod directly interfaces with Minecraft's internal chunk loading/generating features. When random seeds are injected, the same amount of random.next()/etc. are used which maintains the original Minecraft seed determinism. Additionally, because of where the hooks are used and a lack of overwriting features, this mod should be compatable with everything. For performance, air blocks are scanned when a chunk is first generated and cached. On a rolling, ConfigAPI-configurable basis, chunks that are at 90% of their age maturity are randomly selected and scanned for changes. Only after a ConfigAPI-configurable threshold of +/- total air block change is met will a chunk actually be flagged for regeneration. This saves overhead by not needlessly regenerating old, still-untouched chunks.
 
If you have requests, please submit an issue on the GitHub.

Screenshots

Gallery

This project has no gallery images yet.

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

~11,000
Downloads
Last Updated
Created
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works