GamblingDice | Casino Style Plugin icon

GamblingDice | Casino Style Plugin -----

Roll the Dice, Unlock Your Fortune: Endless Rewards Await in Minecraft!



GamblingDice Plugin Overview
GamblingDice is an innovative Minecraft plugin designed to add an exciting and configurable gambling mechanic to your server. With this plugin, players have the opportunity to "roll a dice" and receive various prizes based on the outcome. It's a fantastic way to introduce a risk-reward system that can be customized to fit any server's theme or economy.​

gamblingdice-ezgif.com-optimize.gif
imagen_2024-03-06_020227365.png

Dependencies:
Vault
Economy plugin
(like CMI, EssentialsX, etc...)

Key Features:
Dice Rolling Mechanic: Players can use a custom dice item to initiate a roll. This action is accompanied by an engaging visual effect where an armor stand simulates the dice roll, enhancing the gambling experience.


Configurable Prizes: The heart of GamblingDice lies in its flexible prize system. Server administrators can configure a wide range of rewards or penalties based on the dice outcome. Prizes can include but are not limited to in-game currency, items, potion effects, or even spawning dangerous mobs!


Editable Messages: Every message that the plugin generates, from prize announcements to error messages, is fully editable. This feature allows for complete customization to ensure that all plugin communication fits the server’s language and tone.


Hex Color Support: All plugin messages support hex color codes, enabling server administrators to customize messages with an unlimited color palette for maximum visual appeal.


How It Works:
Setup: Server administrators configure the plugin by setting up the possible dice outcomes, associated prizes, and editing the plugin messages through the config.yml file.


Rolling the Dice: Players use the dice item, triggering a visually appealing dice roll animation. The outcome of the roll is then calculated.


Prize Distribution: Based on the outcome, the plugin executes the configured action - awarding items, currency, effects, console side running commands, or spawning entities, with an announcement message being sent to the player.


Customization:
Prizes: Define a wide array of rewards, from simple item drops to complex commands, for each dice face.

Messages: Tailor every plugin-generated message to fit your server’s theme, complete with full hex color customization.


Why GamblingDice?
GamblingDice adds a layer of excitement and unpredictability to your server, encouraging players to take risks for potential rewards. It's a perfect fit for servers looking to add a fun, engaging, and fully customizable gambling system.
Config [EN]:
Code (YAML):

# Thowable dice cost
throw-cost
: 100

# Dice configuration
dice
:
  numberOfSides
: 6       # You could do a 20 sided dice for more emotion, (remember to change the headTextureID)
  name
: "<#00FF00>Magic Dice"
  lore
:
   - "<#00FF00>This is a Magic Dice"
    - "<#00FF00>that could change your destiny."
    - "<#00FF00>Cost of the Throw $100"
  # Be sure of setting a correct headtexture (default b737be222ac47f9e670636d751ce5d6ac30ddfb41b1dd5360a0ee2ccca0100cb)
  headTextureID
: b737be222ac47f9e670636d751ce5d6ac30ddfb41b1dd5360a0ee2ccca0100cb

# Awards and penalties
# Set as many you need when you configure on dice.numberOfSides
# type of prizes = money, item, spawn, effect, command, delete
awards
:
  1
:
    type
: "money"       # Type of prize
    amount
: 500         # Amount of money given
  2
:
    type
: "item"         # Type of prize
    item
: "DIAMOND"     # The name of the Item
    amount
: 1           # Give the amount of items
  3
:
    type
: "command"     # Type of prize
                        # Command run by console placeholder %player% = player that throw dice
    command
: "give %player% minecraft:diamond_sword 1"
    text
: "<#00FF00>You have won 1 Diamond Sword!"
  4
:
    type
: "spawn"       # Type of prize
    mob
: "ZOMBIE"       # Mob to spawn
    amount
: 3           # Spawn 3 zombies
  5
:
    type
: "effect"       # Type of prize
    effect
: "SPEED"     # set potion effect
    duration
: 600       # set number on miliseconds
    level
: 1
  6
:
    type
: "delete"       # delete dice and get money prize
    amount
: 10000       # money prize

# Messages
messages
:
  alreadyThrowing
: "<#FF0000>You already playing with a dice, please wait."
  createSuccess
: "<#00FF00>You have recieved a dice."
  no-balance
: "<#FF0000>You dont have enough money to throw a dice."
  outcome
: "<#FFFF00>Your dice landed on: <#FFA500>%outcome%"
  delete-item
: "<#FFA500>Magic number, your dice has dissapear."
  prize-money
: "<#00FF00>You won <#FFA500>%amount% <#00FF00>money."
  prize-no-money
: "<#FF0000>You lost <#FFA500>%amount% <#FF0000>money."
  prize-item
