Examples on how to add custom item effects to tetra, commits break down how it's done into steps.
Adds a dodge effect which gives entities holding an item with the effect in its main hand a chance (equal to the effect level) to dodge incoming attacks. Adds a sword hilt improvement (named Wind Blessing) which adds the item effect.