Compatibility
Minecraft: Java Edition
1.20.1
Platforms
Supported environments
Client-side
Links
Tags
Creators
Details
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.


