截图
介绍

#
SilliestLib is a small library mod made for the Silliest SMP team, reducing re-used code and making some things easier for us :p
Project Info
How to add SilliestLib to your projects.
build.gradle
We start in your build.gradle, where you add this as your repositories block.
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
filter {
includeGroup "maven.modrinth"
}
}
}
Then, in dependencies block, you add this.
dependencies {
// SilliestLib
implementation "maven.modrinth:silliestlib:${project.silliestlib_version}"
}
gradle.properties
In your gradle.properties, you now need to add the mod version, this changes with every update to the mod, so make sure to change it to update SilliestLib.
silliestlib_version=5L5NiRdW
This is technically optional and can replace “${project.silliestlib_version}” in the build.gradle instead of being here, but is cleaner to do here.
fabric.mod.json
To make sure people can debug issues when SilliestLib is missing, remember to add the mod into the dependencies block, due to my versioning scheme not matching the semantic version format, make sure you have to version as “*” or it wont work :p
"depends": {
"silliestlib": "*"
}
Your ModInitializer
Before you can start any modding, in the “onInitialize()” method of your ModInitializer you have to add one simple line.
SilliestLib.init(MOD_ID);
Alternatively, “MOD_ID” can be replaced with either a string of your modId or a call to where you store your modId.
Before You Ask
Q: Can i use this project in my published modpacks?
A: of course, you can do this with any of my projects aslong as the download stays hosted within the modrinth ecosystem :3
常见问题
SilliestLib 支持哪些 Minecraft 版本?
SilliestLib 支持 Minecraft Java 版 26.1–26.3,共 5 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
SilliestLib 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。




评论
登录后评论和评分