This game depends on my plugin GameBox!
- Tested Minecraft Versions:
- Source Code:
Combine Gems and gain points. This game is based on Candy Crush.
This game depends on my plugin GameBox. It is one of many inventory games for which GameBox provides a neat GUI and lots of customization.
Take a look at the GameBox page for the other games
For each game mode you can configure:
GemCrush is a game about crushing Gems and getting points for it. To destroy gems you have to combine them in rows of three or more. You can switch two gems by clicking them. For the gems to change places they have to be next to each other and they have to complete at least a row of 3 after switching.
The title of the inventory will constantly tell you how many moves you have left and how many points you got so far.
Try to make as many points with each move, as possible. The best is to create special gems.
To create a bomb form a 'T-shape' out of one gem type.
Bombs will explode automatically and destroy all surrounding gems. Giving you max 100 points with default values (20p bomb, 10p per gem; can be changed in the configuration file).
The game aims at providing full configuration in combination with GameBox. The configuration file of GemCrush allows for the creation and customization of different game modes.
- The button (item, name and lore)
- The number of different gems in the game
- Whether bombs are enabled or disabled
- Rewards depending on the score a player achieved!
- Money rewards if economy is enabled (Vault + economy plugin needed)
- Token rewards which can be exchanged in the Token shop included in GameBox (this basically means you can reward with items and permissions and so on)
Additionally there is a lot of possible configuration about the game in general.
- Define the language file. You can either use one of the default files, write your own file or use the always up-to-date english messages. The language file has to be specified in the configuration file.
- You can customize all the gems and add/remove some if you want to
- Define gems with higher values
- Define gems with higher chances beeing picked for a game
Code (YAML):# ----------------------------------------------------------------------------------------#
# GemCrush config #
# this plugin depends on GameBox! It will not work without it.
# name of the language file (in the folder 'language')
# the default.yml file is overwritten on every server restart! This means you will have to use the other files
# to customize the messages, but since i am adding messages regulary in updates
# You should use the default file if you just want to have the up to date english default messages
# define the Material and data for the button (format: 'material:data')
# display name of the button
# lore of the button
- "&1It's raining gems..."
displayName: "&1It's raining gems"
- "&4Moves: &220"
- '&4Gems: &28'
- '&4Bombs: &2true'
- '&4Cost: &45'
- '&3&lTop list is activated!'
# number of different gems in a normal game
# This number HAS TO BE equal or smaller then the number of gems defined in the section normalGems below
# 8 or 7 are good numbers. 7 is easier and the game has to shuffle less but 8 is a bit more challenging
# enable/disable bombs for this game
# slot of the button in the gui
# be careful to not use the same twice ;)
displayName: "&1So much &l&epling"
- "&4Moves: &210"
- '&4Gems: &24'
- '&4Bombs: &2true'
- '&4Cost: &410'
displayName: "&1The cheaper &l&epling"
- "&4Moves: &210"
- '&4Gems: &24'
- '&4Bombs: &4false'
- '&4Cost: &45'
# use the same key as the game you want to display the top list for
# for that button 'saveStats' must be true (see above)
displayName: "&cTop list"
- "&3Compare your GemCrush skills with others"
# inventory title of the top list (%player% and %game%)
inventoryTitle: " &1It's raining gems &rTop List"
# Lore of the skulls in the inventory. Use %rank% for the rank and %time% for the time in 'mm:ss'
- '&6Rank:&1 %rank%'
- '&6Score:&1 %score%'
# time in ticks (20 ticks = 1 second) between two gem movements
# this is time each gem needs to fall down one row
# time in ticks (20 ticks = 1 second) between switching two gems and destroying the matched ones
# customise bombs here
# they are spawned if you combine gems to the following kind of forms
# x x x x x x x
# x x x x x
# x x x
# ticks until the bomb explodes (starts counting AFTER all gems fell down and nothing else can break)
- '&4Caution: &6explosive!'
# if you want you can change the sound volume here
# requires vault and an economy plugin
# to pay out the rewards from section 'onGameEnd' economy.enabled AND onGameEnd.pay have to be true
# if economy.enabled is true players will pay the cost when starting a game
# players with bypass permission do not have to pay. Here you can set whether they also do not get any rewards.
# all keys have to be integers otherwise they will be ignored and a warning will be printed in the console
# money is only paid if economy is enabled
# You can add as many intervals as you want to. The order of the intervals doesn't matter
# the given reward/messages/commands/broadcasts will always be used if the game is finished with a score between the key and the
# next higher key. For the highest key the interval goes to infinity
# You can add a money-reward with money: x
# use %player% for the players name and %score% for the score
# use 'Material:data' or 'ID:data'
# Some materials can not be displayed in an inventory, just test everything after changing
# You are advised to use different materials.
# The display names have to be different for the game to work!
# Add as many gems as you want the game will choose random ones for every round
# use & for colors
# optional custom number of points per destroyed gem of this type
# the default is 10 and is used if this option is not set
# optional probability for this gem to be used
# default is 1 and is used if this option is not set
# This is NOT the probability for the gem to be used to fill an empty slot in the game
# this probability is used when the game decides which normal gems to use for the game
If you do not want to use GameBox you can play with the old independent 1.x.x versions (and miss some great features).
If you like my inventory games you can also take a look at Minesweeper and Battleship or express your happiness with a small donation
- more special gems (fish and so on)
- Campaign with prebuild levels and tasks
- Game with infinite moves but timelimit (new gamemode with GameBox)
Please be friendly in your reviews Contact me if you want any features added to the plugin
♦♢ GemCrush ♢♦ [for GameBox] 3.0.0
Inventory game based on Candy Crush
- Update for GameBox v2 Mar 31, 2018
- Compatibility for 1.8 problems with too long inventory titles Sep 21, 2017
- Support for GameBox reload command Jun 7, 2017