π²Casino
In this mode, the player needs to knock out 3 identical figures. A specific reward can be set for each block material. For example, one reward for 3 diamond blocks, another for 3 earth blocks.
The scrolling continues for a couple of seconds and gradually stops at each block.


Installation
Place 3 blocks horizontally in a row.
Move the cursor to the left corner of this raw and enter the command:
Now to the right and enter the command:
Now it remains to put a sign somewhere nearby. Watch on it and enter the command:
Commands
View mode commands
/casino help
You need to set the points of the 3x1 field. Look at the lower block. Enter the command to set point 1. Then to the right and the command to point 2
/casino setpoint 1 /casino setpoint 2
After setting the points, stare on the sign and enter the command
/casino install
Adds a block in hand to the casino spin
/casino addblock
Adds an item to your hand as a prize when you win. You need to specify the drop chance. Be sure to change the drop type in the config for this mode.
/casino additem <chance>
With this command you can set an item in your hand with which the player can start the game. You can set many items! Be sure to allow the game to be started by the item in the general config!
/casino addstartitem
Clears the list of such items that can be used to start the game
/casino clearstartitems
Permissions
You must use a permission manager like LuckPerms which supports .* permissions notation. Bukkit doesn't support this notation by default!
Gives all mode access to the player
fun.casino.*
Gives the player permission to play this mode
fun.casino.play
Main config (config.yml)
Mode config (casino.yml)
You can change the type of reward. Just change it in the config above. Here are what they are:
1) MONEY - Gives only money
2) ITEM - Gives only one item with some chance
3) ALLITEMS - Gives all items in list
4) COMMAND - Executes commands. Example:
Last updated