为所有箱子添加战利品
想要在不手动填充的情况下在箱子内生成战利品吗?此模组提供了简便的命令来实现这一功能,并默认附带了一些战利品表。
只要其他模组提供了有效的战利品表,本模组即可与所有模组兼容。如果你不清楚这是什么意思,请参阅下文。
本模组适用于箱子、陷阱箱和桶。未来可能会添加对自定义容器的支持。
命令
要在一定半径内生成战利品,请使用以下命令:
/reloot <容器类型> generateNewLoot <战利品表> [半径] [模式] [补充] [时间(秒)]
要在所有已加载区块中生成战利品,请使用以下命令:
/reloot <容器类型> regenerateAllLoot <战利品表> [模式] [补充] [时间(秒)]
-
<容器类型> 你正在重新生成战利品的容器种类(箱子/陷阱箱/桶/全部)
-
<战利品表> 指定用于填充箱子的战利品表。
-
[半径] 仅影响该半径内的箱子(默认值为 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”战利品表中的物品添加到每个 barrels 中,并在 60 秒后重新填充它们。
/reloot barrel regenerateAllLoot reloot:chests/random_rarity_chest replace refill 60
什么是战利品表?
(箱子)战利品表是一个 .json 文件,用于告知 Minecraft 在箱子里放置哪些物品。Minecraft 默认自带了一些战利品表,但许多模组也会添加它们自己的战利品表。请参阅下方 Minecraft 中已存在的战利品表。
“林地府邸”战利品表示例:
minecraft:chests/woodland_mansion
ReLoot 战利品表
要与模组配合使用,只需输入 reloot:chests/<此处填写战利品表>
- random_rarity_chest(此选项会从以下战利品表中随机选取)
- common_chest
- rare_chest
- epic_chest
- legendary_chest
默认 Minecraft 箱子战利品表
要与模组配合使用,只需写入 minecraft:chests/<此处填入战利品表名称>
- 废弃矿井
- 远古城市
- 远古城市冰盒
- 堡垒桥
- 堡垒猪灵马厩
- 堡垒其他结构
- 堡垒宝藏
- 埋藏宝藏
- 沙漠神殿
- 末地城宝藏
- 雪屋宝箱
- 丛林神庙
- 丛林神庙发射器
- 下界要塞
- 掠夺者前哨站
- 废弃传送门
- 沉船地图
- 沉船补给箱
- 沉船宝藏
- 简易地牢
- 出生奖励箱
- 要塞走廊
- 要塞十字路口
- 要塞图书馆
- 大型海底废墟
- 小型海底废墟
- 林地府邸
未来计划(概念)
- 支持多个战利品表(例如:30% 简单地牢和 70% 沙漠神殿)。
- 支持模组容器,如保险箱、抽屉等,可通过命令替换箱子。
- 内置的战利品表,支持不同模组(例如:reloot:chests/rare_chest,主要包含稀有物品或其他主题的战利品表)。
- GUI?(可能性较低)
Add loot to all your chests
Wanted to generate loot inside chests without having to fill them manually? This mod provides easy commands to do so, and also comes with some loottables by default.
This mod works with all mods as long as they provide a valid loottable. See below if you don't know what that is.
This mod works with chests, trapped chests and barrels. Might add support for custom containers in the future.
Commands
To generate loot in a certain radius, use this command:
/reloot <container type> generateNewLoot <loottable> [radius] [mode] [refill] [time in seconds]
To generate loot in all loaded chunks, use this command:
/reloot <container type> regenerateAllLoot <loottable> [mode] [refill] [time in seconds]
- <container type> what kind of container you're relooting (chest/trapped_chest/barrel/all)
- <loottable> represents the loottable to fill the chests with.
- [radius] only chests within the radius (default is 50 blocks) are affected.
- [mode] can either be replace or keep (optional, default is keep). If set to keep, the chest keeps items already inside the chests, and if set to replace, it replaces existing loot.
- [refill] optional; disabled by default. If refill is set, you also need to set the time for the refill to happen. This will refill the chest after said time and repeat until the world is stopped.
- time in seconds the time in seconds until a refill happens.
Examples
This replaces all items in chests within a 100 blocks with the "simple_dungeon" loottable:
/reloot chest generateNewLoot minecraft:chests/simple_dungeon 100 replace
This adds items from the "desert_pyramid" loottable into every container in all loaded chunks:
/reloot all regenerateAllLoot minecraft:chests/desert_pyramid keep
This adds items from the "random_rarity_chest" loottable into every barrel and refills them after 60 seconds.
/reloot barrel regenerateAllLoot reloot:chests/random_rarity_chest replace refill 60
What is a loottable?
A (chest) loottable is a .json file which tells minecraft what items to put in the chests. Minecraft comes with some by default, but many mods also add their own. See loottables already in Minecraft below.
Example of a "woodland mansion" loottable:
minecraft:chests/woodland_mansion
ReLoot loottables
To use with the mod, just write reloot:chests/<loottable here>
- random_rarity_chest (this one picks randomly from the loottables below)
- common_chest
- rare_chest
- epic_chest
- legendary_chest
Default minecraft chest loottables
To use with the mod, just write 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
Plans for the future (concepts)
- Multiple loottables support (for example: 30% simple_dungeon and 70% desert_pyramid).
- Modded containers such as safes, drawers which can replace chests with a command.
- Built-in loottables that support different mods (example: reloot:chests/rare_chest which contains mostly rare items or other themed loottables).
- GUI? (less likely)
评论 0
登录后参与评分
还没有评论,来抢沙发吧