欢迎来到 SCMC 1.0.0.0
服务器客户端模组检查器 (Server Client Mod Checker)
一个简单的 Fabric 模组,用于与服务器模组菜单通信,以便你的成员可以下载所需的模组。
使用方法
除了需要 Minecraft 版本在 1.20.1 之后且低于 1.22,以及 Fabric 加载器 0.16.0 之外,没有其他依赖项。
只需在你的服务器上运行它即可。
配置时间!
使用 SCMC 时,会为你生成一个名为 SCMC.js 的配置文件 :)
它现在包含什么内容?
如下所示:
/* ____ ____ ____
/\ _`\ /\ _`\ /'\_/`\/\ _`\
\ \,\L\_\ \ \/\_\ /\ \ \ \/\_\
\/_\__ \\ \ \/_/_\ \ \__\ \ \ \/_/_
/\ \L\ \ \ \L\ \\ \ \_/\ \ \ \L\ \
\ `\____\ \____/ \ \_\\ \_\ \____/
\/_____/\/___/ \/_/ \/_/\/___/
欢迎使用新的 SCMC 配置文件。我们建议你阅读 readme.md 以获取更多关于使用 SCMC 及其内置配置系统的详细信息,但下面提供了每个属性的基本摘要。请小心操作,并确保不会给你的社区带来任何问题。
readme 文件位于 https://github.com/SkellyBuilds/scmc
注释时请小心,如果你留下了多余的逗号或数据,这个模组将会崩溃!所以请妥善处理!
配置版本: 0.9.6.0-6061017d*/
module.exports = {
"useonlyuniversalmods": true, /*通用模组基本上既是客户端模组也是服务端模组。因此两者兼有!
如果保持启用状态,除非你另有指定,否则将不使用服务端模组*/
"cankickplayerswithnomods": true, /*这允许你选择是否让模组踢出缺少模组的玩家或其他违规玩家。
如果你选择 false,则不会踢出玩家,而是通知玩家有关缺失模组的信息,以便他们知晓!*/
"enablescmccrashes": true, //当 SCMC 端发生严重错误时,你可以更改设置以决定 SCMC 是否可以停止你的服务器并生成崩溃报告。
"usethismodsonly": [], /*这是一个数组,仅使用提供的模组 ID 对应的模组,其他一律忽略。
如果留空,除非你另行配置,否则 SCMC 将使用所有模组*/
"dontusethismods": [], //这将基本上从 SCMC 注册中黑名单化一个模组。如果你设置了 usethismods(白名单),则不会检查黑名单,因为白名单总是优先检查。
"usethismods": [], /*通用模组基本上既是客户端模组也是服务端模组。因此两者兼有!
如果保持启用状态,除非你另有指定,否则将不使用服务端模组*/
"optionalmods": [], //此列表中的模组不需要下载,意味着它们不会出现在缺失模组屏幕上,并且会通过 servermodmenu 显示 GUI 差异以澄清该模组的性质。
"port": 27752, //SCMC 与服务器模组菜单通信应使用的端口 - 更改端口意味着你需要为 SCMC 使用域名以保持端口兼容性,了解如何操作请访问 https://github.com/SkellyBuilds/scmc/wiki/Getting-started-using-SCMC#how-do-i-use-different-ports-properly
"canreadmodtranslations": true, //如果模组通过其 Fabric 配置告诉 SCMC 读取其文本(如描述、链接、名称等)并使用它们。如果你是模组开发者,这里是将其集成到你模组中的方法。https://github.com/SkellyBuilds/scmc/wiki/Integreting-SCMC-to-your-fabric-mod
"translatebydefault": false //即使模组未在配置中添加翻译信息,也默认翻译模组的详细信息。
}
正如在前一次更新中所提到的,注释现已成为 SCMC 配置系统的一部分!
你可以自由阅读 JSON 中键旁边的注释,以获取关于它们功能的更多信息。
实验功能也是本次更新的新增内容,你可以在注释中输入实验代号并将其运行。你可以利用此功能尝试那些尚未完全完善的功能。
可用的配置实验
- Restore Custom (恢复自定义注释):恢复你在
module.exports 内部(除 EXP 名称外)编写的注释,这些注释基本上是你之前添加的注释列表。我显然会尽力使其变得不那么糟糕且更无缝,但我喜欢良好的睡眠习惯。 - EXP-RESTORE-CUSTOM-COMMENTS
更新日志
- 添加了翻译 API 系统 - 了解更多请点击 这里
- 修复了一些代码错误并进行调整
目前就这些!
Welcome to SCMC 1.0.0.0
Server Client Mod Checker
A simple fabric mod that communicates with server mod menu so that your members can download mods
How to use
Not much dependencies other than minecraft after 1.20.1 and below 1.22 and fabric loader 0.16.0
Just run it in your server and you are fine
Configuration time!
Using SCMC, there will be a config file named SCMC.js generated just for you :)
What does it contain right now?
This
/* ____ ____ ____
/\ _`\ /\ _`\ /'\_/`\/\ _`\
\ \,\L\_\ \ \/\_\ /\ \ \ \/\_\
\/_\__ \\ \ \/_/_\ \ \__\ \ \ \/_/_
/\ \L\ \ \ \L\ \\ \ \_/\ \ \ \L\ \
\ `\____\ \____/ \ \_\\ \_\ \____/
\/_____/\/___/ \/_/ \/_/\/___/
Welcome to the new SCMC configuration file. We recommand you to read the readme.md for more details about using SCMC & it's own integrated configuration system but there are basic summaries for each property below. Becareful on what you do and make sure it doesn't cause any issues for your community
The readme can be located at https://github.com/SkellyBuilds/scmc
Please be careful while commenting, if you leave extra commas or data, this mod will go kaboom! So treat it properly!
Config Version: 0.9.6.0-6061017d*/
module.exports = {
"useonlyuniversalmods": true, /*Universal mods basically are both client side & server side mods. So one for both!
If you leave this enabled, server mods will not be used unless you specified otherwise*/
"cankickplayerswithnomods": true, /*This gives you the choice to allow the mod to kick players if they are missing a mod or otherwise
If you choose false, it won't kick the player but notify the player about the missing mods so they can be aware!*/
"enablescmccrashes": true, //When something goes critically wrong on sCMC's end, you can change if SCMC can stop your server & make a crash report.
"usethismodsonly": [], /*This is an array that will only use the mod ids provided for the mod, nothing else.
If you leave it empty, All mods will be used by SCMC unless you configurated it otherwise*/
"dontusethismods": [], //This will basically blacklist a mod from being registered in SCMC, if you have it usethismods, the blacklist won't be checked since the whitelist is always checked first.
"usethismods": [], /*Universal mods basically are both client side & server side mods. So one for both!
If you leave this enabled, server mods will not be used unless you specified otherwise*/
"optionalmods": [], //This list of mods won't be required to download, meaning they won't show up in the missing mod screen and there will be a GUI difference for the mod to clarify via servermodmenu
"port": 27752, //Which port should this mod use for SCMC to Server Mod Menu communication - Changing the port means you require a domain for port compatibility for SCMC, learn how to do this at https://github.com/SkellyBuilds/scmc/wiki/Getting-started-using-SCMC#how-do-i-use-different-ports-properly
"canreadmodtranslations": true, //If a mod tells SCMC via it's fabric config to read it's texts (Like description, links, names etc) and use it instead. If you are an mod developer, here's how you can integrete it in your mod. https://github.com/SkellyBuilds/scmc/wiki/Integreting-SCMC-to-your-fabric-mod
"translatebydefault": false //Translate the mod's details anyways even if the mod doesn't add it in it's configuration.
}
As stated in the previous update, comments are pretty much now apart of SCMC's config system!
Feel free to read the notes next to the keys in the json for some info about what they do.
Experiments are also a new thing in this update, you comment in a experiment codename and it will be ran. You can use this to try out new features that haven't been fleshed out the way i would like it.
Available Configuration experiments
- Restore Custom (Comments that you write inside the module.exports other than the EXP name) comments which basically add a list of comments you added previously. I will obviously try my best to make this less bad and more seamless but i like a good sleeping schedule. -
EXP-RESTORE-CUSTOM-COMMENTS
Change Log
- Added translation api systems - learn more here
- Some bug fixing and adjustments for the code
Thats all for now!
评论 0
登录后参与评分
还没有评论,来抢沙发吧