This is a library mod for all my lucky block mods.
UI_STONECUTTER_TAKE_RESULT sound effect (volume and pitch are both 1.0F); randomly executes preset events (only one event in the current example).spawnItem method); items are generated at the center of the block's position with a slight projectile speed in a random direction.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).