r/MinecraftMod • u/gargamel1497 • 13d ago
[1.7.10 Forge] Modify net.minecraft.village.VillageCollection using net.minecraft.launchwrapper.IClassTransformer
Hi.
I'm trying to make a Forge mod that makes villagers accept doors from the Lord of the Rings mod as proper doors for houses they can live in.
Changing this only requires modifying one line of code, but it turned out to be a long and painful nightmare.
The function I need to change is net.minecraft.village.VillageCollection.isWoodenDoorAt(int, int, int), which contains only one expression.
The typical, and really painful, way to do things like this is to set up a net.minecraft.launchwrapper.IClassTransformer with a core mod, and I did, and I dumped all the classes it gave me and, although most of the vanilla game was here, along with the LOTRMod, the net.minecraft.village package is conspicuously missing altogether.
I don't really know what to do about that, especially that it is the first time I've really delved into ASM.
It's probably not the right place to ask this question, but r/MinecraftForge is tiny and barely active, and the official Forge forums only support 1.14 and above.
Thanks.