Mineuniverse
Log in Register
Mods

LuckyBlock Lib

A Library for LuckyBLock
by cu6
Download Claim this project
1,031 downloads
0 likes
Updated Jul 6, 2026
0 hypes
API and Library Create

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_RESULT sound 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 spawnItem method); 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 (playSound and playCustomSound).
lbl-1.0.0-1.20.1-fabric.jar
MC Fabric, Client, 1.20.1, Server
Release 2025-08-14 Get
lbl-1.0.0-1.20.1-forge.jar
MC Client, 1.20.1, Forge, Server
Release 2025-08-14 Get

More from cu6

NeoA Ban
72
Avaritia : Expand
286,460
Render Blender
149,259

You Might Also Like

Vivecraft
A Minecraft VR mod on a loader of your choice!
9,988,339
Athena
A crossplatform (Forge/Fabric) solution to connected block textures for 1.19.4+
99,799,527
Lodestone
A collection of code used throughout projects under the Lodestar team.
9,914,417
TheDragonLib
A library for most of sokratis12GR's Mods
9,910,232
Multi Mob Library
A library mod containing essential files for Daveyx0's mob mods
9,892,767
FTB Library (Forge) (Legacy)
FTB Library is a library mod that is used for some of our mods.
98,265,314