Megabonk
Install

Details

Last Updated
First Uploaded
Downloads
879
Likes
0
Size
77KB
Dependency string
StudioTennitus-BeeBlocker-1.0.0
Dependants

Categories

BeeBlocker (MEGABONK)

Quick summary: A BepInEx mod that prevents bees from spawning by intercepting EnemyManager.SpawnEnemy.
If the incoming spawn looks like a Bee, the mod replaces it with a Slime (preferred) or blocks the spawn if no non-bee fallback is known yet.

Install

  1. Copy BeeBlocker.dll to BepInEx/plugins/.
  2. Launch the game.

How it works (short + dirty)

  • Harmony prefix runs on both EnemyManager.SpawnEnemy overloads.
  • Uses reflection to detect “Bee” via enum-like fields, name/label strings, or the Unity asset name.
  • Caches the first non-bee seen and a preferred "Slime" entry if present.
  • On bee spawn:
    • If Slime cached → swap to Slime.
    • Else if any non-bee cached → swap to that.
    • Else (first ever spawn and it’s a bee) → block spawn to keep bees out.
  • Logs replacements/blocks to help with debugging.
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.