战利品补给
这是一个适用于 Fabric 的服务端 Minecraft 模组,允许箱子及其他含有自然生成战利品的容器自动重新补充物品。
由 Ember Host 赞助
如果您正在寻找性价比高且优质的 Minecraft 服务器托管服务,请查看 Ember Host。您可以通过下方的横幅支持我的开发工作,这将使我获得每笔首购订单 50% 的分成,同时您也能享受 10% 的折扣。
配置
该模组包含多个可通过名为 lootrefill.toml 的配置文件访问的设置,该文件位于服务器的 config 文件夹中。您可以在游戏内或通过以 /lootrefill config 开头的控制台命令来编辑这些设置,并使用 /lootrefill config reload 重新加载它们。
以下是默认配置文件。每个设置都附有注释说明其作用。
[preferences]
#(默认值 = 1800) 每次补给之间的时间间隔(秒)。请注意,只有在打开战利品容器时才会触发补给。
time_until_refill = 1800
#(默认值 = -1) 每个容器允许的最大补给次数。-1 是最小值,表示启用无限次补给。0 将禁用战利品补给。对于特定的容器,可以通过设置该容器的单独最大补给次数来覆盖此值。
max_refills = 1
#(默认值 = false) 如果启用,只有当玩家补给某个容器的次数低于最大补给设置值时,该容器才会进行补给。
per_player_refill_counts = false
#(默认值 = true) 防止在非完全空的情况下补给容器。
refill_only_when_empty = true
#(默认值 = false) 如果启用,具有设定好的战利品表 ID 且补给次数低于最大补给设置值(或最大补给次数设置为无限)的容器将不可被玩家破坏。它们仍可通过间接方式(如爆炸)被破坏。
protect_loot_containers = false
手动设置战利品容器的战利品表 ID 和最大补给次数
由于无法为已经开过 loot 的自然生成容器回溯分配战利品表 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 或更高值将使该特定容器使用其单独的 maximum refill amount,而不是配置文件中指定的值。
最后,此命令也接受位置和维度参数以便从控制台使用:
/lootrefill setMaxRefillAmount <max_refill_amount> <x> <y> <z> <dimension>
支持
如果您想报告错误或提出建议,可以通过模组的 问题追踪器 进行反馈。
Loot Refill
This is a Fabric server-side Minecraft mod that allows chests and other contains with naturally generated loot to refill themselves automatically.
Sponsored by Ember Host
Check out Ember Host if you are looking for a Minecraft server host that offers exceptional value for price. You can support my development by using the banner below, which gives a 50% cut for every first purchase to me, alongside a 10% discount to you.
Configuration
The mod includes several settings accessible via a config file named lootrefill.toml which can be found in the server's config folder. The settings can be edited in-game or from the console via commands starting with /lootrefill config, and they can be reloaded with /lootrefill config reload.
The following is the default configuration file. Each setting is commented with an explanation as to what it does.
[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
Manually set a loot container's loot table id and max refill amount
Since there is no way to retroactively assign loot table ids for already looted naturally generated containers, the mod includes a command to set one manually:
/lootrefill setLootTableId <loot_table_id>
where <loot_table_id> is the registry key identifier of the loot table id you wish to assign.
You can also specify the coordinates and dimension of the loot containers for use from a console:
/lootrefill add_loot_table_id <loot_table_id> <x> <y> <z> <dimension>
You can also set the max refill amount for a specific loot container by using:
/lootrefill setMaxRefillAmount <max_refill_amount>
where <max_refill_amount> is an integer value. By default, all containers have an individual max refill amount of -1. Setting it to 0 or higher will make the specific container use its individual max refill amount instead of the one specified in the config.
Finally, this command also accepts a position and dimension argument for use from the console:
/lootrefill setMaxRefillAmount <max_refill_amount> <x> <y> <z> <dimension>
Support
If you would like to report a bug, or make a suggestion, you can do so via the mod's issue tracker.
下载 Loot Refill
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Loot Refill
下载 Loot Refill
下载 Loot Refill
下载 Loot Refill
下载 Loot Refill
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Loot Refill
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
- 已更新到 1.21.6。
如果您想报告错误或提出建议,可以通过模组的 问题追踪器 进行反馈。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