I figured out how to modify the mining_time on resources (which it seems applies to ores, stone, crude_oil, but NOT to trees or rocks).
But I am having difficulty finding where trees and rocks are defined so I can modify them. I looked at data.raw.tile, data.raw.resource, data.raw.recipe (even though I know that one doesn't make sense), and I can't figure it out.
[SOLVED] I want to modify the mining_time on trees and rocks
-
- Burner Inserter
- Posts: 6
- Joined: Mon Feb 29, 2016 6:42 am
- Contact:
[SOLVED] I want to modify the mining_time on trees and rocks
Last edited by Guard13007 on Tue Oct 31, 2017 8:52 pm, edited 1 time in total.
Re: I want to modify the mining_time on trees and rocks
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.
See the daily™ struggles with my Factory! https://www.twitch.tv/repetitivebeats
-
- Burner Inserter
- Posts: 6
- Joined: Mon Feb 29, 2016 6:42 am
- Contact:
Re: I want to modify the mining_time on trees and rocks
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
-
- Burner Inserter
- Posts: 6
- Joined: Mon Feb 29, 2016 6:42 am
- Contact:
Re: I want to modify the mining_time on trees and rocks
Figured out rocks:
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