Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
You are viewing a potentially older version of this package.
View all versions.
Trick or Treat
Adds pumpkins randomly to all levels. Open them to get a Trick or a Treat! Have a Happy Halloween!
| Date uploaded | 9 months ago |
| Version | 1.2.4 |
| Download link | Omniscye-Trick_or_Treat-1.2.4.zip |
| Downloads | 4651 |
| Dependency string | Omniscye-Trick_or_Treat-1.2.4 |
This mod requires the following mods to function
BepInEx-BepInExPack
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2100README
Trick_or_Treat 🎃 v1.2.4 - Have a Happy Halloween!
Update 1.2 — New “Spawn Enemies” Treat/Trick
Pumpkins can now spawn enemies (vanilla or modded) using REPOLib’s catalog.
What it does
- Pumpkins appear randomly across real levels each run (host only spawns, clients mirror).
- Press E near a pumpkin to open it.
- Treats: Spawns a handful of loot from the shop pools.
- Trick: Sometimes spawns enemies around the pumpkin instead of items.
- Trick: Explodes (visual/sfx + optional damage) per your settings.
- Multiplayer: Host drives all logic; clients receive Photon events.
Requirements
- BepInEx
- REPOLib
Configuration
A config file is generated on first run. Keep values reasonable; the host’s config rules the lobby.
[Gameplay]
ExplosionChance = 0.5 ; 0.0–1.0 — chance an opened pumpkin is a "trick" (explodes)
MinSpawnItems = 1 ; min items on a treat
MaxSpawnItems = 6 ; max items on a treat
[Spawning]
MinPumpkins = 1 ; min pumpkins per level
MaxPumpkins = 3 ; max pumpkins per level
SkipStartRoom = true ; avoid points closest to the truck
[Enemies]
EnemyChance = 0.35 ; 0.0–1.0 — chance to spawn enemies instead of items on a treat
EnemyName = ; optional name (full/partial). Empty = random from REPOLib catalog
MinEnemyCount = 1 ; min enemies to spawn
MaxEnemyCount = 2 ; max enemies to spawn
Technical details
- Netcode: Photon
RaiseEvent; host-only spawn. Clients rebuild pumpkins from events. - Scope: No pumpkins in menus/lobby. Spawning waits until the level is generated.
- FX: Local helpers for Treat/Explode; mirrored to clients via transient events.
- Items: Pulls from
ShopManagerpools; falls back toStatsManager.itemDictionary. - Interaction: Kinematic-ish, ground-snapped pumpkin with a trigger collider; "Press E" prompt uses game input.
- Compatibility: Enemy spawn uses REPOLib’s enemy registry, so modded enemies are eligible.
Credits
Created by Omniscye Stay Forever