♦♢ GemCrush ♢♦ [for GameBox] 3.0.0

Inventory game based on Candy Crush

  1. Nikl
    Tested Minecraft Versions:
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    Source Code:
    https://github.com/NiklasEi/GameBox_GemCrush
    This game depends on my plugin GameBox!


    gemcrush.png

    Combine Gems and gain points. This game is based on Candy Crush.
    Have fun :)





    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 :)




    about.png

    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.

    [​IMG]

    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).





    configuration.png

    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.

    For each game mode you can configure:
    • The button (item, name and lore)
    • The number of different gems in the game
    • Whether bombs are enabled or disabled
    • Cost
    • 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
    langFile
    : 'default.yml'


    gameBox
    :
      mainButton
    :
       # define the Material and data for the button (format: 'material:data')
        materialData
    : "EMERALD"
        # display name of the button
        displayName
    : "&3GemCrush"
        # lore of the button
        lore
    :
       - ""
        - "&1It's raining gems..."
      gameButtons
    :
        normalGame
    :
          materialData
    : "EMERALD"
          displayName
    : "&1It's raining gems"
          lore
    :
         - ""
          - "&4Moves
    : &220"
          - '&4Gems
    : &28'
          - '&4Bombs
    : &2true'
          - '&4Cost
    : &45'
          - ''
          - '&3&lTop list is activated!'
          moves
    : 20
          # 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
          differentGems
    : 8
          # enable/disable bombs for this game
          bombs
    : true
          # slot of the button in the gui
          #   be careful to not use the same twice ;)
          slot
    : 0
          cost
    : 5
          saveStats
    : true
        lessMovesAndLessGemTypes
    :
          materialData
    : "nether_star"
          displayName
    : "&1So much &l&epling"
          lore
    :
         - ""
          - "&4Moves
    : &210"
          - '&4Gems
    : &24'
          - '&4Bombs
    : &2true'
          - '&4Cost
    : &410'
          moves
    : 10
          differentGems
    : 4
          bombs
    : true
          slot
    : 5
          cost
    : 10
        materialdatatest
    :
          materialData
    : "nether_star"
          displayName
    : "&1The cheaper &l&epling"
          lore
    :
         - ""
          - "&4Moves
    : &210"
          - '&4Gems
    : &24'
          - '&4Bombs
    : &4false'
          - '&4Cost
    : &45'
          moves
    : 10
          differentGems
    : 4
          bombs
    : false
          slot
    : 6
          cost
    : 5
      topListButtons
    :
       # use the same key as the game you want to display the top list for
        #   for that button 'saveStats' must be true (see above)
        normalGame
    :
          materialData
    : "diamond_block"
          displayName
    : "&cTop list"
          lore
    :
         - ""
          - "&3Compare your GemCrush skills with others"
          slot
    : 9
          # 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'
          skullLore
    :
         - ''
          - '&6Rank:&1 %rank%'
          - '&6Score:&1 %score%'


    game
    :
     # time in ticks (20 ticks = 1 second) between two gem movements
      #   this is time each gem needs to fall down one row
      ticksBetweenMovement
    : 3
      # time in ticks (20 ticks = 1 second) between switching two gems and destroying the matched ones
      ticksBetweenSwitchAndDestroy
    : 7
      # 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
      #
      bombs
    :
       # ticks until the bomb explodes (starts counting AFTER all gems fell down and nothing else can break)
        ticksTillExplosion
    : 15
        pointsOnBreak
    : 20
        displayName
    : '&cBomb'
        lore
    :
       - '&r'
        - '&4Caution
    : &6explosive!'
      playSounds
    : true
      # if you want you can change the sound volume here
      soundVolume
    : 0.4



    # 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
    economy
    :
      enabled
    : false


    onGameEnd
    :
      pay
    : true
      restrictions
    :
       # players with bypass permission do not have to pay. Here you can set whether they also do not get any rewards.
        playersWithBypassDontGetRewards
    : true

      scoreIntervals
    :
       # 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
        0
    :
          money
    : 0
        100
    :
          money
    : 10
        200
    :
          money
    : 20
        300
    :
          money
    : 30
        400
    :
          money
    : 40
        500
    :
          money
    : 50



    # 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
    normalGems
    :
      gem1
    :
        material
    : 'Diamond'
        # use & for colors
        displayName
    : "&dDiamond"
        # optional custom number of points per destroyed gem of this type
        #   the default is 10 and is used if this option is not set
        pointsOnBreak
    : 10
        # 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
        probability
    : 2
      gem2
    :
        material
    : 'EMERALD'
        displayName
    : '&2Emerald'
        pointsOnBreak
    : 10
        probability
    : 1
      gem3
    :
        material
    : 'BLAZE_POWDER'
        displayName
    : '&eSparks'
        pointsOnBreak
    : 10
        probability
    : 1
      gem4
    :
        material
    : 'clay_ball'
        displayName
    : '&7Pearl'
      gem5
    :
        material
    : 'gold_block'
        displayName
    : '&6Gold'
      gem6
    :
        material
    : 'iron_block'
        displayName
    : '&fIron'
      gem7
    :
        material
    : 'bone'
        displayName
    : '&5Fossil'
      gem8
    :
        material
    : 'apple'
        displayName
    : '&cApple'
      gem9
    :
        material
    : 'anvil'
        displayName
    : '&8Anvil'
      gem10
    :
        material
    : 'structure_void'
        displayName
    : '&2Wheel'
      gem11
    :
        material
    : 'double_plant'
        displayName
    : '&6Amber'

     





    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 [​IMG]


    To Do
    - 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 :p Contact me if you want any features added to the plugin
    Necro, MOAN, DampfWaffel and 9 others like this.

