You can already obtain loaders in-game with commands.
Normal: /c game.player.insert({name="loader"})
Fast: /c game.player.insert({name="fast-loader"})
Express: /c game.player.insert({name="express-loader"})
Here's a quick template for modding:
Code: Select all
data:extend({
{
type = "technology",
name = "loader",
icon = "__base__/graphics/item-group/logistics.png",
effects =
{
{
type = "unlock-recipe",
recipe = "loader"
}
},
prerequisites = {<prerequisites>},
unit =
{
count = <count>,
ingredients =
{
{<science pack>, <amout>}
},
time = <time>
},
order = "a"--order
},
{
type = "recipe",
name = "loader",
enabled = false,
ingredients =
{
{<name>, <amout>}
},
result = "loader"
},
{
type = "technology",
name = "fast-loader",
icon = "__base__/graphics/item-group/logistics.png",
effects =
{
{
type = "unlock-recipe",
recipe = "fast-loader"
}
},
prerequisites = {"loader",<prerequisites>},
unit =
{
count = <count>,
ingredients =
{
{<science pack>, <amout>}
},
time = <time>
},
order = "a"--order
},
{
type = "recipe",
name = "fast-loader",
enabled = false,
ingredients =
{
{<name>, <amout>}
},
result = "loader"
},
{
type = "technology",
name = "express-loader",
icon = "__base__/graphics/item-group/logistics.png",
effects =
{
{
type = "unlock-recipe",
recipe = "express-loader"
}
},
prerequisites = {"fast-loader",<prerequisites>},
unit =
{
count = <count>,
ingredients =
{
{<science pack>, <amout>}
},
time = <time>
},
order = "a"--order
},
{
type = "recipe",
name = "express-loader",
enabled = false,
ingredients =
{
{<name>, <amout>}
},
result = "loader"
},
})