DCMOD-TrexPredator icon

TrexPredator

Adds a high-HP roaming Trex enemy to Muck. One spawns each day, chases nearby players, chews and spits them out with blood effects, and drops 300 gold on death.

By DCMOD
Last updated a day ago
Total downloads 27
Total rating 0 
Categories Addons
Dependency string DCMOD-TrexPredator-0.1.3
Dependants 0 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack_Muck-5.4.1101 icon
BepInEx-BepInExPack_Muck

BepInEx pack for Muck. Preconfigured and ready to use.

Preferred version: 5.4.1101

README

Trex Predator for Muck

Adds a roaming T. rex enemy to Muck using the local Trex model source from the Park Wilds workspace.

Behavior

  • Spawns one Trex when the world is first ready, then attempts to spawn one new Trex per in-game day.
  • Trexes roam randomly around the map until a player gets close.
  • Trexes have 5000 HP by default.
  • When close, the Trex grabs, chews, damages, sprays blood particles, then spits the player away.
  • Killing a Trex grants 300 gold. If direct gold reflection does not match the installed Muck build, a temporary gold pickup is spawned as a fallback.

All tuning lives in BepInEx/config/local.muck.trexpredator.cfg after the first run.

Build

On a machine with Muck installed:

.\scripts\build.ps1 -MuckDir "C:\Program Files (x86)\Steam\steamapps\common\Muck"

The script expects BepInEx under Muck\BepInEx. Use -BepInExDir if it is somewhere else.

Asset Packaging

The full Trex source folder is about 650 MB, so this mod packages only the runtime OBJ and core albedo textures by default:

.\scripts\package-assets.ps1

That creates:

package/BepInEx/plugins/assets/trex_obj/

The runtime also supports a proper Unity asset bundle. If you later build one, place it at:

BepInEx/plugins/assets/Trex.assetbundle

The asset bundle path is preferred over the OBJ fallback.

Thunderstore Install

After a successful build, import DCMOD-TrexPredator-0.1.3.zip through Thunderstore Mod Manager or r2modman:

  1. Open the Muck profile.
  2. Open settings.
  3. Choose the local mod import option.
  4. Select DCMOD-TrexPredator-0.1.3.zip.

The zip keeps Thunderstore metadata at the package root: manifest.json, README.md, CHANGELOG.md, and icon.png. The runtime payload is under BepInEx/plugins so r2modman's Muck install rules preserve the nested assets folder beside MuckTrexMod.dll.

Manual Install

After a successful build, copy the contents of package/BepInEx/plugins into a folder under the active profile's BepInEx/plugins, preserving:

BepInEx/plugins/DCMOD-TrexPredator/MuckTrexMod.dll
BepInEx/plugins/DCMOD-TrexPredator/assets/...

Notes

The plugin uses reflection for player damage, day detection, and gold reward because the local workspace does not include Muck's assemblies. The code also includes fallback click damage on the Trex collider so it can still be killed if Muck's weapon-hit path does not send damage messages to custom objects.