Creates Drops [Gelo]

Seasonal crate drops for Folia & Paper 1.21+ (Mining, Woodcutting & Fishing) with anti-exploit tracking, custom effects, GUI editor, and 5 languages.

# ❄️ 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.

Creates Drops [Gelo] Team

profile avatar
  • 7
    Followers
  • 5
    Projects
  • 30.4K
    Downloads