![[IMG]](//proxy.spigotmc.org/e4dca927362f4d518d40491237c073ec995590f0/68747470733a2f2f6170692e636f64656c6c612e61692f6170692f696d616765732f34623635323333373064633438633439623432316461386430393732376562612e706e67)
DISCLAIMER: THIS PLUGIN WAS MADE USING CODELLA IN LESS THAN AN HOUR. IT'S AN ADVANCED AI FOR MINECRAFT PLUGINS.
https://codella.ai
CodellaCrates is a powerful and highly configurable Minecraft crates plugin that allows server owners to create unlimited, unique crate types with custom rewards, permissions, and animations. Each aspect of the plugin is designed to be easily managed through intuitive configuration files.
Features
-
Unlimited Crate Types: Create as many different crates as you want, each with its own configuration file.
-
Fully Configurable: Customize every detail, including crate items, keys, GUI design, reward chances, and messages.
-
Reward Variety: Define rewards that give players items with custom names, lore, and enchantments, or run console commands.
-
Preview System: Players can shift-right-click a crate block or left-click a crate item to preview its possible rewards.
-
Engaging Animations: A visually appealing spinning animation when opening a crate to enhance the player experience.
-
Holograms: Display customizable holograms above placed crate blocks to attract players.
-
Item-Based & Block-Based: Give crates and keys as items, or place them as physical blocks in the world.
-
Permission Control: Set specific permissions for opening each crate type and for using admin commands.
-
Easy Management: Reload configurations on the fly without needing to restart the server.
Commands
The main command for this plugin is
/crates. You can also use the aliases
/crate and
/codellacrates.
|
/crates help | Shows the plugin's help message. | codellacrates.command.help |
|
/crates list | Lists all available crate types. | codellacrates.command.list |
|
/crates give <player> <crate> <key/crate> [amount] | Gives a player a crate item or a crate key. | codellacrates.command.give |
|
/crates reload | Reloads all plugin configurations and crates. | codellacrates.command.reload |
Permissions
|
codellacrates.command.help | Allows a player to use the /crates help command. |
|
codellacrates.command.list | Allows a player to use the /crates list command. |
|
codellacrates.command.give | Allows a player to use the /crates give command. |
|
codellacrates.command.reload | Allows a player to use the /crates reload command. |
|
codellacrates.admin.break | Allows an admin to break a placed crate block. |
|
codellacrates.crate.<crate_id> | Permission required to open a specific crate. |
Note: The permission to open a crate is defined in its individual configuration file (e.g.,
plugins/CodellaCrates/crates/example.yml).
Configuration
The plugin's configuration is split into several files for easy management.
config.yml
This is the main configuration file for the plugin.
Code (YAML):
# Prefix for all plugin messages.
message-prefix
:
"&8[&bCodellaCrates&8] "
### `messages.yml`
This file contains
all the messages sent by the plugin, allowing for full customization and translation.
Crate Configuration (`plugins/CodellaCrates/crates/`)
All crate types are defined in `.yml` files within this directory. The name of the file (e.g., `example.yml`) becomes the crate's unique ID.
Here is a breakdown of the
example.yml configuration:
Code (YAML):
# The display name of the crate, used in messages and GUIs.
display-name
:
"&bExample Crate"
# The permission node required to open this crate.
permission
:
"codellacrates.crate.example"
# The physical item for the crate block.
crate-item:
material
:
"CHEST"
name
:
"&b&lExample Crate"
lore
:
-
"&7This is a special crate!"
-
""
-
"&eLeft-Click &7to preview."
-
"&eRight-Click &7to open."
enchanted
: true
# The key item required to open this crate.
key:
material
:
"TRIPWIRE_HOOK"
name
:
"&bExample Crate Key"
lore
:
-
"&7The key for the Example Crate."
enchanted
: false
# Settings for the opening animation GUI.
gui:
title
:
"&bOpening Example Crate..."
size
: 27
# Hologram that appears above the placed crate block.
hologram:
enabled
: true
lines
:
-
"&b&lExample Crate"
-
"&eClick to open!"
# A list of all possible rewards from this crate.
rewards:
'diamond-sword'
:
# A unique ID for the reward
chance
: 15.0
# The probability of winning this reward.
display-item
:
# The item shown in the preview and animation GUIs.
material
:
"DIAMOND_SWORD"
name
:
"&bEpic Diamond Sword"
item
:
# The actual item given to the player.
material
:
"DIAMOND_SWORD"
name
:
"&bEpic Diamond Sword"
enchantments
:
-
"DAMAGE_ALL:5"
-
"FIRE_ASPECT:2"
commands
:
# Commands to execute when this reward is won.
-
"broadcast &e{player} &fhas won an &bEpic Diamond Sword&f!"
Creating a New Crate
1. Navigate to the
plugins/CodellaCrates/crates/ directory.
2. Create a new .yml file (e.g.,
vote.yml). The file name will be the crate's ID (`vote`).
3. Copy the contents of
example.yml into your new file as a template.
4. Customize the settings, rewards, and items to your liking.
5. Save the file and run
/crates reload in-game. Your new crate is now ready to be used!
![[IMG]](//proxy.spigotmc.org/938118ac38955cb3236b1ec70ec016352bc0fbbb/68747470733a2f2f63736c2e6f72672f7465656e63616d702f77702d636f6e74656e742f75706c6f6164732f73697465732f31322f323032322f30312f646973636f72642e706e67)