GlobblerFriendlyFireFix
Client-side mod that prevents friendly fire from Globbler bullets by restricting damage to NonPlayer targets only.
| Date uploaded | 11 months ago |
| Version | 1.0.0 |
| Download link | Sparroh-GlobblerFriendlyFireFix-1.0.0.zip |
| Downloads | 191 |
| Dependency string | Sparroh-GlobblerFriendlyFireFix-1.0.0 |
This mod requires the following mods to function
BepInEx-BepInExPack_Mycopunk
BepInEx pack for Mycopunk. Preconfigured and ready to use.
Preferred version: 5.4.2403README
GlobblerFriendlyFireFix
A client-side BepInEx mod for MycoPunk that prevents friendly fire from Globbler bullets.
Description
This mod patches the GlobblerBullet.Detonate method to prevent friendly fire by restricting Globbler bombs to only damage NonPlayer targets. Instead of the default behavior that can harm other players in multiplayer, this modification ensures explosions only affect enemies and environmental objects while preserving all visual and sound effects.
Getting Started
Dependencies
- MycoPunk (base game)
- BepInEx - Version 5.4.2403 or compatible
- .NET Framework 4.8
- HarmonyLib (included via NuGet)
Building/Compiling
-
Clone this repository and customize the following:
- Rename namespace and class names appropriately
- Modify PluginGUID to be unique (format: "author.modname")
- Update PluginName and PluginVersion
- Add your specific Harmony patches and functionality
-
Add any additional NuGet packages or references needed for your mod
-
Open the solution file in Visual Studio, Rider, or your preferred C# IDE
-
Build the project in Release mode to generate the .dll file
Alternatively, use dotnet CLI:
dotnet build --configuration Release
Installing
For distribution as a completed mod:
Option 1: Via Thunderstore (Recommended)
- Update
thunderstore.tomlwith your mod's specific information - Publish using Thunderstore CLI or mod manager
- Users download and install via Thunderstore Mod Manager
Option 2: Manual Distribution
- Package the built .dll, any config files, and README
- Users place the .dll in their
<MycoPunk Directory>/BepInEx/plugins/folder
Note: This template is not meant to be installed directly - customize it first for your specific mod functionality.
Executing program
Once customized and built, the mod will automatically load through BepInEx when the game starts. Check the BepInEx console for loading confirmation messages.
Mod Development Structure
- Plugin.cs: Main plugin class with Awake method and Harmony initialization
- thunderstore.toml: Publishing configuration for Thunderstore
- CSPROJECT.csproj: Build configuration with proper references
- Resources: Icon and documentation placeholders
Help
- First time modding? Check BepInEx documentation and MycoPunk modding resources
- Harmony patches failing? Ensure method signatures match the game's IL
- Dependency issues? Update NuGet packages and verify .NET runtime version
- Thunderstore publishing? Update all metadata in thunderstore.toml before publishing
- Plugin not loading? Check BepInEx logs for errors and verify GUID uniqueness
Authors
- Sparroh (MycoPunk mod collection maintainer)
- funlennysub (original BepInEx template)
- @DomPizzie (README template)
License
- This project is licensed under the MIT License - see the LICENSE.md file for details
CHANGELOG
Changelog
1.0.0 (2025-11-26)
Features
- Patch GlobblerBullet.Detonate method to prevent friendly fire
- Restrict Globbler bomb damage to NonPlayer targets only
- Preserve original explosion visual, sound, and screenshake effects
- Client-side modification compatible with multiplayer
Tech
- Initial mod template setup with BepInEx framework
- Add MinVer for version management
- Add thunderstore.toml configuration for mod publishing
- Add LICENSE.md and CHANGELOG.md template files
- Basic plugin structure with HarmonyLib integration
- Placeholder for mod-specific functionality