SpacebarBlock
Prevents accidental spacebar mashing from ruining your runs by blocking inputs for 3 seconds during level up screens, shady guy purchases, and Moai consultations. Fully multiplayer compatible!
模組介紹 作者原文
SpacebarBlock (Spam Shield)
Have you ever ruined a perfect Megabonk run because you were mashing Spacebar to jump or pushing E to interact right as a level-up screen appeared? this mod is for you.
SpacebarBlock completely intercepts the game's input engine when a menu appears, preventing accidental upgrade selections while letting you select your upgrades with the click of your mouse.
Not a fan of clicking? Wait three seconds and your inputs will automatically unlock! giving you the time you need to ponder your next upgrade, or shady man purchase.
Features
- The Anti-Spam Shield: Automatically blocks the Spacebar and E keys for 3 seconds whenever a non-whitelisted menu (like a Level Up or Shrine) appears on your screen.
- Visual UI Countdown: Displays a sleek, non-intrusive timer at the bottom of your screen so you know exactly when your keys are unlocked.
- Smart Mouse Bypass: The shield only blocks hotkeys; if you take your hand off the keyboard and click an upgrade with your mouse, the game lets it through instantly.
- Instant Chest Skip: Pressing the Spacebar while a chest is opening will instantly skip the roulette animation and give you your item.
- Flawless Multiplayer Support: 100% compatible with MegabonkTogether. This mod is entirely client-side, meaning you can use it to protect your own game even if the host doesn't have it installed.
Installation
- Ensure you have BepInEx (IL2CPP) installed for Megabonk courtesy of.
- Download or install the latest.zip file from the releases.
- Extract the SpacebarBlock.dll file into your BepInEx\plugins folder. (if manual)
- Launch the game! The mod will generate a configuration file automatically.
Configuration
After running the game once with the mod installed, a config file will be created at BepInEx\config\com.user.nospaceselect.cfg. You can open this with any text editor to customize the mod to your liking:
- Change the primary blocked key (Default: Space).
- Change the secondary blocked key (Default: E).
- Adjust the exact duration of the shield timer (Default: 3.0 seconds).
- Add or remove whitelisted menus that bypass the shield (like chests).
Compatibility
This mod hooks directly into Unity's core OnSubmit Event System, making it highly compatible with almost any other mod, including custom UI overhauls and network synchronization mods.
i love you - guarbonzo
安裝與使用 安裝:按包內說明操作
- 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
- 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
- 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
- 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。
不同模組的安裝位置差異較大,包內說明是最可靠的依據。
下面這些內容需要先安裝,否則該模組不會生效: