截图
介绍
![Contributors][contributors-url]
![Forks][forks-url]
![Stargazers][stars-url]
![Issues][issues-url]
![MIT License][license-url]
![LinkedIn][linkedin-url]
![Discord][discord-url]
![Modrinth][modrinth-url]
Table of Contents
About The Project

fStats is a 3rd-party metric collection library. The Main idea is help developers to recognize their actual community based on charts
Usage
For user
The mod has a config that allows to turn off a metric collection from the server/client and hiding location
../config/fstats-api/config.json
{
"enabled": true, // Enable/Disable collection from our server
"hideLocation": false // Mod does not collect your IP, only the country name
}
For developers
The first thing that you need to do is register and create a project to get projectId
After that, you are ready to add a library as/to dependency
Java – build.gradle
repositories {
maven {
url "https://api.modrinth.com/maven"
}
}
dependencies {
// Option 1: Include fStats API to project for it to be available within your own jar (IT'S ONLY ~9KB!)
include(modImplementation("maven.modrinth:fstats:<version>")
// Option 2: Depend on fStats API, but require that users install it manually
modImplementation "maven.modrinth:fstats:<version>"
}
Kotlin – build.gradle.kts
repositories {
maven("https://api.modrinth.com/maven")
}
dependencies {
// Option 1: Include fStats API to project for it available within your own jar IT'S ONLY ~9KB!
include(modImplementation("maven.modrinth", "fstats", "<version>"))
// Option 2: Depend on fStats API, but require that users install it manually
modImplementation("maven.modrinth", "fstats", "<version>")
}
fabric.mod.json
"suggests": {
"fstats-api": "*"
}
Setup project
fabric.mod.json
"custom": {
"fstats": <projectId>
}
Done, now when any server uses your mod, and if they don’t disable fStats, you are going to get data about that on website
Also, recommend adding the badge to your project description to notify users that you collect information.
Resize badge to any size that you want

Roadmap
See the open issues for a full list of proposed features (and known
issues).
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any
contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also
simply open an issue with the tag “enhancement”.
Don’t forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
License
Distributed under the MIT License. See LICENSE.txt for more information.
常见问题
fStats 支持哪些 Minecraft 版本?
fStats 支持 Minecraft Java 版 1.13–26.1.2,共 49 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
fStats 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端 / 服务端。
syorito-hatsuki 的其他作品
查看全部 →ModMenu Badges Lib
More badge!!!
Yet Another Cobblestone Generator
Flexible customizable generators
Ducky Updater Lib
Simple library for checking mod updates from modrinth
Death Counter
Death Counter with client Web UI
评论
登录后评论和评分