Luck All Bonus
在原版 Minecraft 中,幸运值仅在少数地方生效(例如钓鱼掉落)。通过此模组,几乎所有的掉落物类型都会随幸运值缩放。
箱子掉落物
- 所有 ID 以
chests/或chest/开头,或者参数集为chest的掉落表,其额外投掷次数将至少提升至每池 1 次 - 原版计算额外投掷次数的公式为“向下取整(额外投掷次数 × 幸运值)”,因此每点幸运值会增加一次投掷,大致使箱子的掉落量翻倍
方块掉落
- 当玩家破坏方块时,破坏者的幸运值会被写入掉落上下文
- 依赖幸运值的池权重和额外投掷次数会相应调整
实体掉落
- 在
random_chance_with_enchanted_bonus条件中,附魔等级将增加“幸运值 × 实体掉落加成” enchanted_count_increase的数量采用概率方式舍入,而非使用Math.round
装备掉落
- 击杀者每拥有 1 点幸运值,装备掉落几率将提升“装备掉落加成”
容器掉落物
- 破坏箱子、 barrel(木桶)、装饰罐或其他任何容器方块时,会以破坏玩家的视角展开其掉落表,从而让幸运值参与生成过程。原版仅对潜影盒执行此操作
- 向装饰罐中插入物品也会传递玩家信息
- 破坏带箱子的船、带箱子的矿车或其他任何容器实体同样会传递玩家信息
溢出掉落物散布
- 无法放入容器的掉落物不再被丢弃,而是直接掉落在方块或实体所在的位置
- 额外的掉落物将被拆分为尽可能多的完整组
不拆分掉落物
- 容器的内容物将以完整组的形式掉落,而不是被拆分成随机的小堆
概率舍入
- 小数部分通过概率保留,而不是总是向下取整或四舍五入,因此即使是不足 1 点的幸运值也有意义
- 额外投掷次数和实体掉落数量分别由“概率舍入:掉落池”和“概率舍入:实体掉落”控制
骨粉
- 当“骨粉加成”大于 0 时,骨粉将被应用“1 + 幸运值 × 骨粉加成”次。默认值为 0,即禁用该功能
配置
所有内容均位于 config/luckallbonus-server.toml 中,并由服务器决定。
enable: 总开关。关闭它将禁用此模组所做的所有更改round: 实体掉落物的概率舍入。小数计数通过概率保留,而不是进行舍入floor: 掉落池的概率舍入。小数额外投掷次数通过概率保留,而不是向下取整equipment: 装备掉落加成。击杀者每点幸运值增加的额外掉落几率,默认为 0.01entity_loot: 实体掉落加成。在random_chance_with_enchanted_bonus条件中,每点幸运值增加的额外附魔等级,默认为 1bonemeal: 骨粉加成,默认为 0(已禁用)scatter: 散布溢出掉落物,默认开启container: 以玩家视角展开容器掉落物,默认开启no_split: 不拆分掉落物,默认开启
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/orchest/, or whose parameter set ischest, 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_bonuscondition, the enchantment level is increased by "luck × entity loot bonus" - The count of
enchanted_count_increaseis rounded probabilistically instead of withMath.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 makesround: probabilistic rounding for entity drops. Fractional counts are carried with a probability instead of being roundedfloor: probabilistic rounding for loot pools. Fractional bonus rolls are carried with a probability instead of being flooredequipment: equipment drop bonus. Extra drop chance per point of luck the killer has, defaults to 0.01entity_loot: entity loot bonus. Extra enchantment level per point of luck in therandom_chance_with_enchanted_bonuscondition, defaults to 1bonemeal: bone meal bonus, defaults to 0 (disabled)scatter: scatter overflow loot, on by defaultcontainer: unpack container loot with the player, on by defaultno_split: do not split drops, on by default
下载 Luck All Bonus
下载 Luck All Bonus
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Luck All Bonus
下载 Luck All Bonus
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Luck All Bonus
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Luck All Bonus
下载 Luck All Bonus
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Luck All Bonus
下载 Luck All Bonus
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Luck All Bonus
0.4.2
- 修复:当骨粉幸运加成禁用时,骨粉不可用
0.4.1
- 修复:在 NeoForge 21.1.264 之前的版本中崩溃
0.4.0
- 支持幸运掉落。默认禁用。
- 修复:Mixin 目标不明确
0.3.1
- 修复:在生产环境中崩溃
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
原版世界生成优化模组
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
新增 50+ 个独特生物群系,为你的世界增添新树木、花卉等更多元素!
模组
添加全屏世界地图,显示你在世界中已探索的区域。与 Xaero's Minimap 搭配使用效果极佳。
模组
基于 GTCEu 1.12.2 的现代 GregTech
模组
让你能够在世界中的任何位置定位结构。
评论 0
登录后参与评分
还没有评论,来抢沙发吧