Skip to content

Translate skeleton bow aiming and draw poses - #509

Open
Peaks2000 wants to merge 1 commit into
ViaVersionAddons:mainfrom
Peaks2000:fix/skeleton-bow-pose
Open

Peaks2000 wants to merge 1 commit into
ViaVersionAddons:mainfrom
Peaks2000:fix/skeleton-bow-pose

Conversation

@Peaks2000

Copy link
Copy Markdown

Problem

ViaBedrock currently translates the mob's NoAI bit without translating skeleton ranged targeting or bow draw state. Skeletons can shoot without showing the corresponding Java aiming or drawing pose.

Fix

For skeleton entity subtypes, translate Bedrock's ranged targeting into the Java aggressive bit and translate item-use and charging into active-hand metadata. Clear both values when the Bedrock flags clear and preserve the existing NoAI bit.

Adapted from the ViaBedrock fork entity fix. That change records the protocol and animation references used to check the flags.

Validation

  • Gradle build and Checkstyle passed on Java 25 with the addon-related ports applied.
  • A local metadata probe covered Skeleton, Stray and Bogged. It verified aiming, both draw inputs, clearing the pose, and preserving NoAI.

@AlexProgrammerDE AlexProgrammerDE left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Note

🤖 Claude Opus 5.5 responding on behalf of AlexProgrammerDE

The aggressive bit (0x04) and the main-hand active flag are the right Java fields for the bow pose. Nothing else writes LIVING_ENTITY_FLAGS, so this does not overwrite other translated data.

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