FTB Pack Companion
开发整合包时的最佳伴侣。随着功能、工具、游戏修复等内容不断扩充,它将助力于整合包的创建、维护与稳定性。没有什么比拥有一个好伙伴更好的了。
目前的功能
- 结构处理器:解决不应被水logged(浸水)的方块出现水logged问题的情况
- 命令:帮助你在游戏中生成战利品表!
- 新增
RandomNameLootFunction,允许你为物品设置一个名称列表,函数将随机选取其中一个
- 可禁用教程提示框(Toast)
- 可同时禁用进度提示框和配方提示框
使用方法
WaterLogging 结构处理器修复工具
WaterLogging 修复直接应用于你的 template_pool 中。在创建 pool 时,将处理器 ftbpc:waterlogging_fix_processor 添加到你的处理器列表中。伴侣插件现在会自动判断哪些方块不应被水logged并进行修复!
配置应如下所示:
{
"processors": [
{
"processor_type": "ftbpc:waterlogging_fix_processor"
}
]
}
RandomNameLootFunction
RandomNameLootFunction 是一种 LootItemFunction,允许你根据名称列表设置物品的名称。这需要在 data/ftbpc/sources/random-name-loot-source.json 文件夹中放置以 JSON 格式的 Component 列表。你可以使用 datapack 或 KubeJS 来修改此文件,默认情况下它仅包含一个示例。
JSON 文件示例格式如下:
{
"example": [
{"bold":true,"color":"blue","text":"I'm an examples!"}
],
"list2": [
{"text":"I'm an example 2!"},
{"text":"More than just one"}
]
}
Map / Object 列表中的每个键必须是唯一的,因为它是战利品函数用于查找随机名称的标识符类别。正如你所见,你需要使用完全符合 JSON 规范的 Component 才能确保函数正常工作。如果操作错误,将会记录错误日志。
以下是利用上述 JSON 文件的战利品表示例:
{
"entries": [
{
"type": "minecraft:item",
"name": "minecraft:stone",
"functions": [
{
"function": "ftbpc:random_loot_item_function",
"nameSetKey": "example"
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:gold",
"functions": [
{
"function": "ftbpc:random_loot_item_function",
"nameSetKey": "list2"
}
]
}
]
}
支持
- 关于整合包的问题,请访问:
- 关于模组的问题,请访问:
- 有问题?欢迎加入我们的 Discord:
保持更新

FTB Pack Companion
Your best friend when developing a Modpack. With an ever-growing list of features, tools, game fixes and more that'll aid in the creation, maintenance, and stability of your pack. There is nothing better than bring along a good companion.
Features so far
- Structure Processor to resolve issues with WaterLogging blocks that should not be water logged
- Command to help you generate loot tables in game!
- A new
RandomNameLootFunction that lets you set a list of names for an item and have the function select one at random
- Ability to disable the Tutorial Toasts
- Ability to disable advancement toasts as well as recipe toasts
Using the features
WaterLogging Structure Processor fixer
The WaterLogging fix is applied directly into your template_pool. When creating a pool add the processor ftbpc:waterlogging_fix_processor to your processors list. The companion will now figure out when a block shouldn't be water logged and fix it!
It should look like this
{
"processors": [
{
"processor_type": "ftbpc:waterlogging_fix_processor"
}
]
}
RandomNameLootFunction
The RandomNameLootFunction it a LootItemFunction that allows you to set an item's name based on a list of names. This requires a list of Component's in JSON format to be placed in the data/ftbpc/sources/random-name-loot-source.json folder. You can use a datapack or KubeJS to modify this file as by default, it simply contains an example.
Example of how the json file should look
{
"example": [
{"bold":true,"color":"blue","text":"I'm an examples!"}
],
"list2": [
{"text":"I'm an example 2!"},
{"text":"More than just one"}
]
}
Each key in the Map / Object List must be unique as it's used as the identifier category for the loot function to find a random name. As you can see, you need to use a fully JSON compliant Component for the function to work correctly. Errors will be logged if this is done wrong.
Here is what the loot table can look like to take advantage of the above json file
{
"entries": [
{
"type": "minecraft:item",
"name": "minecraft:stone",
"functions": [
{
"function": "ftbpc:random_loot_item_function",
"nameSetKey": "example"
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:gold",
"functions": [
{
"function": "ftbpc:random_loot_item_function",
"nameSetKey": "list2"
}
]
}
]
}
Support
- For Modpack issues, please go here:
- For Mod issues, please go here:
- Just got a question? Check out our Discord:
Keep up to date

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