This plugin will allow you to set commands to a crate and obtain mysterious loots when using a key on the crate. When a player right-clicks the crate it runs commands for that player. This plugin is very useful for giving players items set into the config.yml. Players can open a crate with a key, you can set what you want the key to be in the config.yml, if the player doesn't have the required key they cannot obtain loot from the certain crate.
/Cratekey - Basic command.
/Cratekey Give <Player> <CrateName> <Amount> - Gives a Player a CrateKey.
/Cratekey Set <CrateName> - Sets a crate when looking at a chest.
Code (Text):
'noob':
broadcastPrefix: '&5[Tier 1]'
keyName: '&5Tier 1 Key'
keyLore:
- '&bThis key is for Tier 1 crates'
- '&cTier one is the first tier'
keyMaterial: EMERALD
crateLocations: []
prizePackages:
'1':
percent: 30
playerMessage: '&aYou opened the crate and got OK prizes!'
broadcastMessage: '&e%player%&b opened a Tier 1 crate!'
commands:
- broadcast %player% wins
- kill %player%
'2':
percent: 30
playerMessage: '&aYou opened the crate and got good prizes!'
broadcastMessage: '&e%player%&b opened a Tier 1 crate!'
commands:
- give %player% 278 1
- msg %player% Psst
'3':
percent: 40
playerMessage: '&aYou opened the crate and got worse prizes!'
broadcastMessage: '&e%player%&b opened a Tier 1 crate!'
commands:
- give %player% DIRT 1
- msg %player% Your prize sucks
'hero':
broadcastPrefix: '&4[Tier 2]'
keyName: '&5Tier 2 Key'
keyLore:
- '&bThis key is for Tier 2 crates'
- '&cTier one is the second tier'
keyMaterial: DIAMOND
crateLocations: []
prizePackages:
'1':
percent: 10
playerMessage: '&aYou opened the crate and got awesome prizes!'
broadcastMessage: '&e%player%&b opened a Tier 2 crate!'
commands:
- msg %player% &eYou are now OP!
- msg %player% Just kidding...
'2':
percent: 60
playerMessage: '&aYou opened the crate and got awful prizes!'
broadcastMessage: '&e%player%&b opened a Tier 2 crate!'
commands:
- give %player% DIAMOND 64
- msg %player% Enjoy your diamonds!
'3':
percent: 30
playerMessage: '&aYou opened the crate and got the worst prizes!'
broadcastMessage: '&e%player%&b opened a Tier 2 crate!'
commands:
- give %player% DIRT 1
- kil %player%
broadcastPrefix: '&5[Tier 1]'
keyName: '&5Tier 1 Key'
keyLore:
- '&bThis key is for Tier 1 crates'
- '&cTier one is the first tier'
keyMaterial: EMERALD
crateLocations: []
prizePackages:
'1':
percent: 30
playerMessage: '&aYou opened the crate and got OK prizes!'
broadcastMessage: '&e%player%&b opened a Tier 1 crate!'
commands:
- broadcast %player% wins
- kill %player%
'2':
percent: 30
playerMessage: '&aYou opened the crate and got good prizes!'
broadcastMessage: '&e%player%&b opened a Tier 1 crate!'
commands:
- give %player% 278 1
- msg %player% Psst
'3':
percent: 40
playerMessage: '&aYou opened the crate and got worse prizes!'
broadcastMessage: '&e%player%&b opened a Tier 1 crate!'
commands:
- give %player% DIRT 1
- msg %player% Your prize sucks
'hero':
broadcastPrefix: '&4[Tier 2]'
keyName: '&5Tier 2 Key'
keyLore:
- '&bThis key is for Tier 2 crates'
- '&cTier one is the second tier'
keyMaterial: DIAMOND
crateLocations: []
prizePackages:
'1':
percent: 10
playerMessage: '&aYou opened the crate and got awesome prizes!'
broadcastMessage: '&e%player%&b opened a Tier 2 crate!'
commands:
- msg %player% &eYou are now OP!
- msg %player% Just kidding...
'2':
percent: 60
playerMessage: '&aYou opened the crate and got awful prizes!'
broadcastMessage: '&e%player%&b opened a Tier 2 crate!'
commands:
- give %player% DIAMOND 64
- msg %player% Enjoy your diamonds!
'3':
percent: 30
playerMessage: '&aYou opened the crate and got the worst prizes!'
broadcastMessage: '&e%player%&b opened a Tier 2 crate!'
commands:
- give %player% DIRT 1
- kil %player%
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.7, 1.8, 1.9
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
CrateKeys is a free Minecraft Java mod. Compatible with Minecraft 1.7, 1.8, 1.9. Downloaded 1,831 times (via Spigot). Download it and open it directly in the game.