(3.15.0 - 3.25.6) 1.1.0 (3.14.2 - 3.25.6) 1.0.8 (5.0.0 - 5.16.0) 2.0.0 (5.0.0 - 5.16.0) 2.1.0 (5.0.0 - 5.16.0) 2.1.1 (5.0.0 - 5.16.0) 2.1.2 (5.0.0 - 5.16.0) 2.2.0 (5.0.0 - 5.16.0) 2.2.1 (5.0.0 - 5.16.0) 2.2.2 (5.0.0 - 5.16.0) 3.1.0
Add customizable crates to your server.
Command aliases: /magiccrates
, /mc
Command | Description | Permission- |
---|---|---|
/magiccrates create |
Create a crate | magiccrates.cmd.create |
/magiccrates remove |
Remove a crate | magiccrates.cmd.remove |
/magiccrates makekey <crate_type> [amount] [player] |
Make a crate key | magiccrates.cmd.makekey |
Permission | Description | Default |
---|---|---|
magiccrates.cmd |
Access to the /magiccrates command |
OP |
magiccrates.cmd.create |
Access to the /magiccrates create command |
OP |
magiccrates.cmd.remove |
Access to the /magiccrates remove command |
OP |
magiccrates.cmd.key |
Access to the /magiccrates key command |
OP |
magiccrates.break.remove |
Permission to remove a crate by breaking it | OP |
/mc create
You can remove crates with a command:
/mc remove
You can also remove crates by breaking the crate:
You can only open crates by using a crate key. Each crate type has its own key.
You can create keys using the command /mc key <crate_type> [amount] [player]
When you have a crate key, you can open the matching crate by clicking on the crate.
Here you can see all options inside the config.yml
delay: int
Amount of ticks it will take until the opening animation starts after a player opens a crate.prefix: string
Prefix used for messages send by the pluginkey-name: string
name of the crate keys (The available options are crate
and crate_type
)types: type[]
A list of all available crate types in your server. You can add as many types as you want.Each crate type you want to add has its own unique identifier. You can choose this identifier yourself, but make sure that it is a valid array key.
<id>:
name: string
rewards: reward[]
commands: string[] # Optional
name: string
The name shown above a craterewards: reward[]
A list of all rewards inside the cratecommands: string[]
A list of commands that will always be executed when opening this type of crateA crate type can have many rewards, and you can set the rarity of each reward individually.
- name: string
item:
id: item_id
name: string # Optional
amount: int # Optional
lore: string|string[] # Optional
enchantments: # Optional
- name: string
level: int
commands: string[]
amount: int
icon: string # Optional
name: string
The name of the reward.item:
The item that will be given to the player as reward.
id: string
The minecraft ID of the item (e.g. "diamond"
or "ender_pearl"
)name: string
The custom name of the item.amount: int
The amount of the item.lore: string|string[]
The item lore.
"My lore"
or multiple lines by providing an array
e.g. ["First", "Second"]
.enchantments:
A list of all enchantments on the item.
name: string
The name of the enchantment.level: int
The level of the enchantmentcommands: string[]
A list of commands when the player gets this reward.amount: int
How many times this reward is inside the crate. This makes you able to set rarities to rewards.
1
and a reward with amount 2
, there are a total of 3
items in the
crate.
The probability that you win the first item is 1/3
and for the second item it is 2/3
.icon: string
The path/url to a texture or image. The texture/image will be displayed on the preview menu.
textures/items/<name>
for items or textures/blocks/<name>
for blocks.http://
or https://
to work.textures/blocks/wool_colored_red
.textures/
path. You can see all the textures in
the bedrock-samples resource pack.The commands that you can place in the command lists in the type or reward are the same commands as you can execute in
the console.
It is also possible to add some parameters to the commands to make them more usable. The options are:
{player}
The name of the player{crate_type}
The id of the crate type{crate}
The name of the crate type{reward}
The name of the rewarddelay: 1
types:
common:
name: "§eCommon §6Crate"
rewards:
- name: "Diamond"
item:
id: "minecraft:diamond"
name: "Diamond"
amount: 1
lore: "Diamond from a crate"
enchantments:
- name: "efficiency"
level: 1
commands:
- "msg {player} be carefull with this diamond!"
amount: 1
- name: "Dirt"
item:
id: "dirt"
amount: 2
commands: [ ]
amount: 2
commands:
- "say {player} won {reward} from a {crate_type} crate"