Magical Boomerang

The Magical Boomerang is an item from the Extra Utilities 2 mod which functions both as a tool and a ranged weapon.

When held in the player's hand, the boomerang may be thrown by right-clicking. It will travel in a straight line from the player until it either reaches its max range or hits an object or entity. It will then automatically return to the player, passing through walls if necessary. The boomerang will also pick up any loose items in its path and bring them back to the player.

When the boomerang strikes a mob or player, it deals damage to it. Its effect as a weapon can be modified by both enchantments and potions.

By default, the boomerang has no durability and will not break with use.

Applying Potions
When placed in a crafting grid with any Lingering Potion, the boomerang will gain the effect of that potion and apply it to any living entity it strikes. The duration of the effect will be half that of the original potion.

When given a potion effect, the boomerang gains a durability bar which decreases with use. When the durability bar is exhausted, the potion effect is removed and will need to be re-applied.