Megabonk
You are viewing a potentially older version of this package. View Latest Version
Install

Details

Date Uploaded
3 months ago
Downloads
1.1K
Size
35KB
Dependency string
guarnecessities-SpacebarBlock-3.0.1

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

  1. Ensure you have BepInEx (IL2CPP) installed for Megabonk courtesy of thunderstore.
  2. Download or install the latest .zip file from the releases.
  3. Extract the SpacebarBlock.dll file into your BepInEx\plugins folder. (if manual)
  4. 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

Thunderstore development is made possible with ads. Please consider making an exception to your adblock.