
重新拾取
使用命令自动在已放置的箱子内生成战利品!
为所有箱子添加战利品
想要在箱子中生成战利品,而不必手动填充?这个模组提供了简单的命令来实现这一点,并且默认还附带了一些战利品表。
只要其他模组提供了有效的战利品表,本模组就能与之配合使用。如果你不知道那是什么,请参阅下文。
本模组仅支持普通箱子,不支持木桶等(这是我正在处理的事项)。
命令
要在特定半径内生成战利品,请使用此命令:
/reloot <container type> generateNewLoot <loottable> [radius] [mode] [refill] [time in seconds]
要在所有已加载的区块中生成战利品,请使用此命令:
/reloot <container type> regenerateAllLoot <loottable> [mode] [refill] [time in seconds]
- 你要重新填充战利品的容器类型(chest/trapped_chest/barrel/all)
- 表示用于填充箱子的战利品表。
- [radius] 只有半径范围内的箱子会受到影响(默认值为 50 格)。
- [mode] 可以是 replace 或 keep(可选,默认值为 keep)。如果设置为 keep,箱子会保留其中已有的物品;如果设置为 replace,则会替换现有的战利品。
- [refill] 可选;默认禁用。如果设置了 refill,你还需要设置重新填充发生的时间。这将在所述时间后重新填充箱子,并重复进行,直到世界停止。
- time in seconds 重新填充发生前的时间(秒)。
示例
以下命令会将 100 格范围内箱子中的所有物品替换为“simple_dungeon”战利品表:
/reloot chest generateNewLoot minecraft:chests/simple_dungeon 100 replace
以下命令会将“desert_pyramid”战利品表中的物品添加到所有已加载区块中的每个容器中:
/reloot all regenerateAllLoot minecraft:chests/desert_pyramid keep
以下命令会将“random_rarity_chest”战利品表中的物品添加到每个木桶中,并在 60 秒后重新填充它们。
/reloot barrel regenerateAllLoot reloot:chests/random_rarity_chest replace refill 60
什么是战利品表?
(箱子)战利品表是一个 .json 文件,它告诉 Minecraft 应该在箱子中放入哪些物品。Minecraft 默认自带一些战利品表,但许多模组也会添加自己的战利品表。请参阅下方 Minecraft 中已有的战利品表。
“woodland mansion”战利品表的示例:
minecraft:chests/woodland_mansion
ReLoot 战利品表
要与本模组一起使用,只需写入 reloot:chests/<loottable here>
- random_rarity_chest(这个会从下面的战利品表中随机选择)
- common_chest
- rare_chest
- epic_chest
- legendary_chest
默认 Minecraft 箱子战利品表
要与本模组一起使用,只需写入 minecraft:chests/<loottable here>
- abandoned_mineshaft
- ancient_city
- ancient_city_ice_box
- bastion_bridge
- bastion_hoglin_stable
- bastion_other
- bastion_treasure
- buried_treasure
- desert_pyramid
- end_city_treasure
- igloo_chest
- jungle_temple
- jungle_temple_dispenser
- nether_bridge
- pillager_outpost
- ruined_portal
- shipwreck_map
- shipwreck_supply
- shipwreck_treasure
- simple_dungeon
- spawn_bonus_chest
- stronghold_corridor
- stronghold_crossing
- stronghold_library
- underwater_ruin_big
- underwater_ruin_small
- woodland_mansion
未来计划(概念)
- 支持多个战利品表(例如:30% simple_dungeon 和 70% desert_pyramid)。
- 模组容器,例如保险箱、抽屉,可以通过命令替换箱子。
- 内置支持不同模组的战利品表(例如:reloot:chests/rare_chest,其中主要包含稀有物品或其他主题战利品表)。
- GUI?(可能性较小)
正在加载版本记录…
正在加载评论…
评论在新手盒子客户端中发表,这里同步展示。