跳到正文

KrepAPI (Mod)

作者:ShinKuyomi

Fabric client bridge for servers: custom key bindings synced from the host, optional raw-key hooks for addons, and a handshake so Paper/Fabric servers can require this mod. Install only on servers that use KrepAPI. Needs Fabric API.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

GITHUB

KrepAPI is a Fabric mod that lets multiplayer servers (via Paper/Spigot plugin messages or a Fabric server with the same protocol) define extra key bindings on your client, react to raw key input when allowed, and optionally require that you have this mod installed.

You only need KrepAPI if the server you play on uses it. It does nothing useful in single-player unless you run matching server-side code yourself.

Features

  • Server key bindings — The server sends a list of actions (ids, labels, default GLFW keys, categories). They show up under a dedicated controls category (e.g. “KrepAPI (this server)”). Pressing a bound key notifies the server.
  • Handshake — Server can verify protocol version and mod version; misconfigured or missing clients can be disconnected (server policy).
  • Raw key pipeline (for developers) — Companion mods can register listeners to observe keys early and optionally block vanilla handling for that event when the design allows (e.g. server-approved overrides).
  • Fabric dedicated server — The same mod jar can load on a Fabric server to handle the protocol without Paper.

Requirements

  • Minecraft — Match the version your KrepAPI build targets.
  • Fabric Loader
  • Fabric API

For server owners & developers

Server integration uses a small binary protocol (plugin channels / custom payloads). Reference implementations and docs live in the project repository (protocol layout, Paper sample plugin, client API).

License

See the distributed mod metadata and project license. All rights reserved unless otherwise stated in the Modrinth “License” field.

常见问题

KrepAPI (Mod) 支持哪些 Minecraft 版本?

KrepAPI (Mod) 支持 Minecraft Java 版 1.21.4–26.1.1,共 10 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

KrepAPI (Mod) 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅客户端。

评论

登录后评论和评分