Player Uploader
作者:MinecraftMS
A simple mod that allows you to send the host player's coordinates to a specified HTTP server, with configurable reporting interval and server address in the configuration.
介绍
中文介绍正在准备中,下面暂时显示原文。
A lightweight mod
that uploads the player’s current position to an HTTP server (default: 127.0.0.1:5000). The reporting interval and server address are fully configurable.
Here is a Python code example (the Flask library is required).
from flask import Flask, request, jsonify
app = Flask(__name__)
@app.route('/api/player_position', methods=['POST'])
def receive_position():
data = request.get_json()
for name, pos in data.items():
print(f"📍 {name}: X={pos['x']:.1f}, Y={pos['y']:.1f}, Z={pos['z']:.1f}")
return jsonify({"status": "ok"}), 200
if __name__ == '__main__':
app.run(host='0.0.0.0', port=5000)
This will output the player’s coordinates to the console.
常见问题
Player Uploader 支持哪些 Minecraft 版本?
Player Uploader 支持 Minecraft Java 版 1.20.1,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
Player Uploader 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅客户端。
评论
登录后评论和评分