
Find A Block Library 可辅助查找特定方块并高效追踪其在世界中的位置。当多个模组依赖世界中特定的方块状态时,此功能尤为实用。
源代码请见 Github 仓库。
有关该模组的功能及其公开函数的更多信息,请参阅 Wiki。
可配置项
blockCheckAroundEntitiesDelayMs (默认值 = 30000,最小值 0,最大值 3600000):实体周围检测是否存在方块的延迟时间(毫秒)。在需要时增加此数值可提高 TPS。
如何在你的项目中使用该库:
这仅适用于开发新模组。如果你想使用依赖 FAB Library 的模组,只需从此页面下载即可。
1. 将以下行添加到你的 build.gradle 文件中:
repositories {
maven {
url = "https://github.com/ricksouth/serilum-forge-maven/raw/maven/"
}
}
dependencies {
runtimeOnly fg.deobf("com.natamus.fablibrary:fablibrary:VERSION")
compileOnly fg.deobf("com.natamus.fablibrary:fablibrary:VERSION")
}
2. 将 VERSION 替换为 上述行中的占位符,格式为 mcversion-modversion,例如 1.14.4-1.1 或 1.15.2-1.1:
部分示例: dependencies {
runtimeOnly fg.deobf("com.natamus.fablibrary:fablibrary:1.15.2-1.0")
3. 之后,在你的 项目文件夹中输入以下命令以刷新工作区:
$ gradlew cleanEclipse eclipse --refresh-dependencies
4. 在 META-INF 文件夹下的 mods.toml 文件底部添加以下行,并将 YOURMODID 替换为你的模组 ID:
[[dependencies.YOURMODID]]
modId="fablibrary"
mandatory=true
versionRange="[1.1,)"
ordering="NONE"
side="BOTH"
5. 在将文件上传至 CurseForge 上的模组项目页面时,请确保在底部将 FAB Library 选为依赖项:

------------------
只要下载源仍托管在 CurseForge 生态系统中,你就可以在任何整合包中自由使用该模组。
Serilum.com 提供了所有可用模组的概览及更多信息。
由于我无法跟踪每个模组页面上分散的评论,因此已禁用评论功能。
如有问题、想法、建议或其他任何内容,请访问 Github 仓库。谢谢!

The Find A Block Library assists in finding a specific block and keeping track of its location in a world efficiently. Especially useful when multiple mods depend on a specific blockstate in the world.
See the source code in the Github repository.
For more information on what the mod does and its public functions see the Wiki.
Configurable
blockCheckAroundEntitiesDelayMs (default = 30000, min 0, max 3600000): The delay of the is-there-a-block-around-check around entities in ms. Increasing this number can increase TPS if needed.
How to use the library in your project:
This is only for developing new mods. If you'd like to use a mod that depends on FAB Library, just download it from this page.
1. Add the following lines to your build.gradle file:
repositories {
maven {
url = "https://github.com/ricksouth/serilum-forge-maven/raw/maven/"
}
}
dependencies {
runtimeOnly fg.deobf("com.natamus.fablibrary:fablibrary:VERSION")
compileOnly fg.deobf("com.natamus.fablibrary:fablibrary:VERSION")
}
2. Replace VERSION in the previous lines with mcversion-modversion, e.g. 1.14.4-1.1, or 1.15.2-1.1:
Partial Example: dependencies {
runtimeOnly fg.deobf("com.natamus.fablibrary:fablibrary:1.15.2-1.0")
3. After that refresh your workspace by entering the following command in your project folder:
$ gradlew cleanEclipse eclipse --refresh-dependencies
4. Add the following lines to the bottom of mods.toml in your META-INF folder, replace YOURMODID with your mod's id:
[[dependencies.YOURMODID]]
modId="fablibrary"
mandatory=true
versionRange="[1.1,)"
ordering="NONE"
side="BOTH"
5. When uploading the file to your mod project page on curseforge, make sure to select FAB Library as a dependent at the bottom:

------------------
You may freely use this mod in any modpack, as long as the download remains hosted within the CurseForge ecosystem.
Serilum.com contains an overview and more information on all mods available.
Comments are disabled as I'm unable to keep track of all the separate pages on each mod.
For issues, ideas, suggestions or anything else there is the Github repo. Thanks!
评论 0
登录后参与评分
还没有评论,来抢沙发吧