I'm looking to modify villagers and would like some pointers.
I'm trying to do things like adding extra nbt data to villagers but I'm not sure the best approach for this.
I've started by hooking into ServerEntityEvents.ENTITY_LOAD.register(...) but that runs every time the villager is loaded, whereas I'd like it to only run when a villager is first spawned from either worldgen or breeding.
I could just add an extra tag like "done: true" but that doesn't feel like the best way, is it?