In 1.20.1, using Rats mod 8.1.3 and forge 47.4.9
I've made a goldfarm above the nether roof (nether wastes), where the spawning surfaces are all Magma. There's some glass and bottomslabs of stuff, too...pretty standard goldfarm fare.
Zombie piglin spawn rates are negatively impacted by devilrats popping up too.
- You'd mentioned on the discord you weren't sure if they should spawn on magma, and to put an issue in; this is for that.
- You mentioned they don't go for rat attractors, not sure whether you wanted this mentioned here, too, for consideration.