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:
/casino setpoint 1
Now to the right and enter the command:
/casino setpoint 2
Now it remains to put a sign somewhere nearby. Watch on it and enter the command:
/casino install
Commands
Description
Command
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!
For what
Permission
Gives all mode access to the player
fun.casino.*
Gives the player permission to play this mode
fun.casino.play
Main config (config.yml)
Casino enable:true#If "false", this mode will not be availableCasino victory chance:10.0#Chance to win for every spinCasino start price:1000.0#When you click on the sign, this price will be charged from the player’s balanceCasino use items to start instead of money:false#If "true", then you need to set items that can be used to start the mode instead of moneyCasino title enable:true#Will the title be displayed when you win?Casino title fade in time:10#In ticksCasino title stay time:40#In ticksCasino title fade out time:10#In ticksCasino fireworks:#Victory animations. You can set 1 and more animations. Or set [] to disable - 'SALUT_3'Casino sign text:#Text for inactive/active mode - '&6╔════════╗' - '&5⭐ &d&lCASINO&r &5⭐' - '&6Price: &e&l%price%&6$' - '&6╚════════╝'
Mode config (casino.yml)
# ╔══════════════════════════════╗# ║ MATERIAL/СUSTOM MODEL DATA ║# ╚══════════════════════════════╝Casino moving blocks: - 'DIAMOND_BLOCK/0' - 'IRON_BLOCK/0' - 'DIAMOND_ORE/0' - 'COAL_ORE/0' - 'GLOWSTONE/0' - 'SAND/0' - 'GOLD_BLOCK/0' - 'LAPIS_BLOCK/0' - 'BLUE_GLAZED_TERRACOTTA/0' - 'LIME_GLAZED_TERRACOTTA/0' - 'MELON/0' - 'OBSIDIAN/0' - 'PRISMARINE/0' - 'PURPUR_BLOCK/0'Casino items to run a game: [] #Set by command# If block type is not set.Casino rewards:Drop mode:MONEYMoney reward:3000.0Items reward: [] #Set by commandCommand reward: []# If one of these blocks hits, it will be processed according to these scenarios. You can add your own or delete.Casino rewards DIAMOND_BLOCK:Drop mode:MONEYMoney reward:3000.0Items reward: [] #Set by commandCommand reward: []Casino rewards IRON_BLOCK:Drop mode:MONEYMoney reward:3000.0Items reward: [] #Set by commandCommand reward: []Casino rewards DIAMOND_ORE:Drop mode:MONEYMoney reward:3000.0Items reward: [] #Set by commandCommand reward: []Casino rewards COAL_ORE:Drop mode:MONEYMoney reward:3000.0Items reward: [] #Set by commandCommand reward: []Casino rewards GLOWSTONE:Drop mode:MONEYMoney reward:3000.0Items reward: [] #Set by commandCommand reward: []Casino rewards SAND:Drop mode:MONEYMoney reward:3000.0Items reward: [] #Set by commandCommand reward: []Casino locations: [] #Set by command
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:
Command reward:
- eco give %player% 1000
- say Cool