Page 1 of 1

[Request] Decrement track pickup/mining speed to equal belts

Posted: Thu Feb 05, 2015 12:53 pm
by DeserveVictory
Like the title says. I dislike how long it takes to pick up track compared to conveyor belts.

[Edit] By track I mean Straight Rail and Curved Rail specifically. It takes much longer to pick up rail then it does to pick up conveyor belts.

Re: [Request] Decrement track pickup/mining speed to equal b

Posted: Fri Feb 06, 2015 8:02 pm
by bigyihsuan
So I found this snippet of code in [Factorio Folder Here]\data\base\prototypes\entity.lua

Code: Select all

{
    type = "rail",
    name = "straight-rail",
    icon = "__base__/graphics/icons/straight-rail.png",
    flags = {"placeable-neutral", "player-creation", "building-direction-8-way"},
    minable = {mining_time = 1, result = "straight-rail"},
  },
  {
    type = "rail",
    name = "curved-rail",
    icon = "__base__/graphics/icons/curved-rail.png",
    flags = {"placeable-neutral", "player-creation", "building-direction-8-way"},
    minable = {mining_time = 1, result = "curved-rail"},
  }
If I'm guessing correctly, all you have to change is {mining_time = x}, and you should be good.

edit: I think the number in mining_time is how many seconds it takes to mine. I'm guessing if you set it to 0, you'll instantly mine it.