FAB Library (Forge)
FAB Library is a powerful tool for Minecraft mod developers that significantly simplifies finding and tracking specific blocks in the game world. This is especially useful when working with modifications that require constant monitoring of certain block states.
Main Features
The library offers flexible search parameter configuration. The key configuration parameter blockCheckAroundEntitiesDelayMs allows setting the delay for checking blocks around entities (default 30000 ms, range from 0 to 3600000 ms). Increasing this value can positively impact server performance (TPS).
Project Integration
To connect the library to your mod, follow these steps:
1. Repository Setup
Add to the build.gradle file:
repositories {
maven {
url = "https://github.com/ricksouth/serilum-forge-maven/raw/maven/"
}
}
2. Adding Dependencies
In the same file, specify dependencies:
dependencies {
runtimeOnly fg.deobf("com.natamus.fablibrary:fablibrary:VERSION")
compileOnly fg.deobf("com.natamus.fablibrary:fablibrary:VERSION")
}
3. Version Specification
Replace VERSION with the current version in mcversion-modversion format, for example 1.15.2-1.0.
4. Workspace Update
Execute the command in the project folder:
$ gradlew cleanEclipse eclipse --refresh-dependencies
5. Dependency Configuration
Add to the mods.toml file in the META-INF folder:
[[dependencies.YOURMODID]]
modId="fablibrary"
mandatory=true
versionRange="[1.1,)"
ordering="NONE"
side="BOTH"
Replace YOURMODID with your mod's identifier.

Additional Information
Source code is available in the GitHub repository, and detailed documentation on library functions can be found in the wiki.
For discussing issues, ideas, and suggestions, use the issue tracker.