The magnet provided by Kibe is fine, unfortunately there's no way to have it disabled in a certain region in order to allow in-world processing to take place. From what I can see, Ring of Attraction is the only mod that has this functionality on fabric in 1.18.
https://www.curseforge.com/minecraft/mc-mods/ring-of-attraction-fabric
The magnet provided by Kibe is fine, unfortunately there's no way to have it disabled in a certain region in order to allow in-world processing to take place. From what I can see, Ring of Attraction is the only mod that has this functionality on fabric in 1.18. https://www.curseforge.com/minecraft/mc-mods/ring-of-attraction-fabric