Description
Inspired by a Hytale mod called Lucky Mining this is Lucky Chance.
A luck/random chance based addon that gives every ore that you break a chance to instantly clone or respawn on the spot.
When you get lucky a sound plays and a particle effect is spawned on the block.
The more ores you break in a row, the better your odds getting lucky. Keep the streak alive and the bonuses start showing up.
The lucky list, Its a list of Ores that can trigger the lucky chance It by default includes all vanilla ores- coal, copper, gold, redstone, lapis, and emerald, plus all their deepslate versions, and the Nether ores - nether quartz, nether gold, or ancient debris and they duplicate into the netherrack around them.
Support for ores from other addons will be added soon.
(Comment your favourite addons and I will make it so they are supported by default in next update)
If you break a block that isn't on the lucky list, or wait too long between ores (By default its set to 3 sec) then your luck resets, different ores don't matter all ores count as a single streak (Meaning you can mine different kinds of ore and it will build your luck for all of them).
I recommend using a better pick axe with efficiency enchants to mine faster and accumulate your luck.
Compatibility
Made for Minecraft 1.26 and up. No experimental features needed. Works in singleplayer and on multiplayer worlds.
Achievements stay on for that world.
This is version 1.1 of an ongoing work-in-progress. Your feedback and ideas are appreciated.
Credits to Luciousinferno.
Original Mode Lucky Mining by Buuz135
For those who like to fiddle around -
Look for the config file in scripts folder change the values as your want in the code. (I have plans to add ingame sliders and dropdown menus to change the settings on later updates).
If you want to add your custom ores to the lucky list add them in the config's whitelist array.
You can learn from my code.

If you find any bug or want to suggest improvements please comment or join my discord channel
I will soon make a showcase video on my Youtube channel and also teach you how to modify the addon and I have plans to create a tutorial series on how to make Minecraft addon, so if you want to learn please consider subsribing to my channel.
My channel Link - Luciousinferno



