IMG
full screen
Code: Select all
require ("util")
for i=1,20 do
local item = util.table.deepcopy(data.raw["item"].centrifuge)
item.name = "centrifuge" .. i
item.place_result = "centrifuge" .. i
local machine = util.table.deepcopy(data.raw["assembling-machine"].centrifuge)
machine.name = "centrifuge" .. i
data:extend({machine, item})
end