
该模组目前允许你更改方块和实体的经验值掉落。你可以指定操作列表,对全部或特定(通过 ID 或 TAG)的方块/实体的经验值掉落执行操作。如果需要随机数量,还可以为数值指定一个范围。操作将按照其指定的优先级顺序执行。
注意:这是一个服务端模组,配置文件将在 serverconfig 文件夹内按世界生成。
方块破坏的配置示例:
以下配置将所有方块的经验值掉落设为 0。然后为所有标记为 #minecraft:mineable/shovel 的方块增加 0-10 点经验值,并将标记为 #forge:ores 的方块的经验值掉落设为 2-5。
#方块破坏设置
[block_breaking]
#可用操作:[SET, ADD, SUBTRACT, MULTIPLY, DIVIDE]
#全局操作列表。格式:'[operation],[min],[max],[priority]'
#全局操作在任何独特操作之前运行。
#示例:
#'set,0,0,0' - 将所有方块的 xp 设为 0。
blockBreakGlobalOperations = ["set,0,0,0"]
#独特操作列表。格式:'[block_id/tag_id],[operation],[min],[max],[priority],[is_last]'
#示例:
#'minecraft:dirt,set,2,2,0,true' - 将泥土方块的 xp 掉落设为 2,具有最高优先级并停止任何额外操作。
#'#forge:ores,multiply,1,2,1,false' - 将所有标记为 forge:ores 的方块的 xp 掉落乘以 1-2,允许后续操作。
blockBreakOperations = ["#minecraft:mineable/shovel,add,0,10,0,false", "#forge:ores,set,2,5,0,false"]
常见问题解答
我可以在我的整合包中使用这个模组吗?
当然可以!只需确保为你的整合包使用正确的资源来源(Modrinth/CurseForge)。
会移植到 x.x.x 版本吗?
欢迎在我的问题追踪器上提交版本移植请求,我会看看能做什么。

This mod currently lets you change the XP drops of blocks and entities. It lets you specify lists of operations to perform on the XP drops of either all block/entities or specific ones (by ID or TAG). You can also specify a range for your value if you want a randomized amount. Operations are ordered by their specified priorities.
Note: This is a server-sided mod and the configuration file will be generated per-world inside the serverconfig folder.
Example configuration for block breaking:
The following sets the XP drops of all blocks to 0. Then it adds 0-10 XP for all blocks tagged #minecraft:mineable/shovel and sets the XP of blocks tagged #forge:ores to 2-5.
#Settings for block breaking
[block_breaking]
#Available operations: [SET, ADD, SUBTRACT, MULTIPLY, DIVIDE]
#List of global operations. Format: '[operation],[min],[max],[priority]'
#Global operations are run before any unique operations.
#Examples:
#'set,0,0,0' - Sets the xp of all blocks to 0.
blockBreakGlobalOperations = ["set,0,0,0"]
#List of unique operations. Format: '[block_id/tag_id],[operation],[min],[max],[priority],[is_last]'
#Examples:
#'minecraft:dirt,set,2,2,0,true' - Sets the xp drop of the dirt block to 2, takes highest priority and stops any additional operations.
#'#forge:ores,multiply,1,2,1,false' - Multiplies xp drop of all blocks tagged forge:ores by 1-2, allows additional operations.
blockBreakOperations = ["#minecraft:mineable/shovel,add,0,10,0,false", "#forge:ores,set,2,5,0,false"]
FAQ
Can I use this in my modpack?
Yes, go for it! Just make sure to use the appropriate source for your modpack (Modrinth/CurseForge).
Will this be ported to x.x.x version?
Feel free to open up a version port request on my issue tracker and I will see what I can do.
评论 0
登录后参与评分
还没有评论,来抢沙发吧