Lucky Block - XPrison Addon 1.1

Lucky Block enchant for X-Prison Core

rwkvH9olchYF9qQ6ySpi5ZsGOWbEixi4pP1oqvfB.webp

🎲 Lucky Block Enchant β€” Custom Addon for X-Prison

πŸ’Ž Premium Addon for X-Prison Enchants
⚠️ This is a custom enchantment addon made exclusively for the X-Prison Core. It will not function without X-Prison installed.


✨ What is Lucky Block?

Lucky Block is a powerful, progression-based enchant that brings excitement, rewards, and randomness to your prison server. When equipped, it gives players a chance to spawn a Lucky Block while miningβ€”which, when broken, rewards them with valuable loot, boosters, or economy perks.

Perfect for engaging players and keeping mining fun, Lucky Block is fully customizable and scales with enchant level, making it a great long-term progression goal.

🧱➑️🎁 Every mined block is a chance at a jackpot!


🧠 How It Works

βœ… Works passively when equipped on a pickaxe
🎁 Chance to spawn a Lucky Block increases with enchant level
πŸ’₯ Lucky Blocks drop valuable rewards when broken (commands, messages, weights all configurable)
πŸ“ˆ Level-based scaling: 0.015% at Level 1 β†’ 1.5% at Max Level 100
πŸ“£ Customizable spawn message: &6Lucky Block spawned! &aBreak it to receive a random reward!
βš™οΈ Ideal for crate systems, boosters, and economy-driven servers



πŸ”’ Reward Pool (Weighted RNG)

Each Lucky Block can randomly trigger one of the following (by default, configurable):

  • πŸ’° 1,000,000 Tokens β€” 30% weight
  • πŸ’΅ $20,000,000 in-game money β€” 30% weight
  • 🎁 2x Legendary Crate Keys β€” 20% weight
  • πŸ”₯ 2.5x Sell Multiplier (10 mins) β€” 10% weight
  • πŸͺ™ 2.5x Token Multiplier (10 mins) β€” 10% weight

Fully editable reward system using commands, messages, and weights in config.


πŸ”§ Configuration (JSON Overview)

{
"class": "dev.drawethree.xprison.enchant.LuckyBlockEnchant",
"id": 102,
"rawName": "luckyblock",
"name": "&eLucky Block",
"enabled": true,
"increaseCostBy": 250,
"maxLevel": 100,
"currency": "GEMS",
"initialCost": 1000,
"chance": 0.015,
"pickaxeLevelRequired": 1,
"message": "&6Lucky Block spawned! &aBreak it to receive a random reward!",
"rewards": [
{
"command": "tokens give %player% 1000000",
"message": "&aYou received &e1,000,000 &atokens!",
"weight": 30
},
{
"command": "eco give %player% 20000000",
"message": "&aYou received &e$20,000,000&f!",
"weight": 30
},
{
"command": "crate givekey %player% legendary 2",
"message": "&6You received &e2x &lLegendary Crate Keys!",
"weight": 20
},
{
"command": "sellmulti %player% 2.5 10 MINUTES",
"message": "&bSell Multiplier &fx2.5 &bfor 10 minutes activated!",
"weight": 10
},
{
"command": "tokenmulti %player% 2.5 10 MINUTES",
"message": "&bToken Multiplier &fx2.5 &bfor 10 minutes activated!",
"weight": 10
}
],
"refund": {
"enabled": true,
"guiSlot": 53,
"percentage": 50.0
},
"gui": {
"name": "&eLucky Block",
"material": "SPONGE",
"customModelData": 0,
"slot": 53,
"description": [
"&7&o(( Chance to spawn a Lucky Block while mining ))",
"&7&oBreak it to receive an OP reward!",
"",
"&fScales with level:",
"&f➀ &7Level 1: 0.015%",
"&f➀ &7Level 100: 1.5% max chance"
]
}
}



πŸ“ˆ Scaling Chance Formula:
Level * base chance (0.015%)
β†’ At Level 100, you reach 1.5% proc chance


πŸ›’ Monetization-Ready

This enchant is perfect for donor perks and premium shops:

  • Add to GUI token shops
  • Include in crate loot tables
  • Bundle with ranks, kits, or seasonal rewards
  • Encourage prestige grinding by scaling the reward frequency

πŸ› οΈ Installation

  1. Drop LuckyBlockEnchant.jar into /plugins/X-Prison/addons/
  2. Reload or restart your server
  3. Open the in-game enchant GUI and apply it to a pickaxe
  4. Start mining and watch the blocks turn lucky!

πŸ“‹ GUI Integration

  • Appears as a Sponge in the enchant GUI
  • Custom description with scaling details and tooltips
  • Refundable at 50% of cost by default

πŸ”§ Requirements

βœ… Requires X-Prison Plugin
❌ Not compatible with other prison systems
πŸ” Fully tested with Spigot, Paper, and Purpur


πŸ“ž Support & Custom Enchants

Want help or custom enchantments tailored for your server?

πŸ“¨ Contact via DM or join our Discord server for assistance and custom work.


βœ… Terms of Use

  • Licensed for unlimited personal/server use
  • Redistribution or resale is strictly prohibited
  • Follows the same license structure as X-Prison

πŸš€ Add Some Luck to Your Mines Today!

Lucky Block keeps players engaged, rewarded, and always hoping for that next big prize.
Make mining addictive. Make it lucky.

Product Info
Statistics
19

Views

0

Purchases

0

Downloads

755.47 KB

File size

27.05.2026

Published

27.05.2026

Updated

Info
Server type
Supported software
Supported Versions
1.13 - 26.1.2
Product Image
Lucky Block - XPrison Addon
Lucky Block - XPrison Addon