**XiyusLootBox** is an advanced lottery system plugin developed for Minecraft Spigot servers. It provides a CSGO-style loot box experience with animated lottery features, supporting custom loot pools, item wear levels, probability weighting systems, and many other advanced functionalities.
## ⭐ Core Highlights
### Immersive Loot Experience
- **Smooth Animations**: Simulates a real spinning wheel, from fast scrolling to slow stopping
- **9-Slot Interface Design**: Clean and intuitive lottery interface
- **Instant Feedback**: Displays results immediately after the animation ends
### CSGO-Style System
- **5 Wear Levels**: Factory New → Battle-Scarred
- **Dynamic Durability**: Automatically adjusts item durability based on wear levels
- **Rarity Colors**: Different colors for different rarity tiers
### Flexible Probability System
- **Weighted Distribution**: Supports precise decimal probability control
- **JSON Configuration**: Easy to edit and manage
- **Real-Time Calculation**: Dynamic probability wheel selection algorithm
### Key Technical Features
- **NBT Data Storage**: Identifies loot bag items via NBT tags
- **Asynchronous Task Handling**: Animations run without blocking the main thread
- **Memory Optimization**: Smart animation task management
- **Type Safety**: Full generic type support
- **Exception Handling**: Comprehensive error management
## Features
### Player Functions
- ✅ Right-click loot bags to start looting
- ✅ Watch beautiful scrolling animations
- ✅ Obtain items with wear-level attributes
- ✅ View loot history
### One-Click Installation
1. Download `xiyusLootBox-1.0.jar`
2. Place in `plugins/` directory
3. Restart the server
4. Run `/lootbag give <player> default 1`
5. Right-click the loot bag to start looting!
### Configuration Example
```bash
# Create a new loot pool
/lootpool create epic_weapons
# Edit a loot pool
/lootpool edit epic_weapons
# Give to all online players
/lootbag give @a epic_weapons 1
```
**Experience XiyusLootBox today and bring new loot fun to your server!**