Recent Reviews

  1. fakuover
    fakuover
    5/5,
    Version: 2.3.1
    ME GUSTA PERO PODRÍAN CREAR OTRO MINI JUEGO COMO ESCAPA DEL LABERINTO , UNO DE PESCA , OTRO DE SALVAR A LOS ALDEANOS DE LOS CREEPER (3 CABEZAS DE ALDEANOS EN UN RINCON Y CABEZAS DE CREEPER Q SE ACERCAN Y TIENES Q MATARLOS CON UN CLICK) Y UNO MAS DE TRE-X (COMO CUANDO NO TIENES INTERNET EN GOOGLE)

    IGUAL DESPUÉS DE TODO ESTAN PIOLAS TODOS LOS JUEGOS
    1. Nikl
      Author's Response
      Thank you for the review :)
  2. Highest
    Highest
    5/5,
    Version: 2.3.1
    Great plugin! I have been using it on my hub for a long time now, I will not update to 2.1.2+ becaue it uses gamebox and I do not like this plugin, I will stick with 2.1.1
    1. Nikl
      Author's Response
      Thank you for the review :)
      Can you PM me what you don't like at GameBox? I am interested in that and am currently writing GameBox v2.
  3. earthfinder
    earthfinder
    5/5,
    Version: 2.1.2
    Really good Gadget to give players in the hub.
    I am impressed that you made it for free and not a payed plugin!
    Definitely 5 stars, Would even give 6 if I could :D
    1. Nikl
      Author's Response
      Thanks for the 6 stars ;)
  4. Ajneb97
    Ajneb97
    5/5,
    Version: 2.1.1
    Working excellent, no bugs, fun, and very original. 5 Stars, I have checked your other inventory games and they are very interesting, but still I liked more this one :)
    1. Nikl
      Author's Response
      Thanks!
      I am working an two new ones ;)
  5. AndyYu
    AndyYu
    5/5,
    Version: 2.1.0
    Wonderful plugin with no bug! Players all have fun playing it! 5 stars!!!!!
    btw can I advertise this to a Chinese Minecraft forum MCBBS? I'll translate the config into Chinese and let more people know it! Of course the download link stays on this page.
    1. Nikl
      Author's Response
      Thank you!

      I'll pm you about mcbbs. I already have an account there but my mandarin is non existing so I ran into a few problems xD
  6. Jechlo
    Jechlo
    5/5,
    Version: 2.0.0
    Das Plugin ist super doch leider geht das mit dem Geld nicht beim mir kostet es nicht und man bekommt auch nichts wen man score hat wer cool wen das gefix wird danke :)
    1. Nikl
      Author's Response
      Vielen Dank für die Bewertung :)
      Ich melde mich wegen den Kosten
  7. Necro
    Necro
    5/5,
    Version: 2.0.0
    Hello. Can you upload source in Github? I really want use in my server but need little customize. I love this plugin xddd
    1. Nikl
      Author's Response
      Pm me :)
      I will open source my minigames at some point. But not yet.
  8. x0V3R10RDx
    x0V3R10RDx
    5/5,
    Version: 1.2.2
    Perfect update and listened to my request to change the Sound Volume so that poor people didn't have to have their ears popped with loud noises as all the gems fall down.

    5 Stars.
    1. Nikl
      Author's Response
      Thank you
  9. x0V3R10RDx
    x0V3R10RDx
    5/5,
    Version: 1.2.1
    Loved the plugin and enjoyed the new update, works perfectly however be careful with your volume, as when running the game the sounds are rather loud

    (Could be tuned! ;) )
    1. Nikl
      Author's Response
      Version 1.2.2 has a configurable volume of the sounds ;)

      Thank you for your review
  10. BertMitPferd
    BertMitPferd
    5/5,
    Version: 1.2.0
    Very nice minigame vor Lobbys :) love it.
    Only thing is, the toplist wont chance after a new highscore is set, for example: old score was 100, new ist 210, /gctop still shows 100 even after a reload of the plugin. Im using spigot 1.11.2, no errors in the logfile
    1. Nikl
      Author's Response
      Thank you for your review!

      I ll contact you about the toplist problem.