COWMODSКаталог модов

LuckyEngine

A modern and highly configurable LuckyBlock/luckyblocks plugin for Paper/Spigot 1.21.x featuring a dynamic luck system, powerful in-game reward editor, multi-language support, PlaceholderAPI integration, and 14 unique reward types.

Автор: PluggLAB2671обновлён 17 авг. 2026 г.
ПриключенияМини-игрыМобы

Описание

LuckyEngine

LuckyEngine is a powerful and fully configurable Lucky Block plugin for Paper and Spigot 1.21.x, designed to provide customizable rewards, dynamic player luck, advanced in-game editors, statistics, and multi-language support.

Built around vanilla Minecraft mechanics, LuckyEngine recreates the classic Lucky Block experience without requiring a resource pack. Each Lucky Block uses a real breakable block combined with a visual Block Display core, allowing the system to remain lightweight while providing a unique visual experience.

⚡ Recommended Hosting

SparkedHost


⚙️ Dependencies

REQUIRED

Paper / Spigot 1.21.x LuckyEngine is designed for Minecraft 1.21.x server environments.

Java 21+ Required to run LuckyEngine.


OPTIONAL (Soft Dependency)

PlaceholderAPI Provides expanded placeholder support for luck, statistics, and reward-related information.


✨ Features

  • Fully configurable Lucky Block system
  • No resource pack required
  • Vanilla-based Lucky Block mechanics
  • Visual Block Display cores
  • Dynamic per-player luck system
  • Luck values from -100 to +100
  • Custom reward tiers and weighted chances
  • Multiple reward types
  • Advanced in-game GUI editors
  • Reward browser and management tools
  • Multi-language support
  • Personal and global statistics
  • PlaceholderAPI integration
  • Configurable cooldowns and restrictions
  • Custom sounds and particles
  • Configurable HUD messages
  • Broadcast system
  • Custom crafting recipe
  • Persistent Lucky Block storage
  • Lightweight and optimized architecture

🎲 Lucky Block System

LuckyEngine uses real Minecraft blocks as the physical Lucky Block while keeping track of placed Lucky Blocks separately from normal world blocks.

The system includes:

  • Real breakable Yellow Stained Glass blocks
  • Visual Sponge BlockDisplay cores
  • Persistent Lucky Block tracking
  • Separate storage from normal world blocks
  • Automatic ignoring of naturally generated blocks
  • Persistent storage using lucky_blocks.yml

No resource pack is required, allowing LuckyEngine to work immediately with standard Minecraft clients.


🍀 Luck System

Every player has an individual luck value ranging from -100 to +100.

Luck dynamically affects the probability of receiving different reward tiers.

LuckEffect
+100GREAT rewards become much more common and BAD rewards become extremely rare
0Uses the default reward chances
-100BAD rewards become more common and GREAT rewards become almost impossible

The system supports:

  • Per-player luck storage
  • Configurable minimum and maximum values
  • Luck changes after breaking Lucky Blocks
  • Optional luck reset after death
  • Luck HUD displayed in chat
  • PlaceholderAPI integration

This creates a dynamic reward system where player luck can change the outcome of future Lucky Blocks.


🎁 Reward System

LuckyEngine allows unlimited custom rewards with configurable weights and reward tiers.

Available tiers include:

  • GREAT
  • GOOD
  • NEUTRAL
  • BAD

Supported reward types include:

TypeDescription
ITEMCustom items with enchantments, names, and lore
MULTI_ITEMMultiple item rewards
XPGive experience points or levels
COMMANDExecute console commands
MOB_SPAWNSpawn customized mobs
EXPLOSIONCreate configurable explosions
POTION_EFFECTApply potion effects
LIGHTNINGCreate lightning strikes
MESSAGESend private player messages
STRUCTUREGenerate special structures and traps
CHEST_LOOTGenerate rewards from vanilla loot tables
ENCHANT_HELDRandomly enchant the player's held item
FIREWORKSCreate random fireworks
TRAPApply negative effects such as dropping hotbar items

Reward chances, tiers, and behaviour can be configured without modifying the plugin itself.


🖥️ In-Game GUI

LuckyEngine provides in-game tools for managing rewards and plugin settings.

Open the main interface with:

/lb gui

