Home›Java›Mods›CrateKeys
cratekeysbanner.png ​

cratekeysdesc.png
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.


cratekeyscommands.png
/Cratekey - Basic command.
/Cratekey Give <Player> <CrateName> <Amount> - Gives a Player a CrateKey.
/Cratekey Set <CrateName> - Sets a crate when looking at a chest.


cratekeysconfig.png
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%

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

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.

Explore more