Skip to content

Conversation

@Wide-Cat
Copy link
Collaborator

Type of change

  • Bug fix
  • New feature

Description

  • The projectile simulator is now perfectly accurate apart from a handful of edge cases
  • Most of the bugs should be fixed
  • Now predicts piercing arrows (only for held crossbows) and projectiles getting deflected (breeze, shield, world border)
  • Added a new setting to the Trajectories module to skip rendering the first few ticks of the path for better visibility

Related issues

closes #4772
closes #4765
closes #2332

How Has This Been Tested?

local testing

Checklist:

  • My code follows the style guidelines of this project.
  • I have added comments to my code in more complex areas.
  • I have tested the code in both development and production environments.

known issues:
- accurate mode seems broken
- if the projectile spawns in water the drag isn't calculated properly - discrepancy between vanilla updating the water state and us checking the entities position
- fix the simulator thinking projectiles will collide with you when they shouldn't
- make Trajectories render the arrow path when you hold an uncharged bow
- add an option to skip rendering the first few ticks of a path for better visibility
@Wide-Cat Wide-Cat marked this pull request as ready for review December 28, 2025 21:48
@Wide-Cat Wide-Cat merged commit 90d52f4 into master Dec 28, 2025
1 check passed
@Wide-Cat Wide-Cat deleted the projectile-simulator-improvements branch December 28, 2025 22:31
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.

Trajectories hand preview option [Suggestion] Make trajectories module predict piercing crossbow shots

2 participants