Main Menu

The main menu provides access to:

  • Current luck information
  • Reward browser
  • Reward creation
  • Lucky Block management
  • Configuration reload

Reward List

The reward browser provides:

  • Paginated reward lists
  • Left-click editing
  • Right-click deletion
  • Quick reward management

Reward Editor

Advanced editors are available for:

  • Reward type selection
  • Enchantments
  • Mob configuration
  • Potion effects
  • Commands

This allows server administrators to manage rewards directly in-game without manually editing configuration files.


⚙️ Configuration

LuckyEngine provides extensive configuration options for different server setups.

Configurable systems include:

  • Reward chances
  • Luck behaviour
  • Cooldowns
  • Allowed worlds
  • Required tools
  • Sounds
  • Particles
  • HUD messages
  • Broadcast settings
  • Crafting recipes
  • Language files
  • Lucky Block behaviour

Configuration changes can be applied using:

/lb reload

A full server restart is not required for reloadable configuration changes.


🌍 Multi-Language Support

All player-facing messages can be customized through language files.

Included languages:

  • en_US - English
  • pl_PL - Polish

Additional translations can be created by copying an existing language file and translating its messages.

This allows LuckyEngine to be adapted to different server communities without modifying the plugin itself.


📊 Statistics System

LuckyEngine tracks both individual player activity and global server activity.

Personal Statistics

%luckyblock_breaks_total%
%luckyblock_breaks_hourly%
%luckyblock_breaks_daily%
%luckyblock_breaks_weekly%
%luckyblock_breaks_monthly%

Global Statistics

%luckyblock_breaks_global_total%
%luckyblock_breaks_global_hourly%
%luckyblock_breaks_global_daily%
%luckyblock_breaks_global_weekly%
%luckyblock_breaks_global_monthly%

Statistics are stored efficiently, with old entries automatically removed to prevent unnecessary data growth.


🔗 PlaceholderAPI

LuckyEngine supports PlaceholderAPI when installed.

Luck Placeholders

%luckyblock_luck%
%luckyblock_luck_formatted%
%luckyblock_luck_bar%
%luckyblock_luck_tier%

Other Placeholders

%luckyblock_total_rewards%

Placeholders can be used with:

  • Scoreboards
  • Holograms
  • Menus
  • Leaderboards
  • Chat formatting
  • Other PlaceholderAPI-compatible plugins

🎮 Gameplay Experience

LuckyEngine is designed around fast, unpredictable, and highly replayable gameplay.

The system focuses on:

  • Simple Lucky Block interactions
  • Dynamic reward outcomes
  • Player-controlled luck progression
  • Fast GUI management
  • Visual feedback
  • Flexible reward customization

The combination of random rewards and dynamic luck allows servers to create anything from simple Lucky Block events to larger reward-based minigames and progression systems.


🛠️ Commands

CommandDescription
/lb guiOpen the main GUI
/lb give <player> [amount]Give Lucky Blocks
/lb setluck <player> <value>Set player luck
/lb addluck <player> <value>Add or remove player luck
/lb getluck [player]Check player luck
/lb listList configured rewards
/lb reloadReload configuration

Aliases

/luckyblock
/lucky

🔐 Permissions

PermissionDescription
luckyblock.useAccess basic commands and GUI features
luckyblock.adminAccess administration features

💾 Data Storage

LuckyEngine stores persistent Lucky Block data using:

plugins/LuckyEngine/lucky_blocks.yml

Player luck and statistics are also stored persistently so that player progression is preserved between server restarts.

Statistics automatically remove outdated entries to keep storage efficient.


⚙️ System Design

LuckyEngine combines vanilla Minecraft blocks, Block Display entities, persistent storage, and a modular reward system to create a flexible Lucky Block framework.

Core design goals include:

  • Lightweight server-side operation
  • Persistent player progression
  • Efficient Lucky Block tracking
  • Modular reward handling
  • Flexible configuration
  • In-game administration tools
  • Easy integration with PlaceholderAPI
  • Support for future reward expansion

The system is designed to work naturally with existing Paper and Spigot server ecosystems while remaining easy to configure and manage.


🚀 Installation

  1. Download LuckyEngine
  2. Place the plugin JAR into:
