Allay & Vex Conversion
Transforming Allays into Vexes
The process of transforming these creatures is quite straightforward to execute. First, you need to give the allay any item to hold. Then, while holding the Shift key, right-click on the creature using an Ominous Bottle - this will apply the Bad Omen effect to it. All that remains is to wait about four minutes until the effect wears off, after which the allay will transform into a vex.
Reverse Transformation of Vexes into Allays
The reverse process requires more dexterity. You need to throw a splash potion of regeneration and weakness at the vex, and you must do this quickly enough. Then start feeding the creature amethyst shards. With each feeding, three outcomes are possible: successful transformation, the creature's death, or a situation where the vex chokes and loses half a heart of health.
Additional Features
Allays leave behind particle trails that can be stopped by having them hold an Echo Shard or by applying the Bad Omen effect. To remove any effects from an allay, simply use a Milk Bucket while holding Shift and right-clicking. The modification adds two new game rules allowing you to enable or disable creature transformation and visual particle effects. Interestingly, vexes obtained through transformation are unarmed but retain their hostility.