Add grappling hook - #493
Merged
Merged
Conversation
new item in the ParCool tab, crafted from a new hook part. attack throws and releases it, holding use hauls you in, sneak pays rope out. the swing is a rope length constraint solved with substeps. the rope slides along block edges and bends around corners as you swing past them, and lets go if the line gets overstretched or overloaded. adds two ActionOption flags for abilities gated by an item rather than by the skill tree or stamina.
alRex-U
approved these changes
Aug 16, 2026
Owner
|
Thank you so much! |
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.
Adds a grappling hook item to the ParCool tab.
Controls
Swing
The rope is a length constraint solved over several substeps per tick. Contact points slide along block edges rather than snapping to corners, so the rope bends around obstacles as you swing past them and unwinds again in the order it wound on. The hook lets go if the line is overstretched or overloaded.
Momentum is kept for a short window after releasing, since Minecraft's air friction is tuned for jumps and would otherwise eat almost all of a swing's speed within a second.
Targeting
The exact crosshair ray is used when it hits something. When it misses, an assist cone is sampled and the hit closest to a good swing point is chosen. A marker shows where a throw would land, using the same prediction the throw itself uses.
Other
ActionOptionflags,needLearningandavailableWhileExhausted, for abilities gated by an item rather than by the skill tree or stamina[GrapplingHook]in the server and client configsTested on 1.19.2 with Forge 43.5.0.