Skip to content

Instantly share code, notes, and snippets.

@zribe
zribe / Triangulate location of player via the locator bar waypoints in Minecraft.md
Last active August 18, 2025 01:08
Triangulate location of player via the locator bar waypoints in Minecraft.

The locator bar provides the current direction to any player we want. We can even identify which player corresponds to which waypoint, since the waypoint UUID is just the first 32 bits of the full UUID (the first 8 characters). This means that with a simple mod, you can reliably target a specific player.

EDIT: A simple plugin which obfuscates the uuid of the waypoints, fixes the issue where we can find out which waypoint belong to whom. https://www.spigotmc.org/resources/waypointobfuscator.128111/

How do you find the exact location of someone?

By triangulation.

All you need is the 2d direction vector provided from waypoint, then take another reading from a location alot more far away (in my testing, you really do have to move a significant amount, you might have good accuracy at close distances but when you start going at like 1k+, you have to start moving alot). Using the X and Z coordinates of both points, you can apply triangulation to solve for the X and Z coordinates of the target player.

using System;
public class C {
public static bool NumCheck(int full, int target) {
while (full > 0) {
if ((full%10) == target) {
return true;
}
full = full / 10;
}
@zribe
zribe / delete.py
Last active April 4, 2024 08:27
Pterodactyl Panel - Remove all servers on a node
# MIT License
#
# Copyright (c) 2024 ZribeDev
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions: