Code: Select all
for name, entity in pairs(data.raw['simple-entity']) do
if name:find('rock') and entity.minable and entity.minable.mining_time then
entity.minable.mining_time = entity.minable.mining_time / 2
end
end
Code: Select all
for name, entity in pairs(data.raw['simple-entity']) do
if name:find('rock') and entity.minable and entity.minable.mining_time then
entity.minable.mining_time = entity.minable.mining_time / 2
end
end
Thank you. Turns out for trees it is incredibly simple:Ghoulish wrote:There's a mod called https://mods.factorio.com/mods/zzcorrod ... ee-cutting Fast Tree Cutting, Have a look to see how they achieved it.
Code: Select all
for _, tree in pairs (data.raw.tree) do
tree.minable.mining_time = 0.1
end