Despawning Weapons

I created despawn weapons as a fast means of despawning entities. There is no crafting for these and they're only available in creative. These are a response to there being a number of invincible entities within these mods, which can't be killed by traditional means. These weapons will instantly despawn any entity, but doesn't give experience or drops.

Despawn Bow and Arrow
The Despawn Bow and Arrow is more for taking things out at a distance. It works in the same way as a regular bow and arrow, in that you right click to draw the bow and release to fire the arrow. The arrow has no gravity attached, so it will continue in a straight line until it hits something or despawns itself. When it hits something, entity or block, it despawns, so you can't re-pick up the arrows. It's also set to despawn after 2 seconds of flying. This is because if you miss, and it doesn't hit anything, you can end up with a lot of arrow entities in the air that can slow things down.

Despawn Snowball
The Despawn Snowball is more for taking things out at close range. It works in the same way as a regular snowball, in that if you right click and keep holding the right click, it'll continuously fire Despawn Snowballs out. The Despawn Snowballs also act like regular snowballs, in that they have gravity attached and break on impact with anything. Despawn Snowballs are more for if you've spawned a lot of invincible mobs that you no longer want around and using the bow would take a lot longer.

Warnings
This is important, do not use the Despawn Weapons against the Ender Dragon or modded bosses. The Ender Dragon is contructed by having multiple entities all tied together. When you use the Despawn Weapon, it kills just one of those entities whilst the others are left alive. This isn't supposed to happen. Due to this,''' if you use the Despawn Weapons against the Ender Dragon, it will crash your game and render your world impossible to enter again. It will break your world.'''

This will also hold true for any entity that is made of multiply entities tied together. As mods generally don't say whether their bosses are a single entity or a number of entities tied together, it would be better to just not use the Despawn Weapons against any modded bosses.

However, the Despawn Weapons will work against the Wither.