plugins/
  1. Restart the server
  2. Configure the plugin in:
plugins/LuckyEngine/config.yml
  1. Reload the configuration:
/lb reload
  1. Give yourself a Lucky Block:
/lb give <player>

🚀 Planned Features

LuckyEngine is actively maintained and can be expanded with additional reward and gameplay systems.

Potential future updates may include:

  • Additional reward types
  • Expanded GUI editors
  • More advanced luck mechanics
  • Additional statistics
  • More language support
  • Expanded PlaceholderAPI integration
  • Additional configuration options
  • Performance and optimization improvements
  • API and developer expansion support

🔗 Links

Official Website: https://plugglab.pl/luckyengine/

Documentation: (In Repair) https://plugglab.pl/luckyengine/docs

Галерея

Последние версии

Все версии →
release

LuckyEngine 2.1

2.1
17 авг. 2026 г.208Minecraft: 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9bukkit, paper, spigot
Скачать
Что нового
# v2.1 — Multi-Action Rewards, Economy & Events A major update focused on **reward flexibility, Lucky Coins, server-wide events, challenges, leaderboards, and performance improvements**. ## ✨ Multi-Action Rewards * Added a new `MULTI_ACTION` reward type that lets you combine multiple actions into a single reward. * Create rewards that can, for example, **give diamonds, run a money command, and send an action bar message** all at once. * Each action uses the same configuration fields as its standalone reward type. * Supported action types: * `ITEM` * `COMMAND` * `XP` * `MESSAGE` * `ACTIONBAR` * `TITLE` * `SOUND` * `FIREWORKS` * Added a dedicated **Actions Editor GUI** for adding, editing, and removing actions with guided chat prompts. * Added a **"+ Add Another Action"** button to every reward type. * Converts the reward you are currently editing into the first action of a `MULTI_ACTION` reward. * Your existing configuration is preserved, so you never have to recreate a reward from scratch. * Added two ready-made examples to `rewards.yml`: * `diamonds_and_money` * `legendary_jackpot` ## 💰 Lucky Coins Lucky Coins are now a built-in currency earned by breaking Lucky Blocks. * Players earn coins based on the tier of the reward they receive. * Default rewards: * **Legendary:** 10 coins * **Good:** 5 coins * **Neutral:** 2 coins * **Bad:** 1 coin * Check your balance with `/lb coins`. * Added a **Lucky Coins** button to the Main Menu. * Configurable through: * `coins.enabled` * `coins.per-break.*` * `coins.notify-player` ## 🛒 Coin Shop Added a complete shop system for spending Lucky Coins. * New `/lb shop` command. * Shop is also accessible directly from the Main Menu. * All shop items are configured through `shop.yml`. * Add, remove, or reprice items without changing the plugin code. * Added four purchase types: * `GIVE_LUCKY_BLOCK` — gives a guaranteed Lucky Block rarity without RNG. * `ADD_LUCK` — instantly increases the player's luck. * `GIVE_ITEM` — gives an item with optional enchantments. * `RUN_COMMAND` — executes a command for integrations with economy and other plugins. * Includes 8 default shop items: * Rare Lucky Block * Epic Lucky Block * Legendary Lucky Block * Small Luck Boost * Large Luck Boost * Diamonds * Netherite * Enchanted Sword * Added optional **daily purchase limits** for individual items. * Items automatically appear unavailable when: * The player cannot afford them. * The daily purchase limit has been reached. ## 🎉 Lucky Events Added server-wide timed events that temporarily modify gameplay. * Start events with `/lb event start <name>` or through the Events GUI. * Events can apply: * A global luck bonus. * A global Lucky Coin multiplier. * A configurable duration. * Added 3 default events: * **Double Luck Weekend** — +30 Luck, 2x Coins, 1 hour. * **Coin Rush** — 3x Coins, 15 minutes. * **Legendary Hour** — +50 Luck, 1.5x Coins, 30 minutes. * Fully configurable through `lucky-events:` in `config.yml`. * Events automatically announce their start and end to the entire server. * Use `/lb event stop` to end the active event early. ## 🎯 Daily & Weekly Challenges Added challenges that reward players for completing different Lucky Block objectives. * 7 challenges included by default. * Supported challenge types: * `BREAK_BLOCKS` * `GET_TIER` * `REACH_COMBO` * `EARN_COINS` * Completing a challenge automatically awards Lucky Coins. * Added `/lb challenges` to view challenge progress. * Progress is displayed with a visual progress bar. * Supports: * `DAILY` * `WEEKLY` * Challenge progress persists in `challenge_progress.yml`. * Goals, rewards, and reset periods are fully configurable. ## 🏆 Leaderboards Added a dedicated leaderboard GUI with four separate rankings: * **All-Time Breaks** * **Weekly Breaks** * **Lucky Coins** * **Highest Luck** Additional features: * `/lb leaderboard` and `/lb top` * Top 27 players displayed per leaderboard. * Gold, silver, and bronze medal icons for the top 3. * Automatic refresh every 5 minutes by default. * Refresh interval configurable with `leaderboard.refresh-minutes`. * Added a manual refresh button. * Leaderboard data is cached to prevent unnecessary server load. ## 🎁 Lucky Chest Added a new `LUCKY_CHEST` reward type. * Opens a GUI containing multiple randomly selected rewards. * The player chooses exactly **one** reward. * All other rewards are discarded. * Creates a more interactive alternative to standard RNG rewards. * The number of choices is configurable with the `choices` field. * Supports 2 or 3 choices. ## 🎨 Creative Mode Lucky Blocks placed in Creative Mode are now fully functional. * Players can place normal Lucky Blocks while in Creative. * Previously, Creative placement created a non-functional decorative copy. * The existing `creative-bypass` option still controls Creative-mode breaking. * When enabled, Creative players can break Lucky Blocks without triggering a reward. * Useful for building, testing, and server setup. ## 🎁 Starter Reward Pack Added a separate lightweight reward pack for smaller or more conservative servers. * New `rewards-starter.yml`. * Contains approximately 25 modest rewards. * Focused primarily on common and practical rewards. * Does not include: * Legendary structures. * Jackpot-style rewards. * Complex `MULTI_ACTION` rewards. * The full `rewards.yml` still contains **245 rewards**. To use the starter pack: 1. Back up your existing `rewards.yml`. 2. Rename `rewards-starter.yml` to `rewards.yml`. 3. Run `/lb reload`. ## 🖥️ Main Menu Improvements The Main Menu has been expanded with the new v2.1 features. Added access to: * Lucky Coins * Coin Shop * Challenges * Leaderboards * Events The Events button also displays an **"Event Active!"** indicator while an event is running. Giving yourself a Lucky Block from the Main Menu now keeps the GUI open, allowing you to collect multiple rarities without reopening the menu. ## 🗄️ Optional Database Backend Added an optional SQL backend for persistent player data. * Added `DatabaseManager`. * Supported databases: * SQLite * MySQL * SQLite requires no external database setup. * When enabled, the following data can be stored in SQL: * Luck * Lucky Coins * Lucky Block breaks * Useful for **BungeeCord/Velocity networks** that share player data across multiple servers. * SQLite JDBC is bundled directly into the plugin. New configuration: ```yaml database: enabled: false type: sqlite sqlite-file: luckyblock.db mysql: host: port: name: user: password: table-prefix: ``` ## 🧩 New Commands | Command | Permission | Description | | ------------------------ | ------------------ | ----------------------------- | | `/lb leaderboard` | `luckyblock.use` | Open the leaderboard | | `/lb top` | `luckyblock.use` | Open the leaderboard | | `/lb challenges` | `luckyblock.use` | View challenge progress | | `/lb event` | `luckyblock.use` | View active/available events | | `/lb event start <name>` | `luckyblock.admin` | Start a Lucky Event | | `/lb event stop` | `luckyblock.admin` | Stop the active Lucky Event | | `/lb coins` | `luckyblock.use` | Check your Lucky Coin balance | | `/lb shop` | `luckyblock.use` | Open the Coin Shop | ## ⚙️ Configuration Additions ```yaml database: enabled: false type: sqlite sqlite-file: luckyblock.db mysql: host: port: name: user: password: table-prefix: coins: enabled: true notify-player: true per-break: great: 10 good: 5 neutral: 2 bad: 1 leaderboard: refresh-minutes: 5 lucky-events: double_luck_weekend: # ... coin_rush: # ... legendary_hour: # ... challenges: daily_break_5: # ... daily_break_15: # ... daily_good_drop: # ... daily_combo_5: # ... weekly_break_50: # ... weekly_legendary: # ... weekly_earn_500_coins: # ... ``` ## 🔧 Bug Fixes & Performance ### Fixed: Main Menu not opening The Main Menu attempted to create a 7-row chest inventory containing 63 slots. Minecraft chests support a maximum of 6 rows (54 slots), causing Bukkit to throw an `IllegalArgumentException` whenever `/lb gui` was used. * Reduced the Main Menu to 6 rows. * All existing content fits within the new layout. * Added a permanent safety clamp to the base GUI system to prevent invalid inventory sizes from causing the same class of issue again. ### Fixed: Leaderboard freezing or crashing the server Leaderboard refreshes previously called `Bukkit.getOfflinePlayers()` synchronously on the main server thread. This could trigger a blocking disk read involving player data files. * Leaderboard refreshes now run asynchronously. * Results are cached. * Opening the leaderboard no longer blocks the main thread. * First-time users see a **"Loading..."** placeholder while data is being prepared. ### Fixed: Chat prompt cancellation Cancelling a chat prompt by typing `cancel` could send the player to the wrong GUI. The system previously always returned to the Reward Editor, even when the prompt originated from another feature such as the Main Menu's luck-setting flow. * Every chat prompt now defines its own cancellation destination. * Cancelling a prompt always returns the player to the correct screen. * Prevents related `NullPointerException` crashes. ### Fixed: Reward Editor debug text Removed leftover debug text from the **ID** and **Weight** field tooltips in the Reward Editor. ## 🔌 API `LuckyBlockAPI` receives **no breaking changes** in v2.1. Coins, events, and challenges are currently accessible through the corresponding manager getters on `LuckyBlockPlugin` for plugins that directly depend on LuckyBlock. The new functionality will be added to the public API interface once it has been fully stabilized. --- **LuckyBlock v2.1** brings a much more flexible reward system, a complete Lucky Coin economy, server-wide events, challenges, leaderboards, a configurable shop, and major GUI/performance fixes — while keeping the existing API backward compatible.
release

