Closed Leomelonseeds closed 2 months ago
The AbstractArrow class wasn't added until the 1.14 API so this will need some version compatibility changes for older versions. A version check with NMSUtil.getVersionNumber to switch between using Arrow and AbstractArrow depending on the server version should work.
I added support for pre-1.14 versions. Unfortunately I don't have a test setup for pre-1.14 server, but the feature still works fine on 1.20.
Thank you!
Vanilla clients render critical particles on arrows that are shot from crossbows or fully charged bows. This can interfere with projectile trails and make them look unclean. I have added 2 options to fix this:
disable-crit-particles
: Disables vanilla critical particles and only render the projectile trailcritical-only
: Requiresdisable-crit-particles: true
. Only render projectile trails on arrows when they are critical. This effectively replaces the critical particles with the custom projectile trail.Aside from adding particles in vanilla, critical arrows also do more damage. Because this feature works by setting all arrows
setCritical(false)
, an additional listener forProjectileHitEvent
restores the criticality and thus the damage behavior. These are the only 2 effects of critical arrows as per the Wiki.Both features have been tested and verified working, and damage behaves as expected to vanilla values.