
PlayerCoordsAPI
Lightweight Fabric mod exposing locally MC player coords through HTTP API
- Загрузки
- 951
- Подписчики
- 3
- Обновлён
- 12 мая 2026 г.
- Лицензия
- MIT
Опубликован 27 февраля 2025 г.
PlayerCoordsAPI
A lightweight Fabric mod that exposes your Minecraft player coordinates via a local HTTP API.
📋 Overview
PlayerCoordsAPI provides real-time access to your Minecraft player coordinates through a simple HTTP endpoint. This enables external applications to track your position without needing to read Minecraft's memory or capture the screen.
✨ Features
- Lightweight HTTP server running only on localhost providing your coordinates
- Client-side only - no server-side components needed
- Works in singleplayer and multiplayer
- Mod menu integration allowing you to enable/disable the API, change its port, and configure requests with or without an
Originheader
🚀 Installation
- Install Fabric Loader for a supported Minecraft version
- Download the latest
playercoordsapi-x.x.x+mcx.x.x.jarfrom the releases page - Place the jar in your
.minecraft/modsfolder - Launch Minecraft with the Fabric profile
⚙️ Configuration
The API is read-only and only accepts loopback connections such as 127.0.0.1 and ::1.
From Mod Menu, you can configure:
- Whether the API is enabled
- Which port it listens on (default:
25565) - How requests without a CORS
Originheader are handled - How requests with a CORS
Originheader are handled
Requests with an Origin can be handled in three different modes:
Allow allLocal originsWhitelist
In Whitelist mode, you can configure each allowed origin with a scheme, host/IP, and optional port.
🔌 API Usage
| Endpoint | Method | Description |
|---|---|---|
/api/coords |
GET, OPTIONS |
Returns the player's current coordinates and world infos |
Response Fields
| Field | Type | Description |
|---|---|---|
x |
number |
East-West |
y |
number |
Height |
z |
number |
North-South |
yaw |
number |
Horizontal rotation (degrees) |
pitch |
number |
Vertical rotation (degrees) |
world |
string |
Minecraft world registry ID |
biome |
string |
Minecraft biome registry ID |
uuid |
string |
Player UUID |
username |
string |
Player username |
Error Responses
| Status | Message |
|---|---|
403 |
Access denied / Origin not allowed |
404 |
Player not in world |
405 |
Method not allowed |
Response Format Example
{
"x": 123.45,
"y": 64.00,
"z": -789.12,
"yaw": 180.00,
"pitch": 12.50,
"world": "minecraft:overworld",
"biome": "minecraft:plains",
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"username": "PlayerName"
}
🛠️ Examples
Replace 25565 with your configured port if you changed it in the Mod Menu.
cURL
curl http://localhost:25565/api/coords
Python
import requests
response = requests.get("http://localhost:25565/api/coords")
data = response.json()
print(f"Player {data['username']} (UUID: {data['uuid']}) at X: {data['x']}, Y: {data['y']}, Z: {data['z']}")
JavaScript
fetch("http://localhost:25565/api/coords")
.then(response => response.json())
.then(data => console.log(`Player ${data.username} (UUID: ${data.uuid}) at X: ${data.x}, Y: ${data.y}, Z: ${data.z}`));
Ченджлог
0.2.0+mc26.1.2Релиз26.1.2 · 12 мая 2026 г.
What's Changed
- Port to Minecraft
26.1.2by @Sukikui in https://github.com/Sukikui/PlayerCoordsAPI/pull/37
Full Changelog: https://github.com/Sukikui/PlayerCoordsAPI/compare/v0.2.0+mc1.21.11...v0.2.0+mc26.1.2
0.2.0+mc1.21.11Релиз1.21.11 · 12 марта 2026 г.
What's Changed
- Use client snapshots and lifecycle events by @Sukikui in https://github.com/Sukikui/PlayerCoordsAPI/pull/25
- Harden local API server lifecycle by @Sukikui in https://github.com/Sukikui/PlayerCoordsAPI/pull/26
- Impose
GETas API endpoint by @Sukikui in https://github.com/Sukikui/PlayerCoordsAPI/pull/27 - Fix Gradle Groovy deprecation by @Sukikui in https://github.com/Sukikui/PlayerCoordsAPI/pull/28
- Update dependencies + remove mixins by @Sukikui in https://github.com/Sukikui/PlayerCoordsAPI/pull/29
- Add CORS Policy by @Sukikui in https://github.com/Sukikui/PlayerCoordsAPI/pull/30
- Refine local API config and CORS by @Sukikui in https://github.com/Sukikui/PlayerCoordsAPI/pull/31
Full Changelog: https://github.com/Sukikui/PlayerCoordsAPI/compare/v0.1.5+mc1.21.11...v0.2.0+mc1.21.11
0.1.5+mc1.21.11Релиз1.21.11 · 13 декабря 2025 г.
What's Changed
- Adapt chore code to Fabrics API
1.21.11+ add langs by @Sukikui in https://github.com/Sukikui/PlayerCoordsAPI/pull/20 - Set mod version to
0.1.5by @Sukikui in https://github.com/Sukikui/PlayerCoordsAPI/pull/21
New Contributors
- @dependabot[bot] made their first contribution in https://github.com/Sukikui/PlayerCoordsAPI/pull/18
- @lefant for its help
Full Changelog: https://github.com/Sukikui/PlayerCoordsAPI/compare/v0.1.4+mc1.21.3...v0.1.5+mc1.21.11
0.1.4+mc1.21.3Релиз1.21.3 · 9 ноября 2025 г.
What's Changed
- Set MC version to
1.21.3by @Sukikui in https://github.com/Sukikui/PlayerCoordsAPI/pull/16
Full Changelog: https://github.com/Sukikui/PlayerCoordsAPI/compare/v0.1.4+mc1.21.8...v0.1.4+mc1.21.3
0.1.4+mc1.21.8Релиз1.21.8 · 9 ноября 2025 г.
What's Changed
- Add codeowners and dependabot by @Sukikui in https://github.com/Sukikui/PlayerCoordsAPI/pull/9
- Add
pitchandyawto the API endpoint by @Sukikui in https://github.com/Sukikui/PlayerCoordsAPI/pull/15
Full Changelog: https://github.com/Sukikui/PlayerCoordsAPI/compare/v0.1.3+mc1.21.8...v0.1.4+mc1.21.8
0.1.3+mc1.21.8Релиз1.21.8 · 13 сентября 2025 г.
What's Changed
- Replace local default comma by dot for JSON numbers by @Sukikui in https://github.com/Sukikui/PlayerCoordsAPI/pull/7
Full Changelog: https://github.com/Sukikui/PlayerCoordsAPI/compare/v0.1.2+mc1.21.8...v0.1.3+mc1.21.8
0.1.2+mc1.21.8Релиз1.21.8 · 2 сентября 2025 г.
What's Changed
- Add
Access-Control-Allow-Originby @Sukikui in https://github.com/Sukikui/PlayerCoordsAPI/pull/5 - Update plugin version to
0.1.2by @Sukikui in https://github.com/Sukikui/PlayerCoordsAPI/pull/6
Full Changelog: https://github.com/Sukikui/PlayerCoordsAPI/compare/v0.1.1+mc1.21.8...v0.1.2+mc1.21.8
0.1.1+mc1.21.8Релиз1.21.8 · 21 августа 2025 г.
What's Changed
- Add
uuidandusernameas new API field by @Sukikui in https://github.com/Sukikui/PlayerCoordsAPI/pull/1 - Remove repeated CI
Buildrun formainbranch by @Sukikui in https://github.com/Sukikui/PlayerCoordsAPI/pull/2 - Update plugin version to
0.1.1by @Sukikui in https://github.com/Sukikui/PlayerCoordsAPI/pull/3 - Add
modrinth-auto-descaction to theReleaseworkflow by @Sukikui in https://github.com/Sukikui/PlayerCoordsAPI/pull/4
New Contributors
- @Sukikui made their first contribution in https://github.com/Sukikui/PlayerCoordsAPI/pull/1
Full Changelog: https://github.com/Sukikui/PlayerCoordsAPI/compare/v0.1.0+mc1.21.4...v0.1.1+mc1.21.8
Комментарии
Загружаем…