Skip to main content
Version: 1.20.4

Casino Crate

Crate:
# Type of crate -> CSGO/Casino/Cosmic/QuadCrate/QuickCrate/Roulette/CrateOnTheGo/FireCracker/Wonder/Wheel/War

# Make sure to check out the wiki for anything not explained here.
# https://docs.crazycrew.us/crazycrates/home

# See CosmicCrateExample.yml to see how the Cosmic CrateType works.
CrateType: Casino
# Name of the Inventory if a GUI crate.
CrateName: "<dark_blue>Casino Crate"
# The name of the inventory that will be in the preview GUI.
Preview-Name: "<dark_blue>Casino Crate Preview"
# Starting amount of keys when the player 1st joins.
StartingKeys: 0
# The amount of keys required to use the crate.
RequiredKeys: 0
# Max amount of crates that can be opened at once using /cc mass-open
Max-Mass-Open: 10
# If the crate shows in the /cc GUI.
# If the type is QuickCrate/CrateOnTheGo/FireCracker, They will not work as they require a Physical Crate.
InGUI: true
# Slot the item is in the GUI.
Slot: 32
# Enables/Disables the Broadcasts message when they open a crate.
OpeningBroadCast: true
# Message that is broadcast when opening the crate.
BroadCast: "%prefix%<bold><gold>%player%</bold><reset> <gray>is opening a <bold><dark_blue>Casino Crate.</bold>"
# This section is related to commands opening when a crate is opened.
opening-command:
# If the commands should be sent or not.
toggle: false
# The commands to run when the crate opens.
# Supports all placeholderapi placeholders
# Supports %prefix which returns our prefix, %player% which uses the player name
commands:
- "put your command here."
sound:
# The sound options when the animation is cycling.
cycle-sound:
# If sound should be enabled or not.
toggle: true
# The type of sound to use.
# https://jd.papermc.io/paper/1.20.6/org/bukkit/Sound.html
value: "BLOCK_NOTE_BLOCK_XYLOPHONE"
# The volume of the pitch.
volume: 1.0
# The speed of the sound.
pitch: 1.0
# The sound options when an item is clicked.
click-sound:
# If sound should be enabled or not.
toggle: true
# The type of sound to use.
# https://jd.papermc.io/paper/1.20.6/org/bukkit/Sound.html
value: "UI_BUTTON_CLICK"
# The volume of the pitch.
volume: 1.0
# The speed of the sound.
pitch: 1.0
# The sound options when a crate ends.
stop-sound:
# If sound should be enabled or not.
toggle: true
# The type of sound to use.
# https://jd.papermc.io/paper/1.20.6/org/bukkit/Sound.html
value: "ENTITY_PLAYER_LEVELUP"
# The volume of the pitch.
volume: 1.0
# The speed of the sound.
pitch: 1.0
# A default message if the prize doesn't have any Messages
# i.e. Messages: [] or the value isn't there.
Prize-Message:
- "<gray>You have won <red>%reward% <gray>from <red>%crate%."
# A default command if the prize doesn't have any commands
# i.e. Commands: [] or the value isn't there.
Prize-Commands: []
# Item the crate is in the GUI
Item: "GOLD_INGOT"
# If the crate in the main /cc GUI is glowing or not.
Glowing: false
# Name of the item in the GUI.
Name: "<bold><dark_blue>Casino Crate</bold>"
# The lore of the item in the GUI.
Lore:
- "<gray>This crate contains strange objects."
- "<gray>You have <gold>%keys% keys <gray>to open this crate with."
- "<gray>You have opened this crate: <gold>%crate_opened% times"
- "<gray>(<yellow>!<gray>) Right click to view rewards."
Preview:
# Turn on and off the preview for this crate.
Toggle: true
# How many lines the Crate Preview should have. Including Header and Bottom (Between 3 and 6)
ChestLines: 6
Glass:
# Turn the glass border in the preview on and off.
Toggle: true
# The name of the border item.
Name: " "
# The item that shows in the border. Can be glass or any other item.
Item: "GRAY_STAINED_GLASS_PANE"
tier-preview:
# Turn on and off the preview for this crate.
toggle: true
# How many lines the Tier Preview should have. Including Header and Bottom (Between 3 and 6)
rows: 5
glass:
# Turn the glass border in the preview on and off.
toggle: true
# The name of the border item.
name: " "
# The item that shows in the border. Can be glass or any other item.
item: "RED_STAINED_GLASS_PANE"
# Tier related settings only for Casino.
random:
# If the tiers should be random.
toggle: false
# The rows with pre-defined tiers.
types:
# Row 1
row-1: Basic
# Row 2
row-2: UnCommon
# Row 3
row-3: Rare
# Tiers are available in Cosmic and Casino crate types.
# The Tiers the rewards can be found in.
Tiers:
# The Config Name for the Crate
Basic:
# The in-game name of the tier.
Name: "<dark_gray>Basic Tier"
# The in-game lore of the tier.
Lore:
- "<gray>A basic tier."
# The item used for the secondary gui when you right-click for the preview.
Item: "CHEST"
# Chance of that item getting picked. It would be 80/100 chance because MaxRange is 100.
Chance: 50
# The max range that the chance will go though.
MaxRange: 100
# The slot this item will be in the secondary gui.
Slot: 20
UnCommon:
Name: "<green>Uncommon Tier"
Lore:
- "<green>An uncommon tier."
Item: "CHEST"
Chance: 35
MaxRange: 100
Slot: 22
Rare:
Name: "<dark_red>Rare Tier"
Lore:
- "<red>A rare tier."
Item: "ENDER_CHEST"
Chance: 25
MaxRange: 100
Slot: 24
PhysicalKey:
# Name of the Key.
Name: "<bold><dark_blue>Casino Crate Key</bold>"
# Lore of the Key.
Lore:
- "<gray>A special Key"
- "<gray>For a special Crate."
# The item the key is.
Item: "TRIPWIRE_HOOK"
# Makes the key look enchanted.
Glowing: true
# Settings for the holograms.
Hologram:
# Toggle on and off the holograms for the crates.
Toggle: true
# The height of the hologram above the crate.
Height: 1.5
# The distance the hologram can be seen.
Range: 8
# The background color of the hologram. It uses hex colors. This only works with CMI/FancyHolograms
# Set the color to transparent if you don't want any color.
Color: "transparent"
# The message that will be displayed above the crate.
# Note: MiniMessage or Color Codes being supported is depending on the 'holograms' plugin.
Message:
- "<bold><dark_blue>Casino Crate</bold>"
# All the prizes that can be gotten in the Crate.
Prizes:
1:
# Name of the item shown by the crate.
DisplayName: "<red>An example of a Player Head!"
# Item shown by the crate.
DisplayItem: "PLAYER_HEAD"
# The amount displayed.
DisplayAmount: 1
# The lore in the crate preview
Lore:
- "<gray>Want a player head?"
- ""
- "<bold><red>Chance: <yellow>25%</bold>"
# Tiers are available in Cosmic and Casino crate types.
# The Tiers the rewards can be found in.
Tiers:
- "Basic"
# If you do not want a lore, Set the "Lore:" to look like the line below.
# Lore: []