LuckyEngine 2.0

2.0
5 авг. 2026 г.28Minecraft: 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9bukkit, paper, spigot
Скачать
Что нового
# LuckyBlock 2.0 A massive update introducing a public Developer API, new gameplay mechanics, over 240 rewards, improved GUIs, new structures, traps, and many quality-of-life improvements. --- # ✨ New Gameplay Systems ## 🔥 Combo System Build a combo by breaking multiple Lucky Blocks within a configurable time window. **Luck bonuses** * x2 Combo → +5 Luck * x3 Combo → +10 Luck * x5 Combo → +20 Luck * x10 Combo → +40 Luck **Features** * Live combo displayed in the Action Bar * Automatically resets when the timer expires * Fully configurable --- ## 🍀 Hot Streak & Curse Your recent reward history now affects your luck. ### Hot Streak Receive **3 GREAT rewards in a row** to gain: * +25 Luck * Duration: 5 minutes ### Curse Receive **3 BAD rewards in a row** to receive: * -20 Luck * Duration: 3 minutes Players are notified when both effects start and expire. --- ## ✨ Lucky Block Aura Placed Lucky Blocks now emit ambient particles. | Rarity | Particle | | --------- | --------------- | | Common | End Rod | | Rare | Soul Fire Flame | | Epic | Witch | | Legendary | Flame | Uses a single optimized scheduler for excellent performance. --- ## 📜 Reward History Every Lucky Block opening is now recorded. Stored information includes: * Reward ID * Reward name * Reward tier * Reward type * Reward rarity * Timestamp Features: * Stores the last **15 rewards** per player * Saved in `history.yml` * Accessible via GUI or command --- ## 👋 Join Listener Players now receive a welcome message after joining containing: * Current Luck * Luck Tier * Hot Streak / Curse status Admins additionally receive update notifications when a new version is available. --- # 🧩 Developer API LuckyBlock now provides a complete public API for third-party plugins. ## Luck API * getLuck() * setLuck() * addLuck() * resetLuck() * formatLuck() ## Lucky Block API * isLuckyBlockItem() * isLuckyBlock() * getLuckyBlockRarity() * placeLuckyBlock() * removeLuckyBlock() * buildLuckyBlockItem() ## Reward API * getRewards() * getRewardById() * executeReward() * triggerBreak() ## Statistics API * getTotalBreaks() * getBreaksInPeriod() * getGlobalTotalBreaks() * getGlobalBreaksInPeriod() ## Additional API * getHistory() * getCombo() * getComboLuckBonus() * hasHotStreak() * isCursed() ### New Bukkit Events * LuckyBlockBreakEvent * LuckyBlockRewardEvent * LuckyBlockLuckChangeEvent All events are cancellable and fully editable. --- # 🎁 New Reward Types Three completely new reward types have been added. ### TITLE Display customizable titles and subtitles. ### ACTIONBAR Send Action Bar messages. ### SOUND Play private sounds only for the player. **Total reward types: 17** --- # 🏗️ New Structures Added **9 new structures**: * Treasure Room Small * Ancient Vault * Mini Maze * Copper Ore Vein * Iron Ore Vein * Gravel Drop * Magma Trap * Lava Drop * Large Cobweb Trap --- # ☠️ New Trap Types Added **5 new traps**: * Drop Held Item * Scramble Inventory * Ignite Player * Short Random Teleport * Dye Leather Armor --- # 🖥️ GUI Improvements ## Type Selector Completely redesigned. Features: * 6-row interface * Categories * Reward count per type * Required YAML fields * Current selection highlighting * All 17 reward types displayed --- ## Reward Editor Added smart default values: * Automatic unique IDs * Diamond material * Default mob count * Explosion power * XP values * Fireworks * Default title * Default sound volume --- ## Main Menu Expanded to **6 rows**. Added: * Reward History * Reward Preview * Rarity give buttons * HUD toggle * Broadcast toggle --- ## Reward Preview GUI New command: `/lb preview` Features: * Shows exact drop chances * Uses player's current effective luck * Sorted by highest chance * Rarity switch buttons * Pagination Also fixed the beta slot overflow crash. --- ## Reward History GUI New interface displaying: * Last 15 rewards * Tier-colored icons * Formatted timestamps * Reward IDs --- # 💬 New Commands * `/lb history [player]` * `/lb preview [rarity]` --- # 🔊 Sound Improvements * Sounds are now player-only * Default volume reduced from **1.0 → 0.5** * Per-rarity sound configuration * Per-rarity particle configuration --- # 🎲 Reward Pool Expansion The reward system has been massively expanded. ## Rewards * **242 total rewards** *(previously 43)* Includes: * New structures * New traps * Sounds * Titles * Action Bars ### New Mobs * Allay * Fox * Phantom * Cave Spider * Drowned * Turtle ### New Bundles * Food Bundle * Building Bundle * Nether Bundle ### New XP Rewards * 1000 XP Windfall * 10 Level Boost ### Vanilla Loot Tables * Bastion Treasure * Village Weaponsmith --- # 🛠️ Configuration Added numerous new configuration options including: * Creative bypass * Lucky Block Aura * Combo System * Hot Streak & Curse * Per-rarity particles * Per-rarity sounds * Join messages * Update Checker * Sound volume controls Everything is fully configurable.
release

LuckyEngine 1.1

1.1
13 июл. 2026 г.19Minecraft: 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9bukkit, paper, spigot
Скачать
Что нового
updatechcker added
release

LuckyEngine 1.0

1.0
11 июл. 2026 г.12Minecraft: 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9bukkit, paper, spigot
Скачать
Что нового
# 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 `BlockDisplay` entity 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 `InventoryCloseEvent` clearing 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` (or `pl_PL`) in `config.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 locale - `luck-min` / `luck-max` — clamp luck range - `luck-reset-on-death` — reset luck on player death - `cooldown-seconds` — per-player break cooldown - `cooldown-message` — customisable cooldown message - `allowed-worlds` — whitelist worlds (empty = all worlds) - `required-tool` — restrict breaking to a specific tool - `effects.sound-volume` / `effects.sound-pitch` — fine-tune break sound - `effects.particle-count` — control particle density - `hud.enabled` — toggle the in-chat HUD box