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.
Can you provide the game version for the v2.1 file ?
hi you can talk how to install, because i downloaded the file but i don't know what to do.
what is the url?
Is it possible to hide the overview that you see in-game? When I get a block like: "INFESTED_CRACKED_STONE_BRICKS", I get a huge menu through my screen!
Trying to get this to work... I type in the start command, it clears player inventory, gives 16 pork, and says, "Starting Game ..." but then nothing happens.
Am I missing something here?
In reply to freesum1:
Hey!
Yes that's probably because you're downloading and using BlockShuffle v1.0 which is pretty shitty.
I released BlockShuffle v2.0 yesterday. It is currently under review here, on bukkit. That's why you can't see it. However you can download it from my Github releases - BlockShuffle v2.0
It's far better and has no stupid bugs (hopefully)
Happy Playing! :)