战利品表插入器
这个小数据包添加了一个“战利品表插入器”物品,用于修改大多数方块实体的战利品表。
⚠ 此数据包仅用于开发目的 ⚠
请注意,在多人生存服务器中添加此工具将使任何玩家都有可能破坏游戏进程。
适用人群
如果你是一名 Minecraft 模组或数据包开发者,希望为结构中的容器添加随机战利品,但又懒得对每个容器都使用命令,那么这个物品将对你大有裨益。
我们中的一些人经历过这样的痛苦:使用命令更改结构中所有箱子的数据。这不仅浪费了大量时间(因为需要精确放置玩家位置),而且重新定位已放置的箱子也是一团糟。
有了这个物品,只需指向并点击一个容器,即可更改其战利品表。

获取方法
要获得该物品,只需使用快捷操作热键(默认为 G)。你也可以通过暂停菜单中的“自定义选项”来获取它。
随时按 “Esc” 键即可退出对话框。

准备物品
要设置战利品表,请在铁砧上重命名该物品,并将其命名为战利品表的路径。为确保路径语法正确,建议从 /loot 命令中复制路径。
使用该物品时要小心,因为它始终处于激活状态并准备好使用。你与目标之间的交互距离实际上几乎为零。

Loot Table Inserter
This small datapack adds a Loot Table Inserter item which is used to change the Loot Tables of most Block Entities.
⚠ This datapack is intended for development purposes ⚠
Beware, adding this tool in multiplayer survival servers would add the possibility for any players to break the game progression
Who's this for?
This item will be useful to any minecraft mod or datapack developers that want to add containers with random loot to their structures, but can't be bothered to use commands on each one of them.
Some of us have experienced the ordeal of changing the data of all chests on a structure with commands, which is an unpleasant experience due to the waste of time during the correct positioning of the player and the mess that's repositioning already placed chests.
With this item, it'll be as easy as pointing and clicking a container to change their loot table.

How to get
To gain access to the item, simply use the quick actions hotkey (G by default). It can also be acquired through the pause menu in "Custom Options".
The dialog can be exited anytime by pressing "esc".

Prepping the item
To set a loot table, rename the item in an anvil with the path to a loot table. To ensure the correct syntax of the paths, copying them from /loot commands is advised.
Be careful when using the item, as it will always be primed and ready for use. The interaction range of your player will be practically nonexistent.

评论 0
登录后参与评分
还没有评论,来抢沙发吧