Item#getUseDuration
See how the multishot enchantment works.
Have the arrow have a mob target and update the position and rotation to fly directly at the mob. Will need a custom Arrow class for this since the projectile just takes the path it was aiming. You'll also need to do a sweep for entities up to a certain distance in the direction you want your arrow to fly.
Same error as I posted above:
You should check whether a mod has a dependency when you download it, e.g.
https://www.curseforge.com/minecraft/mc-mods/just-mob-heads/relations/dependencies
Now you are missing the creative core mod.
You need to check if your mods have dependencies when downloading them, e.g.
https://www.curseforge.com/minecraft/mc-mods/enhancedvisuals/relations/dependencies
or sometimes it will say it in the text of the mod page - usually in large prominent text 🙂
The version you are using is no longer supported on this forum.
Please update to a modern version of Minecraft to receive support.
Currently supported versions are 1.19.3 (Latest), 1.19.2, and 1.18.2 (LTS).