Auto-collects all XP on a timer by calling the game's PickupManager.PickupAllXp().
Started out as a project to try and convert China1's Instantcollect mod from Melonloader to BepinEX frameworks. As it turns out I have no idea what I'm doing, so this is instead a ground up re-write. Instead of instantly teleporting XP to the player, this mod essentially calls the same function that the magnet shrine calls every 5 seconds (This is configurable). You can find China1's probably much better written and decidedly original Melonloader variant here: https://thunderstore.io/c/megabonk/p/China1/InstantCollect
Unzip so that the structure looks like:
BepInEx/
plugins/
InstantCollect_Port.dll
manifest.json
icon.png
README.md
CHANGELOG.md
Launch the game once to generate the config: BepInEx/config/gobo.megabonk.instantcollect.cfg.
Behavior.IntervalSeconds — seconds between auto-collects (default: 5.0)Resolve.PickupManagerTypeName — leave as PickupManager unless your build differsDebug.DebugLog — verbose logsDelete BepInEx/plugins/InstantCollect_Port.dll.