Mod Access Control
服务端Minecraft模组,用于控制允许哪些客户端模组。支持白名单/黑名单/切换策略、必需模组检查、豁免列表、试运行、/mac命令。支持Forge / Fabric / NeoForge。
介绍
Mod Access Control
A server-side Minecraft mod that gives server owners precise control over
which mods players may (or must not) have installed. It behaves identically on
Forge, Fabric, and NeoForge, with one shared config file and the
same /mac command suite.
Note: Clients must also install this mod to complete the handshake.
Clients without it are denied on join (configurable viarequireClientMod).
Features
- Two-stage handshake — a lightweight protocol/loader exchange at login,
full mod-list verification before entering the world, then periodic re-checks
using the reported list (no repeated transfers). - Required-mod checks — enforce presence (
presence), version ranges
(version_range), or strict matching (strict). - Policy system —
whitelist,blacklist, orswitch(dual-mode with a
hot-swappable active policy and interval re-checks). - In-game rule management — view, edit, reload, and save
whitelist/blacklist/required lists live via/maccommands, with
tab-completion and one-click list building from any player’s mods
(/mac learn). - Multi-language, server-side — all messages (kick screens, admin alerts,
command feedback) follow the server’s configured language:
zh_cn,zh_tw,en_us,ja_jp,ru_ru(/mac lang <language>, keys are
shipped as JSON catalogs and easy to extend). - Clear player feedback — the disconnect screen lists exactly which required
mods are missing, which versions mismatch, and which banned/off-list mods
were found, plus a customizable footer hint area. - Exemptions — skip all checks for specific players (name or UUID) or all
OPs. - Dry-run mode — detect and log violations without kicking, so you can
validate rules before going live. - Mod history & audit — every player’s mod list is persisted (JSONL) and
auditable via/mac audit//mac recent. - Admin alerts — online admins get chat + action-bar + sound notifications
on every block. - Robust error handling — corrupted configs are auto-backed up and reset;
failures are caught and logged, never crashing the server.
Configuration
File: <server>/config/mod_access_control.json (auto-generated on first start)
Key options:
enabled— master switchrequireClientMod— require the client mod (defaulttrue)strictLoader— require a matching mod loaderrequiredCheckMode—presence/version_range/strictpolicy.mode—whitelist/blacklist/switchlanguage— server message language:zh_cn/zh_tw/en_us/ja_jp/ru_ruexemptPlayers/exemptOps— exemptionsdryRun— log violations without kickingallowedMacVersions— restrict which versions of this mod may connect
Commands
/mac — status, recent, check, audit, learn, reload, save,
recheck, enabled, dryrun, mode, active, exempt, allowedmac,
required, whitelist, blacklist, and lang.
Run /mac help in-game for the full list.
常见问题
Mod Access Control 支持哪些 Minecraft 版本?
Mod Access Control 支持 Minecraft Java 版 1.12.2–26.3,共 21 个版本,可用的加载器:Fabric / Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。
Mod Access Control 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
评论
登录后评论和评分