跳到正文

Luck All Bonus

作者:phoupraw

Luck benefits all chests now

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

MCMOD
Modrinth
Curseforge

Luck All Bonus

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

  • 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

常见问题

Luck All Bonus 支持哪些 Minecraft 版本?

Luck All Bonus 支持 Minecraft Java 版 1.21–26.1.2,共 5 个版本,可用的加载器:Fabric / NeoForge。下载时注意选择和你游戏版本一致的文件。

Luck All Bonus 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分

phoupraw 的其他作品

查看全部 →