# LootRoll

A fair rolling system for loot distribution in Minecraft parties. When mobs die, players in a party can roll for dropped items.

### Getting Started

#### Step 1: Install Dependencies

* **Required**: [PacketEvents](https://github.com/retrooper/packetevents)
* **Party System**: [Parties](https://www.spigotmc.org/resources/parties-an-advanced-parties-manager.3709/) or [MMOCore](https://www.spigotmc.org/resources/mmocore.72310/)

Optional: MythicMobs, MMOItems, Vault

#### Step 2: Install LootRoll

1. Download the latest jar file
2. Place it in your `plugins/` folder
3. Start your server

#### Step 3: Configure

Edit `plugins/LootRoll/config.yml`:

```yaml
party-system: "parties"
roll-distance: 100.0
roll-time: 30
```

#### Step 4: Create Loot Configuration

Create a file in `plugins/LootRoll/drops/` (e.g., `zombie.yml`):

```yaml
zombie:
  min-drops: 1
  max-drops: 2
  loot:
    - vanilla{item=rotten_flesh} 2-5 .9
    - vanilla{item=iron_sword} 1 .1
```

#### Step 5: Reload and Test

1. Run `/lootroll reload`
2. Kill a zombie in a party
3. Players can roll for the dropped items

### How It Works

1. Mob dies → loot is generated
2. Item drops (hidden from players)
3. Party members roll using `/roll` or `/greed`
4. Highest roll wins
5. Winner receives the item automatically

### Quick Commands

* `/roll` - Roll for an item (priority)
* `/greed` - Greed roll (lower priority)
* `/pass` - Pass on an item
* `/lootroll reload` - Reload configuration


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ney.gitbook.io/docs/lootroll.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
