Block Shuffle Minigame

The Block Shuffle Minigame


An implementation of the Block Shuffle Minigame inspired by Dream's YouTube video. When the game starts, the inventory of each player is cleared, and they are given a fixed amount of food to start off (Can be set to 0 in the config file). A random block is assigned to each player and they score a point if they find the block and stand on it before their time runs out. After a fixed number of rounds, whoever has the highest score, wins.

 

NOTE: Bukkit takes a bit of time to approve updates, so if you want the latest patch, I recommend downloading from either my Spigot page or my Github releases

 

The source code can be viewed on Github. If you want to contribute, you are welcome to make a pull request there :)

 

Available Commands


  • /blockshuffle start - Starts the game
  • /blockshuffle stop - Stops the game
  • /blockshuffle info - Shows the current game settings like total rounds, round time etc.
  • /blockshuffle add [playerName] - Adds a player to the player list
  • /blockshuffle remove [playerName] - Removes a player from the player list
  • /blockshuffle list - Returns the number of players currently in the list
  • /blockshuffle set noOfRounds [number_of_rounds] - Sets the number of rounds to be played
  • /blockshuffle set roundTime [round_time] - Sets the round time in ticks (20 ticks is 1 second)
  • /blockshuffle set foodAmount [amount_of_food_to_be_given] - Sets the initial amount of food to be given to each player. (Set to 0 to start with a clear inventory)

NOTE - All time in the plugin is measure in ticks, so set everything using this conversion : 20 ticks = 1 second. So, if you want to set the Round Time to 5 minutes, the command is -

 

/blockshuffle set roundTime 6000 (5 minutes = 300 seconds = 300 * 20 = 6000 ticks)

 

The Config File


The config.yml file can be edited to change the initial settings of the game (Attributes can be changed in-game too as can be seen from the commands above)

 

The parameters are straightforward, and do make sure to set the time in ticks.

 

You can change the blocks to be added from there, but it has to match one of the enum constants from the Material class in the Spigot API. If you are unsure, here is a comprehensive list of Materials you can add.


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    416487
  • Created
    Oct 29, 2020
  • Last Released File
    Nov 12, 2020
  • Total Downloads
    16,917
  • License

Categories

Members

Recent Files