简介
Treasure Bags 不过是另一个战利品袋模组,但完全由数据包控制。你可以在任意数量的数据包中添加任意数量的袋子。除了一个袋子(玩家首次加入世界时会获得)之外,该模组默认不包含任何可获得的袋子类型,你必须下载数据包或创建自己的数据包。
袋子类型允许你设置袋子的名称、颜色和战利品表。宝藏袋可以包含的物品由其战利品表控制。这可以是现有的战利品表,也可以是你自己创建的。因此,通常你需要为每个袋子添加一个袋子类型 JSON 文件和一个战利品表。
为了获得袋子,你需要将它们添加到战利品表中。Treasure Bags 添加了一些战利品表,让你可以向广泛的生物类别添加战利品。这些表位于 data/treasurebags/loot_tables/entity_group。有关将袋子添加到战利品表的详细信息,请参阅维基。
依赖
使用方法
要打开宝藏袋,请将其拿在手中并使用(右键点击)。物品将被添加到你的背包中,如果没有足够的空间,则会掉落在地上。你也可以按住潜行键并右键点击以一次性打开整个堆叠的袋子。
高级功能
通过启用高级工具提示(F3+H),可以在宝藏袋的工具提示中看到附加信息。包括类型 ID 和战利品表。该模组还添加了一些命令(/treasurebags),可用于给予特定类型的袋子或验证已加载的类型。
初始出生袋
这个宝藏袋会在玩家首次加入世界时发放给玩家。更具体地说,有一个战利品表会在新玩家首次加入时掷骰一次。该战利品表默认会给予一个初始出生袋。你可以自定义它以给予额外物品(或不给予任何物品),但我建议改为修改袋子本身的战利品表。
创建数据包
请阅读维基以获取详细信息。你需要熟悉 JSON 文件和战利品表。
Introduction
Treasure bags is just another loot bag mod, but fully controlled by data packs. You can add any number of bags across any number of data packs. Aside from one bag (which is given to players when they first join a world), the mod includes no obtainable bag types by default, you must download a data pack or create your own.
Bag types allow you to set the bag's name, colors, and loot table. The items a treasure bag can contain is controlled by its loot table. This can be a preexisting loot table, or you can create you own. So, typically you will add a bag type JSON and a loot table for each bag.
In order to obtain bags, you must then add them to a loot table. Treasure Bags adds a couple of loot tables which let you add loot to broad categories of mobs. These are found in data/treasurebags/loot_tables/entity_group. See the wiki for details on adding bags to loot tables.
Requirements
Usage
To open a treasure bag, hold it in your hand and use it (right-click). The items will be added to your inventory, or dropped on the floor if there is not enough room. You can also sneak and right-click to open an entire stack at once.
Advanced
Additional information can be seen in the treasure bag's tooltip by enabling advanced tooltips (F3+H). This includes the type ID and the loot table. The mod also adds some commands (/treasurebags) which can be used to give specific bag types or verify loaded types.
First Spawn Bag
This treasure bag is given to players when they first join a world. More specifically, there is a loot table which is rolled once for new players. This loot table gives one first spawn bag by default. You can customize this to give additional items (or nothing at all), but I recommend modifying the loot table for the bag instead.
Creating a Data Pack
Please read the wiki for details. You will need to be familiar with JSON files and loot tables.
评论 0
登录后参与评分
还没有评论,来抢沙发吧