Repository navigation
feat: add experimental teleport failsafe with configurable farming scope - #170
Open
mc3545dada wants to merge 1 commit into
Open
mc3545dada wants to merge 1 commit into
mc3545dada wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Adds an experimental Teleport failsafe under Modules → Failsafes → Teleport, with the existing Stop / Ignore / Custom action system and a default-on Only During Farming toggle.
The check observes server player-position packets on the game thread, before vanilla applies the new position. It resolves absolute and relative coordinates using Minecraft's own
PositionMoveRotation.calculateAbsolute, then compares the destination with the current client position. Ordinary client movement alone does not trigger it. Pure rotation-only packets with zero displacement are ignored; this does not replace the existing Rotation failsafe.Detection scope and exclusions
hypot(dx, dz)and must be greater than the horizontal limit./warp garden,/plottp,/tptoplot,/hub,/lobby, and/visit. Therefore, manually executing/warp gardenis not a positive test for this failsafe.Settings and tuning
Experimental status and network limitations
This feature is experimental. Its accuracy depends strongly on network latency and server/client synchronization. High latency, jitter, or packet loss/stalls can lead to delayed updates and larger server corrections, which this threshold-based detector may mistake for an unexpected teleport. The same position-packet mechanism is used for legitimate corrections and teleports; the detector cannot reliably identify the server's intent.
If false positives occur under poor network conditions, manually increase the relevant horizontal/vertical limits, and increase Teleport Settle Time when the false positive follows a requested warp. Adjust the parameter that matches the observed problem rather than raising everything indiscriminately. These changes reduce sensitivity and create a tradeoff: smaller unexpected movements may be missed, and longer settle windows leave more time unmonitored. Stable high-latency / packet-loss behavior is not guaranteed.
Validation
git diff --checkpassed.