⚠️ ItemLib is missing a lot a features and is still in active development!⚠️
ItemLib is a datapack library that allows items to have code be ran for special actions.
You can create a item that ticks whenever it is held by a player.
give @s diamond{itemlib:{item_ticks:true, tick:"namespace:function"}}"item_ticks" has to be set to true in order for the "tick" function to be called.
WIP