MaxRange: 100 # Available values: 100, 1000, 10000, 100000, 1000000, 10000000
#
# 25 is 25% if Max Range is 100
# Read more on "Chance" @ https://github.com/Crazy-Crew/Crazy-Crates/wiki/Chance-System
#
Chance: 25 # The chance out of MaxRange to win an item.

# Can be a name as well.
Player: "https://textures.minecraft.net/texture/1ee3126ff2c343da525eef2b93272b9fed36273d0ea08c2616b80009948ad57e" # Custom Texture Example.

# If you do not want a player supplied, Set the "Player:" to look like the line below.
# Player: ""

Items: # Give any item you want to the winning player & with a custom texture.
- "Item:PLAYER_HEAD, Player:https://textures.minecraft.net/texture/1ee3126ff2c343da525eef2b93272b9fed36273d0ea08c2616b80009948ad57e, Amount:1"
# If you do not want to give items, Set the "Items:" to look like the line below.
# Items: []

Commands: # You can run any plugin command here.
- "broadcast <bold><gold>%player%</bold><reset> <gray>won %reward%! WOW"
# If you do not want to send commands, Set the "Commands:" to look like the line below.
# Commands: []

Messages: # Send any message you want to the player.
- "<red>You won a <reset>%reward%!"
# If you do not want to send messages, Set the "Messages:" to look like the line below.
# Messages: []

