你是想要添加铁轨吗?要添加相应物品的代吗?铁轨的源代码是:
{
type = "rail-planner",
name = "rail",
icon = "base/graphics/icons/rail.png",
icon_size = 64, icon_mipmaps = 4,
localised_name = {"item-name.rail"},
subgroup = "train-transport",
order = "a[train-system]-a[rail]",
place_result = "straight-rail",
stack_size = 100,
straight_rail = "straight-rail",
curved_rail = "curved-rail"
},
所以rail的type不是item,而是rail-planner.你可以在文件里添加一行:
data.raw["rail-planner"]["rail"].stack_size = 1000