Skip to content

Conversation

@PsyGuy007-sys
Copy link

Expose the configured despawn lifetime for AbstractArrow.

@PsyGuy007-sys PsyGuy007-sys requested a review from a team as a code owner October 25, 2025 16:52
@github-project-automation github-project-automation bot moved this to Awaiting review in Paper PR Queue Oct 25, 2025
@lynxplay
Copy link
Contributor

lynxplay commented Nov 1, 2025

Hi and welcome to paper 🥳

Thank you for your PR!
However for now I'll be closing this and asking you to open a feature request for further discussion on what you are trying to achieve here.
The method in its current form is pretty broken to the point that I don't think a PR makes sense yet.
At the core of this lies the fact that an arrow has differing despawning times depending on its inGround state or not.

First, an arrow in the air would respect paper's despawnTime/TTL setting
It would also respect the https://github.com/PaperMC/Paper/blob/main/paper-server/patches/sources/net/minecraft/world/entity/projectile/AbstractArrow.java.patch#L33 measure (to be removed in favour of TTL tho)
Once in ground the method you created would probably work but you can see how this does definitely not work for in-air arrows or arrows in statis chambers.

Throw us an issue and detail the "why" you need such a method and we can work on a solution in the issue :)

@lynxplay lynxplay closed this Nov 1, 2025
@github-project-automation github-project-automation bot moved this from Awaiting review to Closed in Paper PR Queue Nov 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

2 participants