chanceDependencyLuck

fun chanceDependencyLuck(baseChance: Double, modifier: Double): (Player?) -> Double

Chance function that adds luck * modifier to baseChance, using the held tool's luck (getLuckChance). Feed the result to Data.chance; keep values in 0.0..1.0.

// 10% base, +5% per Fortune/Looting level
effectiveItem.addToLoot(
dropChance = EffectiveDropable.chanceDependencyLuck(0.10, 0.05),
lootTables = null,
blocks = listOf(Material.DIAMOND_ORE),
entities = null,
)