: "<#00FF00>You have recived <#FFA500>%amount%x <#00FF00>%item%."
  error-item
: "<#FF0000>Error al getting item."
  prize-effect
: "<#00FF00>You got effect <#FFA500>%effect% <#00FF00>for <#FFA500>%duration%<#00FF00> sec."
  prize-spawn
: "<#FF0000>It appears <#FFA500>%amount% <#FF0000>%type%."
  noPerm
: "<#FF0000>You dont have permission to run that command!"
  cannotInteractOnInv
: "<#FF0000>You cannot interact with the dice while you throw one."
  cannotDropOnThrow
: "<#FF0000>You cannot drop items while you throw a dice."

 

Config [ES]:
Code (YAML):

# Costo de lanzamiento del dado
throw-cost
: 100

# Configuración del dado
dice
:
  numberOfSides
: 6       # Podrías hacer un dado de 20 caras para más emoción, (recuerda cambiar el headTextureID)
  name
: "<#00FF00>Dado Mágico"
  lore
:
   - "<#00FF00>Este es un Dado Mágico"
    - "<#00FF00>que podría cambiar tu destino."
    - "<#00FF00>Costo del Lanzamiento $100"
  # Asegúrate de establecer una textura de cabeza correcta (default b737be222ac47f9e670636d751ce5d6ac30ddfb41b1dd5360a0ee2ccca0100cb)
  headTextureID
: b737be222ac47f9e670636d751ce5d6ac30ddfb41b1dd5360a0ee2ccca0100cb

# Premios y penalizaciones
# Configura tantos como necesites cuando configures en dice.numberOfSides
# tipo de premios = money, item, spawn, effect, command, delete
awards
:
  1
:
    type
: "money"       # Tipo de premio
    amount
: 500         # Cantidad de dinero otorgada
  2
:
    type
: "item"         # Tipo de premio
    item
: "DIAMOND"     # Nombre del objeto
    amount
: 1           # Cantidad de objetos a dar
  3
:
    type
: "command"     # Tipo de premio
                        # Comando ejecutado por la consola, el marcador de posición %player% = jugador que lanza el dado
    command
: "give %player% minecraft:diamond_sword 1"
    text
: "<#00FF00>¡Has ganado 1 Espada de Diamante!"
  4
:
    type
: "spawn"       # Tipo de premio
    mob
: "ZOMBIE"       # Mob a spawnear
    amount
: 3           # Spawnear 3 zombies
  5
:
    type
: "effect"       # Tipo de premio
    effect
: "SPEED"     # establecer efecto de poción
    duration
: 600       # establecer duración en milisegundos
    level
: 1
  6
:
    type
: "delete"       # eliminar dado y obtener premio en dinero
    amount
: 10000       # premio en dinero

# Mensajes
messages
:
  alreadyThrowing
: "<#FF0000>Ya estás jugando con un dado, por favor espera."
  createSuccess
: "<#00FF00>Has recibido un dado."
  no-balance
: "<#FF0000>No tienes suficiente dinero para lanzar un dado."
  outcome
: "<#FFFF00>Tu dado cayó en: <#FFA500>%outcome%"
  delete-item
: "<#FFA500>Número mágico, tu dado ha desaparecido."
  prize-money
: "<#00FF00>Ganaste <#FFA500>%amount% <#00FF00>dinero."
  prize-no-money
: "<#FF0000>Perdiste <#FFA500>%amount% <#FF0000>dinero."
  prize-item
: "<#00FF00>Has recibido <#FFA500>%amount%x <#00FF00>%item%."
  error-item
: "<#FF0000>Error al obtener el objeto."
  prize-effect
: "<#00FF00>Obtuviste el efecto <#FFA500>%effect% <#00FF00>por <#FFA500>%duration%<#00FF00> seg."
  prize-spawn
: "<#FF0000>Aparecen <#FFA500>%amount% <#FF0000>%type%."
  noPerm
: "<#FF0000>¡No tienes permiso para ejecutar ese comando!"
  cannotInteractOnInv
: "<#FF0000>No puedes interactuar con el dado mientras estas jugando con uno."
  cannotDropOnThrow
: "<#FF0000>No puedes soltar el dado mientras los usas."
 
Permissions
Code (Text):

commands:
  gamblingdice:
    description: Principal command of the plugin.
    usage: /<command> <give|prize> [number]
    aliases: [gd]
    permission: gamblingdice.admin
    permission-message: No perm.
permissions:
  gamblingdice.admin:
    description: Permite acceder a comandos administrativos de GamblingDice.
    default: op
 
Resource Information
Author:
----------
Total Downloads: 323
First Release: Mar 4, 2024
Last Update: May 4, 2025
Category: ---------------
All-Time Rating:
1 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings