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

LuckBlocksPlus

Lightweight, fully GUI-configurable Lucky Blocks for Paper 1.21 — weighted rewards, 14 action types, holograms, and natural mining spawns.

Автор: ResistanceCore2440обновлён 18 июн. 2026 г.
УправлениеТехнологииУтилиты

Описание

🍀 LuckBlocksPlus - Advanced Lucky Block Plugin

A lightweight, performance-optimized Lucky Block plugin for Minecraft servers running Paper 1.21+


✨ Key Features

🎯 Core Systems

  • Weighted Reward Pool - Fully configurable, weighted-random rewards per Lucky Block break
  • 14 Action Types - Chain multiple actions per reward, executed in order
  • Safe Block Detection - PersistentDataContainer-tagged blocks; ordinary blocks never trigger
  • Persistent Tracking - Lucky Block locations survive restarts with O(1) lookups
  • Mining Spawn - Lucky Blocks can appear naturally as players mine in selected worlds
  • Holograms - Floating text shows everyone what a player just won

🔧 Admin Tools

  • In-Game GUI Editor - Create, edit, and delete rewards without touching configs
  • Action Editor - Add, edit, reorder, and remove actions per reward
  • Set Preview From Cursor - Click with an item to set a reward's preview icon
  • Mining Spawn GUI - Toggle and tune natural spawns entirely in-game
  • Live Reload - Update configs without restarting

⚡ Performance Optimized

  • Async Save System - Non-blocking saves prevent TPS drops
  • O(1) HashSet Lookups - Instant Lucky Block verification
  • Zero World Scans - Locations are cached, never scanned
  • Cached Settings - Hot paths read from memory, not disk
  • Graceful Shutdown - Synchronous final save guarantees no data loss

🎁 Flexible Rewards

  • Multiple Reward Types: Items, console/player commands, money (Vault compatible)
  • Per-Reward Control: Weight, permission, cooldown, enabled state, preview item
  • Effects & Spectacle: Titles, sounds, fireworks, explosions, mobs, potions, teleports
  • Custom Hook: Fire a CUSTOM_EVENT for other plugins to listen to

🎨 Action Variety

✓ Give Item ✓ Console Command ✓ Player Command

✓ Message ✓ Title ✓ Sound

✓ Explosion ✓ Spawn Mob ✓ Potion Effect

✓ Firework ✓ Random Teleport ✓ Give Money

✓ Custom Event ✓ Hologram


📦 Installation

  1. Download the latest .jar file
  2. Place in your server's plugins folder
  3. Restart your server
  4. Configure config.yml, rewards.yml, and lang/*.yml
  5. Reload with /lb reload

🎮 Commands

Player Commands

  • /lb or /luckyblocks - Show plugin help
  • Break a Lucky Block to roll a reward

Admin Commands

  • /lb give <player> [amount] - Give Lucky Block items
  • /lb editor - Open the GUI editor
  • /lb list - List all rewards
  • /lb reload - Reload all configs
  • /lb debug - Toggle debug + show tracked block count

🔐 Permissions

  • luckyblocks.use - Break Lucky Blocks for rewards (default: true)
  • luckyblocks.admin - All admin features (default: op)
  • luckyblocks.give - Give Lucky Block items (default: op)
  • luckyblocks.editor - Open the GUI editor (default: op)
  • luckyblocks.reload - Reload configs (default: op)
  • luckyblocks.debug - Debug command (default: op)

⚙️ Configuration

Clean, documented config files:

  • config.yml - Block material, holograms, mining spawn, economy, language
  • rewards.yml - Reward definitions, weights, and action lists
  • lang/en_US.yml, lang/id_ID.yml - Fully localized text (MiniMessage)

Example Mining Spawn Setup:

mining-spawn:
  enabled: true
  worlds: [world]
  chance: 0.01
  trigger-blocks: [STONE, DEEPSLATE]
  min-y: -64
  max-y: 320

🤝 Compatibility

  • Minecraft Version: 1.21+ (Paper)
  • Java Version: 21+
  • Optional Dependencies:
    • Vault (economy / money rewards)

📊 Performance Stats

  • ✅ Scales to thousands of Lucky Blocks with O(1) lookups
  • ✅ Async, non-blocking saves — zero TPS impact
  • ✅ No world scanning at any point
  • ✅ Non-persistent holograms — no ghost entities after restarts
  • ✅ Cached settings keep the break hot-path lightweight

🐛 Support & Feedback

Found a bug or have a suggestion? Please report issues with:

  • Server version (e.g., Paper 1.21)
  • Plugin version
  • Steps to reproduce
  • Console errors (if any)

Made with ❤️ by ResistanceCore If you enjoy this plugin, please leave a ❤️ love and share with other server owners!

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

Все версии →
release

LuckBlocksPlus 1.0.0

1.0.0
18 июн. 2026 г.244Minecraft: 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.9paper, spigot
Скачать
Что нового
# 🍀 LuckyBlocksPlus v1.0.0 — Initial Release First public release! A lightweight, fully GUI-configurable Lucky Blocks plugin for Paper 1.21. ## ✨ Added - **Lucky Block system** — items tagged via PersistentDataContainer so ordinary blocks never trigger; placed-block locations persist across restarts. - **Weighted reward pool** — per-reward enabled state, weight, permission, cooldown, and preview item. - **14 action types** — `GIVE_ITEM`, `RUN_COMMAND_CONSOLE`, `RUN_COMMAND_PLAYER`, `MESSAGE`, `TITLE`, `SOUND`, `EXPLOSION`, `SPAWN_MOB`, `POTION_EFFECT`, `FIREWORK`, `RANDOM_TELEPORT`, `GIVE_MONEY` (Vault), `CUSTOM_EVENT`, `HOLOGRAM`. - **In-game GUI editor** — manage rewards, actions, and settings with anti-dupe / shift-click / drag / double-click protection. - **Holograms** — non-persistent TextDisplay entities show nearby players what was won, with no ghost holograms after restarts. - **Mining spawn** — Lucky Blocks can appear naturally while mining in selected worlds (configurable chance, Y-range, trigger blocks), editable in the GUI. - **Localization** — English + Indonesian, MiniMessage formatting, auto-merge of new language keys. - **Commands** — `/lb give | editor | reload | list | debug` with permissions and tab-completion. ## ⚡ Performance - O(1) Lucky Block lookups, no world scans, async file saves — built for large survival servers. ## 📦 Requirements - Paper **1.21**, Java **21** - Optional: **Vault** (for the `GIVE_MONEY` action)