promotional bannermobile promotional banner

Luck All Bonus

Nearly every kind of loot scales with luck.
end_city_chest.png

end_city_chest.png

scatter.png

scatter.png

Description

In vanilla, luck only matters in a few places (fishing loot, for example). With this mod, nearly every kind of loot scales with luck:

  • Chest loot is increased N-fold.
  • Mob equipment drop rate is increased by N/100.
  • When calculating rare item drop rates, it is treated as if the Looting enchantment level were increased by N.

(N is the Luck value.)

Chest loot

  • Every loot table whose id starts with chests/ or chest/, or whose parameter set is chest, gets its bonus rolls raised to at least 1 per pool
  • Vanilla counts bonus rolls as "floor(bonus rolls × luck)", so each point of luck adds one more roll and roughly doubles the loot of a chest

Block drops

  • When a player breaks a block, the breaker's luck is written into the loot context
  • Pool weights and bonus rolls that depend on luck therefore change accordingly

Entity drops

  • In the random_chance_with_enchanted_bonus condition, the enchantment level is increased by "luck × entity loot bonus"
  • The count of enchanted_count_increase is rounded probabilistically instead of with Math.round

Equipment drops

  • For each point of luck the killer has, equipment drop chances are raised by the "equipment drop bonus"

Container loot

  • Breaking a chest, barrel, decorated pot or any other container block unpacks its loot table with the breaking player, so luck takes part in generation. Vanilla only does this for shulker boxes
  • Inserting an item into a decorated pot also passes the player along
  • Breaking a chest boat, chest minecart or any other container entity passes the player along too

Scattering loot

  • Loot that does not fit into the container is no longer discarded, but dropped right where the block or entity is
  • The extra loot is split into as many full stacks as needed

No splitting drops

  • Contents of a container drop in full stacks instead of being split into random small piles

Probabilistic rounding

  • Fractional parts are carried with a probability instead of always being floored or rounded, so even a fraction of a point of luck matters
  • Bonus rolls and entity drop counts are controlled by "probabilistic rounding: loot pool" and "probabilistic rounding: entity drops" respectively

Bone meal

  • When "bone meal bonus" is above 0, bone meal is applied "1 + luck × bone meal bonus" times. Defaults to 0, which disables it

Configuration

Everything lives in config/luckallbonus-server.toml and is decided by the server.

  • enable: master switch. Turning it off disables every change this mod makes
  • round: probabilistic rounding for entity drops. Fractional counts are carried with a probability instead of being rounded
  • floor: probabilistic rounding for loot pools. Fractional bonus rolls are carried with a probability instead of being floored
  • equipment: equipment drop bonus. Extra drop chance per point of luck the killer has, defaults to 0.01
  • entity_loot: entity loot bonus. Extra enchantment level per point of luck in the random_chance_with_enchanted_bonus condition, defaults to 1
  • bonemeal: bone meal bonus, defaults to 0 (disabled)
  • scatter: scatter overflow loot, on by default
  • container: unpack container loot with the player, on by default
  • no_split: do not split drops, on by default

Chest in End City Overflow and scatter

Luck All Bonus Team

profile avatar
  • 2
    Followers
  • 15
    Projects
  • 122.7K
    Downloads

More from PhouprawView all