Carry Mechanics (0.0.0-beta.42)
Curse Maven Snippet
What's new
v0.0.0-beta.42 — First-person rendering, hand-anchored block, jump lock, real crouch pose
Fix
- First-person rendering: the carried block was not rendered at all when looking through the local player's own view. Added a new render hook on
ItemInHandRendererso the carried block is now visible in first person. - Floating block / shoulder pop in third person: the carried block was drawn twice by two separate, uncoordinated render paths (one duplicating the other), each using a fixed offset from the player's bounding box height instead of the model's hand bone. This caused the block to float above the head and jump onto the shoulder when the camera angle changed. Removed the duplicate draw path and anchored the remaining one to the player model's hand.
- Jumping while carrying: players could still jump while carrying a block, mob, or another player. Jumping is now fully cancelled while carrying, both on the client input and on the server.
- Crouch pose not visible: the crouched pose while carrying was only set on the render state's
posefield, which the player model's animation does not read. The actualisCrouchingflag used by the humanoid animator is now also set, so the crouched pose is visible in third person for both the carrier and other players observing them.
Technical Changes
ItemInHandRendererMixin(new) — injects intoItemInHandRenderer.renderHandsWithItemsto draw the carried block in first person.CarriedBlockRenderer(new) — shared helper that resolves and submits the carried block's model, used by both the first-person and third-person render paths.CarryingItemRenderLayer— now anchors the block to the hand viaPlayerModel.translateToHand(...)instead of a fixed offset fromboundingBoxHeight.LivingEntityRendererMixin— removed the duplicatesubmit()block-draw injection; now only forces the crouch pose (poseandisCrouching) onextractRenderState.AvatarExtractorMixin— now also setsisCrouchingalongsideposefor the local/other-player avatar render state.LivingEntityMixin(new) — cancelssetJumping(true)andjumpFromGround()while the player is carrying something.
All Relations
- All Relations
- Embedded Library
- Optional Dependency
- Required Dependency
- Tool
- Incompatible
- Include
This mod has no related projects