PlayerCoordsAPI

Lightweight Fabric mod exposing locally MC player coords through HTTP API

Редакция NLZONE · 2 мин чтения · 0 просмотров
PlayerCoordsAPI
Скачать PlayerCoordsAPI1.21.11 – 26.3 · с официальной страницы: modrinth.com
Перейти к загрузке

Что это

Lightweight Fabric mod exposing locally MC player coords through HTTP API

  • Тип: мод
  • Загрузчик: fabric, quilt
  • Версии Minecraft: 1.21.11 – 26.3
  • Скачиваний на Modrinth: 1 728

Подробно

A lightweight Fabric mod that exposes your Minecraft player coordinates via a local HTTP API.

[](https://modrinth.com/mod/playercoordsapi) [](https://modrinth.com/mod/playercoordsapi)

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.

- 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 Origin header

1. Install Fabric Loader for a supported Minecraft version 2. Download the latest playercoordsapi-x.x.x+mcx.x.x.jar from the releases page 3. Place the jar in your .minecraft/mods folder 4. Launch Minecraft with the Fabric profile

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 Origin header are handled - How requests with a CORS Origin header are handled

Requests with an Origin can be handled in three different modes: - Allow all - Local origins - Whitelist

In Whitelist mode, you can configure each allowed origin with a scheme, host/IP, and optional port.

| Endpoint | Method | Description | |---------------|-----------------|----------------------------------------------------------| | /api/coords | GET, OPTIONS | Returns the player's current coordinates and world infos |

| 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 |

| Status | Message | |--------|---------------------| | 403 | Access denied / Origin not allowed | | 404 | Player not in world | | 405 | Method not allowed |

Как установить

Скачайте файл на официальной странице ниже и положите его в папку mods (для модов) или plugins (для плагинов) вашего сервера или клиента. Для модов нужен совместимый загрузчик. Версия должна совпадать с версией Minecraft.

Текст подготовлен автоматически из описания на Modrinth и ждёт проверки редакцией.

Редакция NLZONE

Пишем о серверах, модах и играх, в которые играем сами. Нашли ошибку — напишите нам, исправим.

Комментарии 0

Комментарии к этому материалу отключены.

Читайте также