FTB Pack Companion
Your reliable assistant when developing modpacks for Minecraft. This continuously evolving mod offers a growing set of features, tools, game fixes, and more that will help in creating, maintaining, and ensuring the stability of your pack. There's nothing better than having a good companion at hand.
Main Features
- Structure processor for resolving issues with blocks that should not be waterlogged
- Command for generating loot tables directly in the game!
- New
RandomNameLootFunctionthat allows setting a list of names for an item and randomly selecting one of them - Ability to disable tutorial notifications
- Ability to disable achievement and recipe notifications
Using the Features
Waterlogging Fix
The waterlogging fix is applied directly to your template_pool. When creating a pool, add the processor ftbpc:waterlogging_fix_processor to your processors list. Now the companion will determine when a block should not be waterlogged and fix it!
Example of how this should look:
{
"processors": [
{
"processor_type": "ftbpc:waterlogging_fix_processor"
}
]
}
Random Name Function
RandomNameLootFunction is a LootItemFunction that allows setting an item's name based on a list of names. This requires a list of Component 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 only contains an example.
Example of how the json file should look
{
"example": [
{"bold":true,"color":"blue","text":"I'm an example!"}
],
"list2": [
{"text":"I'm example 2!"},
{"text":"More than one"}
]
}
Each key in the object list must be unique, as it is used as the category identifier 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 incorrectly.
Here's how the loot table might look 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"
}
]
}
]
}