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
34KB
Dependency string
guarnecessities-SpacebarBlock-2.0.2

# 🛡️ Advanced Spacebar Blocker

**Built for the Megabonk community**

Ever panic-mashed Spacebar mid-combat and accidentally selected the wrong upgrade, bought something from the Shady Guy you didn't want, or blew through a shrine without reading it?

This mod fixes all of that, intelligently.

---

## 🚫 What This Mod Does

Instead of permanently disabling your keyboard, this mod uses a smart **"Anti-Spam

Shield"** system that absorbs accidental Spacebar presses the moment a menu opens,

while keeping everything fast and responsive.

- **Level Up screens** — The first Spacebar press after the menu opens is absorbed.

Press space again to confirm intentionally.

- **Shady Guy** — Same Anti-Spam Shield. No more accidental purchases.

- **Charged Shrines** — Protected. You have to deliberately press Spacebar a second time to confirm.

- **Chests** — Fully whitelisted. Spacebar instantly skips animations and grabs your loot as fast as ever, with full banish control preserved.

- **Mouse clicks** — Always work instantly on every menu, no restrictions.

- **All other UI** (pause menu, main menu, etc.) — Completely unaffected.

---

## ⚙️ How It Works

When a popup menu (Level Up, Shrine, Shady Guy) appears:

1. If Spacebar is pressed, the mod **absorbs the first press** and waits.

2. Once you physically **release** the Spacebar, the shield is primed.

3. Pressing Spacebar **a second time** confirms your selection intentionally.

Chests use Megabonk's native ChestWindowUi system and are **never blocked** —

your fast chest skipping and banishing work exactly as intended.

---

## 🛠️ Configuration

A config file is automatically generated at:

BepInEx/config/com.user.nospaceselect.cfg

| Setting | Default | Description |

|---|---|---|

| BlockedKey | Space | The key to apply the Anti-Spam Shield to |

| AllowedMenus | chest,treasure,chestwindowui | Menus that are never blocked |

If a future game update adds a new menu you want to allow or block, just edit the

AllowedMenus value — no recompiling needed!

---

## 📦 Compatibility

- ✅ **Client-sided** — Only you need this installed

- ✅ **Multiplayer safe** — Works perfectly in lobbies with others

- ✅ **Compatible with native Skip Chest Animation setting**

- ✅ **BepInEx IL2CPP** — Windows x64

---

*Courtesy of prod.guardian (aka guarbonzo) — Enjoy! 🎉*

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