Skip to content

Comments

Etherwarp Zoom #2248

Open
cOnfusi0n1 wants to merge 4 commits intoFirmamentMC:mc-1.21.10from
cOnfusi0n1:etherwarp-changes
Open

Etherwarp Zoom #2248
cOnfusi0n1 wants to merge 4 commits intoFirmamentMC:mc-1.21.10from
cOnfusi0n1:etherwarp-changes

Conversation

@cOnfusi0n1
Copy link

No description provided.

Introduce smooth FOV interpolation for the Etherwarp overlay and apply it via a GameRenderer mixin. Adds new config options (smooth-zoom toggle and zoom-smoothness integer) and translations for en_us and zh_cn. Implements state and getFovMultiplier(partialTicks) to interpolate current FOV toward a target based on hit distance, resets target to normal when no hit or not sneaking, and injects into GameRenderer.getFov to multiply the returned FOV (with a safety try/catch).
@cOnfusi0n1 cOnfusi0n1 marked this pull request as draft February 8, 2026 02:47
@cOnfusi0n1 cOnfusi0n1 marked this pull request as ready for review February 8, 2026 14:07
Copy link
Collaborator

@lineargraph lineargraph left a comment

Choose a reason for hiding this comment

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

overall a really nice PR, with some minor nit picks. also not entirely sure if this RP has AI generated code in it, would be nice to get clarification either way (this is a genuine question, not an indictment or expression of preference).

Comment on lines +12 to +16
@Inject(
method = "getFov(Lnet/minecraft/client/Camera;FZ)F",
at = @At("RETURN"),
cancellable = true
)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hey, id prefer if we use @ModifyReturnValue instead of .setReturnValue, to allow better compatible with other modules also injecting in this method.

Comment on lines +22 to +23
} catch (Throwable t) {
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

while not crashing the client is good, exceptions/throwables drain performance (due to stack trace collection), so if at all possible, we should handle the exceptions in a visible way so we are made aware of the problem. in the future i would like to create functionality in ErrorUtil for a logOnce (possible with remote logging), that allows handling this nicer. for now i think it should be fine to remove the crash handler (skyblock players deserve little respect).

}
}

if (success == EtherwarpResult.SUCCESS) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

i feel like we should probably zoom in on occupied results as well? those might require fine tuning for which the smooth zoom might help

Comment on lines +142 to +145
"firmament.config.etherwarp-overlay.smooth-zoom": "平滑缩放",
"firmament.config.etherwarp-overlay.smooth-zoom.description": "当 Etherwarp 指向一个方块时启用 FOV 的平滑插值",
"firmament.config.etherwarp-overlay.zoom-smoothness": "缩放平滑度",
"firmament.config.etherwarp-overlay.zoom-smoothness.description": "FOV 插值到目标的速度(更高 = 更迅速,更低 = 更缓慢)",
Copy link
Collaborator

Choose a reason for hiding this comment

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

thanks for those translations. were those done by hand or machine assisted? generally adding other translations is not required, and i would prefer them to be done by someone with some amount of familiarity with chinese, and specifically gaming in chinese, since machine translations are always a bit weird when it comes to in-game languages. either way 谢谢。

Copy link
Member

@Kathund Kathund left a comment

Choose a reason for hiding this comment

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

Please sort translations so that the checks pass 🥺

You can sort the translations inside intellij with CTRL+SHIFT+A then run Sort Properties (or what ever it's called. You should just be able to search sort and it will come up)

@cOnfusi0n1 cOnfusi0n1 requested a review from Kathund February 20, 2026 02:28
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.

3 participants