remove_things={"iron-plate"}
for _,thing in pairs(remove_things) do
for n,p in pairs(data.raw) do
if p.name==thing then
if p.place_result then table.insert(remove_things,p.place_result) end
data.raw[n]=nil
end
if p.mining_result==thing or p.result=thing then
table.insert(remove.things, p.name)
data.raw[n]=nil
end
if p.ingredients then
for k,v in pairs(p.ingredients) do
if v[1]==thing then
table.remove(p.ingredients,k)
if #p.ingredients==0 then
table.insert(remove.things, p.name)
data.raw[n]=nil
end
end
end
end
if p.effects then
for k,v in pairs(p.effects)
if v.recipe==thing
table.remove(p.effects,k)
if #p.effects==0 then
table.insert(remove.things, p.name)
data.raw[n]=nil
end
end
end
end
end
end