A plugin for refreshing world contents item一个用于刷新世界内容器物品的插件
RefreshLoot is a plugin designed to refresh items in containers across the world. Administrators can use commands to refresh random slots in all containers, including chests, trapped chests, large chests, barrels, furnaces, hoppers, and more.
/refreshloot or /rloot - Refresh random slots in all containers across the world./refreshloot reload or /rloot reload - Reload the configuration file.refreshloot.admin (default OP permission)settings:
debug: false # Whether to enable debug mode
refresh-interval: 300 # Refresh interval in seconds
random-slots: 3 # Number of random slots to refresh each time
clear-containers: true # Whether to clear container contents before refreshing
Container Clearing Explanation:
clear-containers: true - Clears all items in containers before adding new random items.clear-containers: false - Retains existing items in containers and only adds new items to randomly selected slots.true for better refresh results.Each container type can be configured individually:
enabled: Whether to enable refreshing for this container type.refresh-slots: Number of slots to refresh each time.items: List of possible items to refresh.Item configuration format: MATERIAL:min-max
DIAMOND:1-3 - Diamonds, quantity 1-3.BREAD:2-5 - Bread, quantity 2-5.IRON_SWORD:1 - Iron Sword, fixed quantity of 1.Important Note: In Minecraft 1.21.4, the names of golden equipment have been changed:
GOLD_HELMET → GOLDEN_HELMETGOLD_CHESTPLATE → GOLDEN_CHESTPLATEGOLD_LEGGINGS → GOLDEN_LEGGINGSGOLD_BOOTS → GOLDEN_BOOTSRefer to the MATERIAL_NAMES.md file for a detailed list of item names.
RefreshLoot-1.0.0.jar file into the server's plugins folder./reload command.config.yml./rloot command to start refreshing containers.The plugin supports hot-reloading configuration files without restarting the server:
/rloot reload
refreshloot.admin - Allows the use of loot refresh commands (default OP permission)RefreshLoot 是一个用于刷新世界内容器物品的插件。管理员可以使用命令来刷新世界内所有容器的随机槽位,包括箱子、陷阱箱、大箱子、木桶、熔炉、漏斗等。
/refreshloot 或 /rloot - 刷新世界内所有容器的随机槽位/refreshloot reload 或 /rloot reload - 重新加载配置文件refreshloot.admin (默认OP权限)settings:
debug: false # 是否启用调试模式
refresh-interval: 300 # 刷新间隔(秒)
random-slots: 3 # 每次刷新时随机刷新的槽位数量
clear-containers: true # 是否在刷新前清除容器内容
清除容器功能说明:
clear-containers: true - 在刷新物品前先清除容器中的所有物品,然后添加新的随机物品clear-containers: false - 保留容器中的现有物品,只在随机选择的槽位中添加新物品true 以获得更好的刷新效果每个容器类型都可以单独配置:
enabled: 是否启用该容器类型的刷新refresh-slots: 每次刷新时刷新的槽位数量items: 可能刷新的物品列表物品配置格式:MATERIAL:min-max
DIAMOND:1-3 - 钻石,数量1-3个BREAD:2-5 - 面包,数量2-5个IRON_SWORD:1 - 铁剑,固定1个重要提示: 在Minecraft 1.21.4版本中,金质装备的名称已更改:
GOLD_HELMET → GOLDEN_HELMETGOLD_CHESTPLATE → GOLDEN_CHESTPLATEGOLD_LEGGINGS → GOLDEN_LEGGINGSGOLD_BOOTS → GOLDEN_BOOTS详细物品名称对照表请参考 MATERIAL_NAMES.md 文件。
RefreshLoot-1.0.0.jar 文件放入服务器的 plugins 文件夹/reload 命令config.yml/rloot 命令开始刷新容器插件支持热重载配置文件,无需重启服务器:
/rloot reload
## 注意事项
- 插件会扫描世界中的所有区块来查找容器,在大世界中可能需要较长时间
- 建议在服务器负载较低时使用刷新命令
- 可以通过配置文件自定义每种容器刷新的物品和数量
- 启用调试模式可以查看详细的刷新信息
## 权限
- `refreshloot.admin` - 允许使用物资刷新命令(默认OP权限)