#This allows for one time winnable prizes. If a player has one of the permissions then they will not be able to win it.
BlackListed-Permissions: []
#This allows users who have won the same prize before to get alternative prizes. They must have a BlackListed-Permission to get an alternative prize.
Alternative-Prize:
#Toggle if the prize will use alternative prizes for the blacklisted permission.
Toggle: false
Messages: []
Commands: []
Items: []
2:
DisplayName: "<bold><blue>Cheap Helmet</bold>"
DisplayItem: "GOLDEN_HELMET"
# Only works on items with durability. This will make the item appear more damaged.
# It does not set the durability but subtracts this number from the durability is 100, It subtracts 50.
# It cannot be 0.
DisplayDamage: 50
DisplayTrim:
# Available Materials: https://jd.papermc.io/paper/1.20.6/org/bukkit/inventory/meta/trim/TrimMaterial.html
Material: "QUARTZ"
# Available Patterns: https://jd.papermc.io/paper/1.20/org/bukkit/inventory/meta/trim/TrimPattern.html
Pattern: "SENTRY"
DisplayAmount: 1
Lore:
- "<gray>Win a cheap helmet."
- "<bold><gold>Chance: <red>60%</bold>"
# Tiers are available in Cosmic and Casino crate types.
# The Tiers the rewards can be found in.
Tiers:
- "Basic"
MaxRange: 100
Chance: 15
Items:
- "Item:GOLDEN_HELMET, Amount:1, Damage:50, Trim-Pattern:SENTRY, Trim-Material:QUARTZ, Name:<bold><blue>Cheap Helmet</bold>, PROTECTION_ENVIRONMENTAL:1, OXYGEN:1"
3:
DisplayName: "<bold><yellow>$1,000</bold>"
DisplayItem: "SUNFLOWER"
DisplayAmount: 1
Lore:
- "<gray>Make it rain Money."
- "<bold><gold>Chance: <red>20%</bold>"
# Tiers are available in Cosmic and Casino crate types.
# The Tiers the rewards can be found in.
Tiers:
- "Basic"
MaxRange: 100
Chance: 35
Firework: true
Commands:
- "eco give %player% 1000"
# - "lp user %player% permission set crazycrates.blacklist.basic.3" -> This is the line where you would give the user the permission.
Messages:
- "<gray>You just won <reset>%reward%."
BlackListed-Permissions:
- "crazycrates.blacklist.basic.3"
Alternative-Prize:
Toggle: true
Messages:
- "<reset> <dark_gray>[<blue>CrazyCrates<dark_gray>]: <gray>You have already won that prize, so enjoy some gold nuggets."
Commands:
- "give %player% gold_nugget 16"
4:
DisplayName: "<bold><dark_red>Warlord's Helmet</bold>"
DisplayItem: "NETHERITE_HELMET"
DisplayTrim:
# Available Materials: https://jd.papermc.io/paper/1.20/org/bukkit/inventory/meta/trim/TrimMaterial.html
Material: "REDSTONE"
# Available Patterns: https://jd.papermc.io/paper/1.20/org/bukkit/inventory/meta/trim/TrimPattern.html
Pattern: "SENTRY"
DisplayAmount: 1
Lore:
- "<gray>Win the warlord's helmet."
- "<bold><gold>Chance: <red>40%</bold>"
DisplayEnchantments:
- "PROTECTION_ENVIRONMENTAL:5"
- "DURABILITY:3"
Tiers:
- "UnCommon"
MaxRange: 100
Chance: 10
Items:
- "Item:NETHERITE_HELMET, Amount:1, Damage:25, Trim-Pattern:SENTRY, Trim-Material:REDSTONE, Name:<bold><dark_red>Warlord's Helmet</bold>, PROTECTION_ENVIRONMENTAL:5, DURABILITY:3"
5:
DisplayName: "<bold><dark_red>Warlord's Chestplate</bold>"
DisplayItem: "NETHERITE_CHESTPLATE"
DisplayTrim:
# Available Materials: https://jd.papermc.io/paper/1.20/org/bukkit/inventory/meta/trim/TrimMaterial.html
Material: "REDSTONE"
# Available Patterns: https://jd.papermc.io/paper/1.20/org/bukkit/inventory/meta/trim/TrimPattern.html
# Boots and leggings should be in rare. ( row 3 )
# Helmet and chestplate should be in UnCommon ( row 2 )
# Head/Gold/Sunflower should be in basic ( row 1 )
Pattern: "SENTRY"
DisplayAmount: 1
Lore:
- "<gray>Win the warlord's chestplate."
- "<bold><gold>Chance: <red>40%</bold>"
DisplayEnchantments:
- "PROTECTION_ENVIRONMENTAL:5"
- "DURABILITY:3"
Tiers:
- "UnCommon"
MaxRange: 100
Chance: 3
Items:
- "Item:NETHERITE_CHESTPLATE, Amount:1, Damage:25, Trim-Pattern:SENTRY, Trim-Material:REDSTONE, Name:<bold><dark_red>Warlord's Chestplate</bold>, PROTECTION_ENVIRONMENTAL:5, DURABILITY:3"
6:
DisplayName: "<bold><dark_red>Warlord's Leggings</bold>"
DisplayItem: "NETHERITE_LEGGINGS"
DisplayTrim:
# Available Materials: https://jd.papermc.io/paper/1.20/org/bukkit/inventory/meta/trim/TrimMaterial.html
Material: "REDSTONE"
# Available Patterns: https://jd.papermc.io/paper/1.20/org/bukkit/inventory/meta/trim/TrimPattern.html
Pattern: "SENTRY"
DisplayAmount: 1
Lore:
- "<gray>Win the warlord's leggings."
- "<bold><gold>Chance: <red>40%</bold>"
DisplayEnchantments:
- "PROTECTION_ENVIRONMENTAL:5"
- "DURABILITY:3"
Tiers:
- "Rare"
MaxRange: 100
Chance: 3
Items:
- "Item:NETHERITE_LEGGINGS, Amount:1, Damage:25, Trim-Pattern:SENTRY, Trim-Material:REDSTONE, Name:<bold><dark_red>Warlord's Leggings</bold>, PROTECTION_ENVIRONMENTAL:5, DURABILITY:3"
7:
DisplayName: "<bold><dark_red>Warlord's Boots</bold>"
DisplayItem: "NETHERITE_BOOTS"
DisplayTrim:
# Available Materials: https://jd.papermc.io/paper/1.20/org/bukkit/inventory/meta/trim/TrimMaterial.html
Material: "REDSTONE"
# Available Patterns: https://jd.papermc.io/paper/1.20/org/bukkit/inventory/meta/trim/TrimPattern.html
Pattern: "SENTRY"
DisplayAmount: 1
Lore:
- "<gray>Win the warlord's boots."
- "<bold><gold>Chance: <red>40%</bold>"
DisplayEnchantments:
- "PROTECTION_ENVIRONMENTAL:5"
- "DURABILITY:3"
Tiers:
- "Rare"
MaxRange: 100
Chance: 3
Items:
- "Item:NETHERITE_BOOTS, Amount:1, Damage:25, Trim-Pattern:SENTRY, Trim-Material:REDSTONE, Name:<bold><dark_red>Warlord's Boots</bold>, PROTECTION_ENVIRONMENTAL:5, DURABILITY:3"