Skip to content

Conversation

@mmvanheusden
Copy link
Contributor

Description

Adds LevitationTweaks, with a REMOVE and UNCP mode.
UNCP mode is designed to by default fully abuse poor checks in Updated-NoCheatPlus and might also work in legacy NCP (not tested).
The REMOVE mode has a unique feature that reapplies the effect when the module is disabled before the (server-sided) levitation effect runs out, as most clients just remove the effect which causes desynchronization. It is currently implemented using a time comparison, but on servers with poor TPS this may cause issues so this needs to be looked at

Code is functional but not yet refactored

Showcase:
https://youtu.be/Vi9CGH3xkBU

@mmvanheusden mmvanheusden added the feature Suggests or adds a new feature label May 27, 2025
@github-actions github-actions bot added triage Requires labelling or review and removed feature Suggests or adds a new feature labels May 27, 2025
REMOVE("Remove"), UNCP("NCP New")
}

private var capturedEffect: StatusEffectInstance? = null
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a lazy updatable that updates the effect on demand to avoid mutating states, see the utils


private var capturedEffect: StatusEffectInstance? = null
private var wearOffTime: LocalDateTime? = null
private var canMove = false
Copy link
Collaborator

@emyfops emyfops May 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this could be a getter

@mmvanheusden mmvanheusden force-pushed the feature/antilevitation branch from 927f92d to cc53490 Compare May 30, 2025 08:52
@Avanatiker Avanatiker closed this Sep 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

triage Requires labelling or review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants