跳到正文

Game API

作者:Anomuxx

Fabric mod providing Minecraft data through a secure HTTP JSON API.

收藏

介绍

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

MCAPI – Minecraft Client API

MCAPI is a Fabric client-side Minecraft mod that provides a simple and powerful HTTP JSON API for external applications.

The mod allows programs, bots, dashboards, websites, and scripts to access live information from your Minecraft client in real time. MCAPI works as a bridge between Minecraft and external software, making it easy to create integrations, monitoring tools, overlays, and custom applications.

Features

Player Information

MCAPI provides detailed information about the current player:

  • Player name and UUID
  • Health
  • Hunger and saturation
  • Gamemode
  • Position
  • Rotation (Yaw/Pitch)
  • Movement speed
  • Sprinting state
  • Sneaking state
  • Flying state
  • Inventory and equipped items

World & Server Information

Access information about the current world and server:

  • Current dimension
  • Difficulty
  • Server IP
  • Ping
  • Online player count
  • Chunk position
  • World time
  • Biome
  • Block light level
  • Sky light level

Client Information

Get information about the Minecraft client:

  • Current FPS
  • Client TPS estimation
  • Installed Fabric mods

API

MCAPI provides simple HTTP JSON endpoints that can be used by external applications.

Available endpoints:

Endpoint Description
/player Player information
/world World and server information
/client Client information

All responses are returned in JSON format for easy integration with many programming languages.

Security

MCAPI includes API key authentication to protect your data.

Protected endpoints require a valid API key using the X-API-Key header.

Example:
X-API-Key: your-secret-key

Use Cases

MCAPI can be used for:

  • Discord bots
  • Minecraft dashboards
  • Stream overlays
  • External monitoring tools
  • Custom scripts
  • Personal Minecraft utilities
  • Integration with other applications

Requirements

  • Minecraft 1.21.x
  • Fabric Loader
  • Fabric API
  • Java 21

About

MCAPI is designed to be lightweight, fast, and developer-friendly. It does not modify gameplay or automate actions. It only provides Minecraft client data to external applications through a secure HTTP API.

常见问题

Game API 支持哪些 Minecraft 版本?

Game API 支持 Minecraft Java 版 26.2,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Game API 怎么安装?

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

评论

登录后评论和评分

Anomuxx 的其他作品

查看全部 →