HomeJavaMods⭐ hLuckyBlock ⭐ [1.21.X-26.X] | WG, WE, PAPI, Vault, XSkull and more support!
⭐ hLuckyBlock ⭐ [1.21.X-26.X] | WG, WE, PAPI, Vault, XSkull and more support!
ModsJava

⭐ hLuckyBlock ⭐ [1.21.X-26.X] | WG, WE, PAPI, Vault, XSkull and more support!

⬇ Download on Spigot
hLuckyBlock
Automatic zone-based lucky block system
Random Spawning • Multiple Block Types • Custom Durability • TextDisplay Holograms • Base64 Textures • Actions
━━━━━━━━━━━━━━━━━━━━
hLuckyBlock is an automatic lucky block system designed for configured event zones, hot areas, PvP locations and other server regions.
The plugin randomly spawns lucky blocks inside a WorldGuard region or a coordinate-based cuboid. Every block type can have its own material, selection chance, required hit count, TextDisplay hologram, Base64 head texture and reward actions.
Lucky blocks do not have to break after one hit. Each type has configurable durability, while the built-in hologram displays the number of hits remaining. When a player fully breaks a lucky block, the plugin can give money, execute commands, send messages, play sounds, show titles, spawn particles or fireworks and run other configurable actions.
No external hologram plugin is required. hLuckyBlock uses native TextDisplay entities.
━━━━━━━━━━━━━━━━━━━━​
Main Features
━━━━━━━━━━━━━━━━━━━━​
How It Works
When the plugin starts, it creates an automatic spawn task.
During every configured interval, hLuckyBlock:
When a player hits the lucky block, the regular break event is cancelled and its internal health is reduced.
If durability remains, the hologram is updated.
After the final required hit:
━━━━━━━━━━━━━━━━━━━━​
Zone Modes
REGION
Uses the minimum and maximum boundaries of a configured WorldGuard region.
Example settings:
luckyZone.mode: REGION
luckyZone.region.world: spawn
luckyZone.region.region: hotzone

WorldEdit and WorldGuard are required for this mode.
CUBOID
Uses two coordinate positions in a selected world.
Example settings:
luckyZone.mode: CUBOID
luckyZone.cuboid.world: spawn
luckyZone.cuboid.pos1
luckyZone.cuboid.pos2

The order of the two positions does not matter.
CUBOID mode does not require WorldEdit or WorldGuard.
━━━━━━━━━━━━━━━━━━━━​
Spawn Control
The spawn interval is configured in milliseconds.
The default value is 3000 milliseconds, equal to three seconds.
Spawn rules include:
Wildcard patterns are supported.
Examples:
*_SLAB — every slab.
*_STAIRS — every stair.
*GLASS* — every material containing GLASS.
The plugin also verifies that:
━━━━━━━━━━━━━━━━━━━━​
Lucky Block Types
Every type is configured inside blocks.yml.
The YAML key is the physical Minecraft material.
Each type supports:
The hologram supports {breakCount}, which is replaced by the current remaining hit count.
The combined chance values should normally total 1.0. When the sum is lower, some spawn attempts may select no type.
━━━━━━━━━━━━━━━━━━━━​
Included Block Types
The default configuration contains three examples.
GLASS
WHITE_STAINED_GLASS
LIGHT_GRAY_STAINED_GLASS
These are editable examples. Materials, chances, durability, appearance and rewards can all be replaced.
━━━━━━━━━━━━━━━━━━━━​
Dynamic TextDisplay Holograms
hLuckyBlock uses native Paper TextDisplay entities.
No external hologram plugin is required.
Holograms support:
The {breakCount} value is updated after every successful hit.
The hologram is automatically removed when its lucky block disappears.
━━━━━━━━━━━━━━━━━━━━​
Base64 Textures
Every type can display a custom Base64 head texture above the physical block.
This provides a custom appearance without requiring a resource pack.
Texture handling includes:
The physical material from blocks.yml is still used to identify the block type, durability and rewards.
━━━━━━━━━━━━━━━━━━━━​
Active Block Limits
The maximum active count is configurable.
Two limit actions are supported.
STOP_SPAWN
New lucky blocks stop spawning while the limit is reached.
Spawning automatically continues after existing blocks are destroyed.
DELETE_ALL
Every active lucky block, hologram and head visual is removed when the limit is reached.
The zone begins filling again during later spawn cycles.
━━━━━━━━━━━━━━━━━━━━​
Reward Action System
Each block type has a separate action list inside actions.yml.
Supported actions:
[MESSAGE]
[ACTIONBAR]
[TITLE]
[SOUND]
[PARTICLE]
[BOSSBAR]
[BROADCAST]
[CONSOLE]
[PLAYER]
[VAULT]
[EFFECT]
[FIREWORK]
[CLOSE]

