LuckyBlocks icon

LuckyBlocks -----

LuckyBlocks is a plugin that gives random rewards when broken!



LuckyBlocks is a plugin that gives random rewards when broken.

Commands
  • /luckyblocks give <player> <type> <amount> - Give a player Lucky Blocks
  • /luckyblocks top - Display players ranked by Lucky Blocks broken
  • /luckyblocks menu - Open the Lucky Blocks menu
  • /luckyblocks reload - Reloads the plugin
Permissions
  • luckyblocks.command.give - Allows use of the /luckyblocks give command
  • luckyblocks.command.top - Allows use of the /luckyblocks top command
  • luckyblocks.command.menu - Allows use of the /luckyblocks menu command
  • luckyblocks.command.reload - Allows use of the /luckyblocks reload command
Action List
  • BROADCAST:message - Send a message to all players on the server
  • CONSOLE_COMMAND:command - Execute a command from the server console
  • MSG:message - Send a private message to a specific player
  • PLAYER_COMMAND:command - Execute a command as if the player ran it themselves
  • SOUND:type:float:float - Play a sound to a player
  • ADD_POTION:type:amplifier:duration - Add a potion effect to the player
✔ MySQL & SQLite Support
Choose your storage engine:
  • SQLite (default – no setup needed)
  • MySQL (for large servers and networks)
PlaceholderAPI Support
  • %luckyblocks_broken% - Displays how many LuckyBlocks the player has broken
Developer API Support
  • LuckyBlockBreakEvent - Called when a player break a LuckyBlock
  • LuckyBlockPlaceEvent - Called when a player place a LuckyBlock
Code (YAML):
database:
  type
: sqlite
  mysql
:
    host
: localhost
    port
: 3306
    database
: luckyblocks
    username
: root
    password
: password

settings
:
  require-permission-to-place
: true
  require-permission-to-break
: true

Code (YAML):
messages:
  prefix
: "&8[&aLuckyBlocks&8]&r"
  no-permission
: ' %prefix% &cYou don''t have permission to use this command!'
  no-permission-place
: "%prefix% &cYou don't have permission to place this lucky block!"
  no-permission-break
: "%prefix% &cYou don't have permission to break this lucky block!"
  player-only
: "%prefix% &cYou can't use commands from console!"
  player-not-found
: ' %prefix% &cPlayer is not online!'
  invalid-type
: "%prefix% &cUnknown Lucky Block type: &e%type%"
  invalid-amount
: "%prefix% &cThe amount must be a valid number!"
  give-success-sender
: "%prefix% &aYou have given &e%target% &b%amount%x &6%type% Lucky Blocks!"
  give-success-target
: "%prefix% &6You received &e%amount%x &6%type% Lucky Blocks!"
  top-no-data
: "%prefix% &cNo Lucky Block statistics found!"
  top-header
: "&6===== LuckyBlocks Top %limit% ====="
  top-entry
: "&e%rank%. &b%player% &7- &f%value% blocks"
  no-world-access
: "%prefix% &cYou can't use this lucky block in this world!"
  help-header
: "&e----- LuckyBlocks Commands -----"
  help-give
: "%prefix% &f/%cmd% give <player> <type> <amount> &7- Give a player Lucky Blocks"
  help-top
: "%prefix% &f/%cmd% top &7- Display players ranked by Lucky Blocks broken"
  help-menu
: "%prefix% &f/%cmd% menu &7- Open the Lucky Blocks menu"
  help-reload
: "%prefix% &f/%cmd% reload &7- Reloads the plugin"
  reload-success
: ' %prefix% &aSuccessfully reloaded!'
  reload-fail
: ' %prefix% &cA serious error occurred during reloading'
  luckyblock-item-lore
:
   - "&eBreak this block to trigger a random reward!"
    - "&7Each LuckyBlock contains different possible rewards!"
    - "&bTry your luck and see what happens!"
  menu-title
: "&8Lucky Block Menu"

Code (YAML):
luckyblocks:
  example
:
    block
: PLAYER_HEAD
    texture
: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNzlkMWVmNGMxNTNiZGU4YTdiMDhmOTJjMGM0Yjc5ZmRjMmZjYjU3ZjgzYTMxYTgyMjljNjJhYzc1ZjFmMGEzMSJ9fX0="
    name
: "&6&l%id%"
    permission
: luckyblocks.example
    worlds
: [ "world", "world_nether" ]
    rewards
:
      - id
: diamond
        chance
: 40
        actions
:
         - "CONSOLE_COMMAND:give %player% diamond 1"
          - "MSG:&aCongratulations! You received &b1 diamond&a!"
      - id
: emerald
        chance
: 30
        actions
:
         - "CONSOLE_COMMAND:give %player% emerald 1"
          - "MSG:&aCongratulations! You received &21 emerald&a!"

2025-12-04_20.43.05.png

random rewards.png

top.png

For support, please use only resource discussion

Terms of Service
By using this plugin, you agree to the following terms, which may be updated by the author at any time.
  • All payments are final and non-refundable.
  • Redistribution or resale of this plugin is prohibited.
  • You are not permitted to modify, decompile, or extract any part of the plugin's source code.
  • Support is provided exclusively to legitimate customers. We cannot offer support for plugins obtained through unauthorized or illegal means.
Resource Information
Author:
----------
Total Downloads: 5
First Release: Jan 10, 2025
Last Update: Dec 5, 2025
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings