Tetrachord Lib is a lightweight library for mod developers, providing spatial data structures and utilities to make queries and updates in Minecraft’s 2D and 3D environments more efficient. Its KD trees organize multidimensional points for range, nearest-neighbor, and farthest-point searches, while segment trees support efficient updates and queries over areas or ranges. The project demonstrates these structures with examples including checking nearby blocks to prevent hostile spawns around campfires and counting nearby ores to determine an extra XP reward when mining near a beacon.
Written from Modrinth . How we write it
The newest release or beta for each Minecraft version and loader, on Modrinth and CurseForge.
Have a copy of Tetrachord Lib? Check that it is the official one.
Drop it here. We compare its fingerprint with the official Tetrachord Lib files. If we do not know the file, we upload it for a deep check.
Who makes Tetrachord Lib, with their most downloaded other projects.
Something wrong here? Report a mistake
Something wrong here? Report a mistake
Something wrong here? Report a mistake
None found
No sign it sends data.
We find the web addresses its code can contact, but we cannot see everything a mod does while it runs. Wrong result? Tell us
A mod can send information about you over the internet, such as your player name or your login.
Something wrong here? Report a mistake
Something wrong here? Report a mistake
Something wrong here? Report a mistake
Something wrong here? Report a mistake
Something wrong here? Report a mistake
Something wrong here? Report a mistake
Does not change the game's code directly.
Also
Something wrong here? Report a mistake