# βοΈ GeloCreatesDrop — Seasonal Crate Drops for Folia & Paper 1.21+
**GeloCreatesDrop** is a lightweight, fully customizable seasonal crate drop plugin built from the ground up for **Folia 1.21+** and **Paper 1.21+**.
> π¬ **About this project:** I originally created this plugin for my server **deadmc.net**, and decided to release it publicly in case other server owners find it useful for their communities!
---
## β¨ Key Features
### βοΈ 3 Activity Categories (Anti-Exploit & Stackable)
- **Mining:** Natural stones, dirts, and Overworld ores can drop Mining crates.
- **Woodcutting:** Natural tree logs can drop Woodcutting crates.
- **Fishing:** Catching fish in the Overworld can drop Fishing crates.
- **100% Natural Block Protection:** Player-placed blocks are tracked per-chunk using `PersistentDataContainer` (thread-safe on Folia, zero global locks, persists across restarts, handles pistons & explosions). Optional **Silk Touch** and **Creative** bypass protection included.
- **Stackable up to 64:** Every crate item stacks up to 64 (using 1.21+ max-stack components) so they never clog players' inventories, and uses anti-forge PDC tags.
### π
Automatic Seasonal Event Calendar
The plugin automatically switches active crates based on real-world dates (starts **30 days before** each holiday and returns to the **Default Mystery Crate** **14 days after**):
- π **Christmas** (`#christmas`) — Dec 25
- π° **Easter** (`#easter`) — Automatically calculates Easter Sunday every year!
- π **Children's Day** (`#childrens_day`) — Oct 12
- π **Halloween** (`#halloween`) — Oct 31
- π¦ **Default Mystery Crate** (`#default`) — Active outside seasonal windows
- Admins can also override the calendar anytime with `/cratesdrop force <#event|auto>`.
### π Custom Opening Effects (Folia-Safe)
Every seasonal crate triggers its own unique visual & sound effect when opened:
- **Christmas:** White, green, and red fireworks (zero player damage) + snow particles.
- **Halloween:** Bats burst out and fly around (automatically despawned via `EntityScheduler`) + soul flames & smoke.
- **Easter:** Temporary rabbits + cherry petals & festive particles.
- **Children's Day:** Colorful burst fireworks + musical confetti notes.
- **Default:** Golden totem particles & treasure sounds.
### π₯οΈ Full In-Game Admin GUI & Player Menu
- **Admin Editor (`/cratesdrop gui`):**
- Sleek dark-glass HUD with centered navigation.
- Pick **Category (Mining / Fishing / Woodcutting)** → **Event** or **"In All Crates"** (shared reward pool applied to *every* crate of that category!).
- Click any item in your own inventory to add it as a reward (preserves enchants, custom names, lore, and 1.21 components).
- **Console Command Rewards:** Click the **Command Block** button to add console command rewards via chat (supports `%player_name%`, e.g. `money add %player_name% 500`).
- **Edit Crate Drop Rates In-Game:** Adjust block-by-block drop percentages, set a rate for all blocks at once, or adjust the fishing drop rate without touching YAML files.
- **Player Menu (`/cratesdrop menu`):**
- Players can browse every category and seasonal crate to see all possible rewards and the exact win percentage of each item.
### π 5 Built-in Languages + Auto-Detection
Automatically detects your server's language on first startup (via system locale/timezone or async IP lookup) and saves it to `config.yml`:
- πΊπΈ English (`en_US`)
- π§π· Portuguese (`pt_BR`)
- πͺπΈ Spanish (`es_ES`)
- π·πΊ Russian (`ru_RU`)
- π¨π³ Simplified Chinese (`zh_CN`)
All language files are generated inside `plugins/GeloCreatesDrop/lang/` and are 100% editable.
---
## βοΈ Commands
Main command: `/gelocreatesdrop` (Aliases: `/cratesdrop`, `/cratedrop`, `/gcd`)
| Command | Description | Permission |
| :--- | :--- | :--- |
| `/cratesdrop menu` | Opens the player menu to view crates & win percentages | `gelocreatesdrop.menu` *(default: true)* |
| `/cratesdrop preview [#event[:category]]` | Previews rewards inside a specific crate | `gelocreatesdrop.preview` *(default: true)* |
| `/cratesdrop status` | Shows active event, dates, and drop rates | `gelocreatesdrop.status` *(default: true)* |
| `/cratesdrop gui` | Opens the admin GUI editor (categories, drops & rewards) | `gelocreatesdrop.gui` *(default: op)* |
| `/cratesdrop give <#event[:mining\|fishing\|woodcutting]> <player\|all> [amount]` | Gives crates to a player or all online players | `gelocreatesdrop.give` *(default: op)* |
| `/cratesdrop giveall <#event[:category]> [amount]` | Gives crates to all online players | `gelocreatesdrop.giveall` *(default: op)* |
| `/cratesdrop force <#event\|auto>` | Forces a seasonal event or returns to automatic calendar | `gelocreatesdrop.force` *(default: op)* |
| `/cratesdrop reload` | Reloads configs, events, rewards, and language files | `gelocreatesdrop.reload` *(default: op)* |
### Extra Gameplay Permissions
- `gelocreatesdrop.drop` *(default: true)* — Allows receiving crate drops from mining, woodcutting, and fishing.
- `gelocreatesdrop.open` *(default: true)* — Allows opening crates.
- `gelocreatesdrop.admin` *(default: op)* — Grants all permissions.
---
## π¦ Installation
1. Download `GeloCreatesDrop-1.0.5.jar` and drop it into your server's `plugins/` folder.
2. Start your **Folia 1.21+** or **Paper 1.21+** server (Java 21 required).
3. Use `/cratesdrop gui` in-game to customize rewards, console commands, and drop chances!
---
## π€ Author & Credits
- **Developed by:** `1gelo` (Discord)
- **Originally created for:** `deadmc.net`
- **Copyright:** © 1gelo — All rights reserved.