Tags
Creators
Details
Licensed MIT
Published 3 months ago
Updated 2 months ago
All versions
In-Game GUI (
1.0
Release
LuckyEngine 1.03 months ago 12
Compatibility
Minecraft: Java Edition
1.21.x
Platforms
Bukkit
Paper
Spigot
Changes
Changelog — LuckyBlock
v1.0.0 — Initial Release
Core Features
- Lucky Block system using Yellow Stained Glass as the real block with a half-scale Sponge
BlockDisplayentity centred inside - Block placement tracking persisted in
lucky_blocks.yml— only placed Lucky Blocks trigger rewards, naturally-generated glass is untouched - Weighted random reward selection with four tiers: GREAT, GOOD, NEUTRAL, BAD
Luck System
- Per-player luck value (−100 → +100) stored in
luck.yml - Luck biases the weighted random roll — positive luck amplifies GREAT/GOOD weights, negative luck amplifies BAD weights
- Configurable
default-luck,luck-min,luck-max,luck-drift-after-break,luck-reset-on-death
Reward Types
| Type | Description |
|---|---|
ITEM |
Drop one item with optional enchantments, custom name, lore |
MULTI_ITEM |
Drop several different items at once |
XP |
Give XP points/levels directly via API (no Essentials conflict) |
COMMAND |
Run console commands (%player% supported) |
MOB_SPAWN |
Spawn mobs with options: powered, tamed, with-gear, drop-from-sky |
EXPLOSION |
Configurable power + break-blocks toggle |
POTION_EFFECT |
Multiple simultaneous effects with per-effect duration and amplifier |
LIGHTNING |
Multiple lightning strikes scattered around the block |
MESSAGE |
Private chat message to the player |
STRUCTURE |
OBSIDIAN_CAGE, COBWEB_TRAP, TREASURE_VAULT, ORE_VEIN_DIAMOND |
CHEST_LOOT |
Drops from any vanilla loot table |
ENCHANT_HELD |
Randomly enchants the held item |
FIREWORKS |
Launches colourful random fireworks |
TRAP |
DROP_HOTBAR — scatters hotbar items on the ground |
Crafting
- Fully configurable 3×3 shaped recipe (default: 8 Glass + 1 Sponge)
- Live recipe re-registration on
/lb reload
In-Game GUI (/lb gui)
- Main Menu — luck bar, browse, create, give, reload
- Reward List — paginated grid, left-click to edit, right-click to delete
- Reward Editor — all fields visible at once; sub-GUIs for complex fields:
- Type Selector — icon grid of all 14 reward types
- Enchantment Editor — full enchantment browser, level +/− per enchant, applied-list with remove
- Mob Selector — 36-mob icon grid + toggle buttons (powered, tamed, gear, sky) + count adjuster
- Potion Effect Editor — all 33 effect types, click to add/edit duration+amp, right-click to remove
- Command Editor — up to 18 command slots, 8 placeholder buttons, 12 template commands
- GUI navigation uses a transitioning flag to prevent
InventoryCloseEventclearing screen state mid-switch
Localisation
- Full multi-language support via
plugins/LuckyBlock/lang/<locale>.yml - Bundled: en_US (English) and pl_PL (Polish)
- Every player-facing string is in the lang file — prefix, HUD lines, tier names, GUI titles/buttons, command feedback, item names
- Set
language: en_US(orpl_PL) inconfig.yml
PlaceholderAPI Integration (optional soft-depend)
| Placeholder | Returns |
|---|---|
%luckyblock_luck% |
Raw luck number |
%luckyblock_luck_formatted% |
Coloured luck string |
%luckyblock_luck_bar% |
10-segment ■ bar |
%luckyblock_luck_tier% |
Tier name string |
%luckyblock_total_rewards% |
Number of loaded rewards |
Commands
| Command | Permission |
|---|---|
/lb gui |
luckyblock.use |
/lb give <player> [amt] |
luckyblock.admin |
/lb setluck <player> <n> |
luckyblock.admin |
/lb addluck <player> <n> |
luckyblock.admin |
/lb getluck [player] |
luckyblock.use |
/lb list |
luckyblock.use |
/lb reload |
luckyblock.admin |
Config Additions
language— select localeluck-min/luck-max— clamp luck rangeluck-reset-on-death— reset luck on player deathcooldown-seconds— per-player break cooldowncooldown-message— customisable cooldown messageallowed-worlds— whitelist worlds (empty = all worlds)required-tool— restrict breaking to a specific tooleffects.sound-volume/effects.sound-pitch— fine-tune break soundeffects.particle-count— control particle densityhud.enabled— toggle the in-chat HUD box
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:hYAj4w8g:P404jU45"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:hYAj4w8g:P404jU45"
}

