
LuckyBlock Lib
A Library For My LuckyBlock Mods
About this Mod
LuckyBlock Lib
This is a library mod for all my lucky block mods.
Features
- Interaction trigger methods: Effects are triggered when the player right-clicks; effects are triggered when the block is destroyed; effects are triggered when a redstone signal is received (whether the signal is on or off).
- General trigger effects: The block itself is destroyed after triggering; plays the
UI_STONECUTTER_TAKE_RESULTsound effect (volume and pitch are both 1.0F); randomly executes preset events (only one event in the current example). - Event effects (current example): Generates diamond items, randomly dropping 1-5 diamonds (implemented through the
spawnItemmethod); items are generated at the center of the block's position with a slight projectile speed in a random direction. - Potential expansion functions (implemented methods): Entity spawning, which can specify the entity type, quantity range, and custom name to spawn entities (
spawnEntity); fluid spawning, which can generate water, lava, or other fluids at the block's position (spawnFluid); structure placement, which can generate a preset structure at a specified position with rotation settings supported (placeStructure); player effects, which can add status effects to the player, and if the same effect already exists, the duration and level are stacked (applyEffectToPlayer); sound playback, supporting the playback of built-in sound effects or custom sound effects (playSoundandplayCustomSound).
Available Versions
How to Install LuckyBlock Lib on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set fabric Loader
In the panel under "Egg", select the fabric loader and matching Minecraft version (1.20.1).
Install Mod
Open the mod browser in the dashboard and search for "LuckyBlock Lib". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.20.1
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
LuckyBlock Lib server crashes on startup – what to do?
Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.20.1). You can switch loaders with one click in the panel.
Is LuckyBlock Lib compatible with fabric and forge?
LuckyBlock Lib officially supports fabric, forge for Minecraft 1.20.1. Note: Forge and Fabric mods are NOT cross-compatible – pick one loader and stick with it. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with LuckyBlock Lib – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if LuckyBlock Lib consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install LuckyBlock Lib with just one click on your server.