Gradient Posted April 14 Report Posted April 14 Heya, I don't like how the interaction speed (placing blocks and items, as well as interacting with blocks like putting items into a trough) is only 4/s. I'd like to increase it to something like 10 or 20. I couldn't find a mod that could do this, nor was I able to find any moddable api to change this. Could I please have some help finding a mod that does this, or direct me to a part of the modding api that handles this?
Gradient Posted May 3 Author Report Posted May 3 Alright I figured it out. I used dnspy to look through Vintage Story's assembly and found the culprit, and patched this in. [HarmonyPatch(typeof(SystemMouseInWorldInteractions))] [HarmonyPatch("BuildRepeatDelay")] public static class BuildRepeatDelayPatch { public static void Postfix(ref float __result) { __result = Config.data.BuildRepeatDelay; } } If anyone else wants just a mod that does this, then I posted one: https://mods.vintagestory.at/placeblocksfaster
Recommended Posts