The data.lua is simply adding a custom tip with the "unlocked-recipe" trigger (testmod attached):
Code: Select all
data:extend(
{
{
type = "tips-and-tricks-item-category",
name = "test-category",
order = "a"
},
{
type = "tips-and-tricks-item",
name = "test-tip",
category = "test-category",
order = "a",
trigger =
{
type = "unlocked-recipe",
recipe = "speed-module"
},
is_title = true,
}
})