Actions can:
Internal placeholders:
{player}
{prefix}

PlaceholderAPI values are also processed using the breaking player.
━━━━━━━━━━━━━━━━━━━━​
Vault Actions
Supported economy operations:
Vault and a compatible economy provider are required only when VAULT actions are used.
The rest of hLuckyBlock continues working without Vault.
━━━━━━━━━━━━━━━━━━━━​
Recovery and Cleanup
hLuckyBlock uses internal persistent tags for its TextDisplay and ArmorStand entities.
During startup, the plugin can:
This helps restore the system after an abnormal server stop or incompatible external modification.
During normal operation, tracked blocks are regularly checked. If another plugin or administrator changes the physical material, the stale tracking data and visual entities are removed.
A clean plugin shutdown removes active lucky blocks and their visuals.
The reload command also cleans current blocks before restarting the system with the new configuration.
━━━━━━━━━━━━━━━━━━━━​
PlaceholderAPI
Expansion identifier:
hluckyblock
Available placeholders:
%hluckyblock_count% — current active lucky block count.
%hluckyblock_timetospawn% — milliseconds remaining before the next spawn attempt.
When the spawn task is stopped, the placeholders return 0.
They can be used in TAB, scoreboards, menus, holograms and other PlaceholderAPI-compatible plugins.
━━━━━━━━━━━━━━━━━━━━​
Commands
/hluckyblock — show command help.
/hluckyblock reload — reload localization and configuration, refresh integrations, remove current lucky blocks and restart the spawn task.
/hluckyblock start — start automatic spawning.
/hluckyblock stop — stop future spawn attempts without removing existing lucky blocks.
/hluckyblock restore — remove all active lucky blocks, holograms and head visuals from the configured zone.
Command tab completion is included.
━━━━━━━━━━━━━━━━━━━━​
Permissions
hluckyblock.admin — access to reload, start, stop and restore commands.
hluckyblock.break — permission to damage lucky blocks and receive rewards.
Both permissions are granted to server operators by default.
Regular players must be given hluckyblock.break before they can use the lucky blocks.
A player without this permission cannot reduce block durability and receives the configured no-permission actions.
━━━━━━━━━━━━━━━━━━━━​
Configuration Files
locale.yml — select Russian or English localization.
config.yml — zone, spawning rules, surface checks and active limits.
blocks.yml — materials, chances, durability, holograms and Base64 textures.
actions.yml — block rewards and administrative command actions.
messages.yml — console and fallback messages.
━━━━━━━━━━━━━━━━━━━━​
What Can Be Configured?
━━━━━━━━━━━━━━━━━━━━​
Requirements and Compatibility
Required:
Required only for REGION mode:
Optional:
Not required:

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

⭐ hLuckyBlock ⭐ [1.21.X-26.X] | WG, WE, PAPI, Vault, XSkull and more support! is a free Minecraft Java mod. Compatible with Minecraft 1.21, 26.1, 26.2. Downloaded 184 times (via Spigot). Download it and open it directly in the game.

Explore more