H

Minecraft Crates Plugin (Paper/Spigot 1.21.11)

Create a custom crates plugin similar to popular server crate plugins.

Crate Types

The plugin should include the following crate tiers:

Iron Crate Quartz Crate Gold Crate Emerald Crate Diamond Crate

Each crate must have:

Its own crate block/item Its own key item Its own reward pool Crate Editor System

Admins can edit rewards using a Shulker Box system.

Command /crates editor <crate>

Examples:

/crates editor iron /crates editor diamond

When opened:

A INVENTORY GUI appears containing a shulker box inventory.

Admins can place reward items inside.

Each item can have its own chance value.

Reward Chance System

Admins can set reward chances.

Command /chance <number>

Example:

/chance 25

Requirements:

Chance values are from 0-100.

The chance is stored on the item currently being held.

The item keeps its chance value when placed into a crate editor.

When a crate is opened, rewards are selected using these chances.

Higher chance = more likely reward

Kodari can make mistakes. Review important code before using.
Files

No files in this session

Code