Skip to content

Conversation

@Jalvaviel
Copy link
Contributor

  • Feat: Added Rotation as a Hud element and yaw locking for ElytraFly

Description

Addresses the last two suggestions by @beanbag44

Checklist Before Submitting

To ensure the quality and maintainability of your PR, confirm the following before submission:

  1. Code adheres to the project's style guide and conventions. ✅
  2. All tests pass, including newly added tests. ✅
  3. Documentation has been updated to reflect any new features or changes. ✅
  4. Your PR is limited to a single purpose, avoiding unrelated changes. ✅

import com.lambda.module.tag.ModuleTag
import com.lambda.threading.runSafe

object Rotation : HudModule (
Copy link
Collaborator

Choose a reason for hiding this comment

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

Make sure to follow the codebase's styling. Don't put a space between the class and the constructor arguments

runSafe {
val yaw = player.yaw
val pitch = player.pitch
val text = "($yaw, $pitch)"
Copy link
Collaborator

Choose a reason for hiding this comment

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

You're gonna have to add a FormatterSettings that has all of its category hidden except the number formatting for this. Refer to the Coordinate hud module and the Formatting object to serialize tuples correctly.

@Jalvaviel Jalvaviel requested a review from emyfops January 20, 2026 17:09
@emyfops
Copy link
Collaborator

emyfops commented Jan 20, 2026

@Jalvaviel here's what I had in mind.

	private val formatter = FormatterSettings(this).apply {
		applyEdits {
			::timeFormat.edit { hide() }
		}
	}

	override fun ImGuiBuilder.buildLayout() {
		runSafe {
			val rotation = player.rotationClient.format(formatter)
			textCopyable(rotation)
		}
	}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants