
战利品补充
一个用于自动补充自然生成战利品容器物品栏的Fabric服务端模组。
Loot Refill
这是一个 Fabric 服务端 Minecraft 模组,允许箱子和其他包含自然生成战利品的容器自动补充战利品。
由 Ember Host 赞助
如果你正在寻找性价比极高的 Minecraft 服务器托管服务,不妨看看 Ember Host。你可以通过使用下方的横幅来支持我的开发工作,每次首次购买我将获得 50% 的分成,同时你会获得 10% 的折扣。
配置
该模组包含若干设置,可通过服务器配置文件夹中名为 lootrefill.toml 的配置文件进行访问。这些设置可以在游戏内或通过以 /lootrefill config 开头的控制台命令进行编辑,并且可以通过 /lootrefill config reload 重新加载。
以下是默认配置文件。每个设置都附有注释,说明其作用。
[preferences]
#(Default = 1800) The time in seconds between each refill. Note that a refill only occurs whenever a loot container is opened.
time_until_refill = 1800
#(Default = -1) The max amount of refills allowed per container. -1 is the minimum value and enables unlimited refills. 0 disables loot refills. For a given container, this value can be overridden by setting the individual max refill amount for that container.
max_refills = 1
#(Default = false) If enabled, a container will only refill if the amount of times a player has refilled a container is lower than the max refill setting value.
per_player_refill_counts = false
#(Default = true) Prevents refilling containers when they are not fully empty.
refill_only_when_empty = true
#(Default = false) If enabled, containers with a set loot table id and a refill count lower than the max refill setting value, or if the max refill amount is set to unlimited, will be unbreakable by players. They can still be broken by indirect means such as explosions.
protect_loot_containers = false
手动设置战利品容器的战利品表 ID 和最大补充次数
由于无法为已经被搜刮过的自然生成容器追溯分配战利品表 ID,该模组包含一个手动设置的命令:
/lootrefill setLootTableId <loot_table_id>
其中 <loot_table_id> 是你想要分配的战利品表 ID 的注册表键标识符。
你还可以指定战利品容器的坐标和维度,以便从控制台使用:
/lootrefill add_loot_table_id <loot_table_id> <x> <y> <z> <dimension>
你还可以使用以下命令为特定战利品容器设置最大补充次数:
/lootrefill setMaxRefillAmount <max_refill_amount>
其中 <max_refill_amount> 是一个整数值。默认情况下,所有容器的单独最大补充次数均为 -1。将其设置为 0 或更高值将使该特定容器使用其单独的最大补充次数,而不是配置中指定的值。
最后,该命令还接受位置和维度参数,以便从控制台使用:
/lootrefill setMaxRefillAmount <max_refill_amount> <x> <y> <z> <dimension>
支持
如果你想报告 Bug 或提出建议,可以通过该模组的 问题追踪器 进行反馈。
正在加载版本记录…
正在加载评论…
评论在新手盒子客户端中发表,这里同步展示。