Minerals

If energy is the basic construction material in the Screeps world, the minerals are its jewels. By mining and processing minerals, you can significantly speed up your economy and boost the effectiveness of your creeps.

Working with minerals consists of 3 steps:

  • Mining base minerals
  • Producing mineral compounds
  • Boosting creeps

Mining

There are 7 types of base minerals shown in the picture below.

Each room contains only one mineral type, so in order to handle them effectively you need either access to several suitable rooms or trade relationships with other players.

A mineral deposit is located in a room at a spot marked by a special symbol. To start mining the deposit, you need to construct the special structure Extractor on top of it (available at Room Controller Level 6). Upon building it, you can start applying the method harvest to the deposit thus mining the corresponding mineral in the same way you harvest energy.

Mineral compounds

Base minerals are useless on their own. In order to impart some useful capabilities to them, you have to combine them according to special formulas in the structure called Lab.

One reaction requires three labs: two as reagent sources, and the third one as the produce collector. The labs should be within the range of 2 squares from each other.

A lab can produce 1 unit of produce per tick, so you can build parallel chains of labs in one or more rooms to speed up the process. One lab cannot contain more than one mineral type at the same time.

var labs = room.find(FIND_MY_STRUCTURES, 
    {filter: {structureType: STRUCTURE_LAB}});

labs[0].runReaction(labs[1], labs[2]);

// on the next tick...

console.log(labs[0].mineralType) // -> OH
console.log(labs[1].mineralType) // -> O
console.log(labs[2].mineralType) // -> H

Creep boosts

Apart from running chemical reactions with minerals, a lab can use resulting compounds to permanently upgrade your creeps boosting their specific properties.

Each compound is applied to one body part of the creep of a certain type using Structure.boostCreep method according to the table below and boosts the effectiveness of one of the actions of this creep. The boosted part works as two, three, or even four corresponding parts. To boost the whole creep, you need to boost all its parts of the given type.

Boosting one body part takes 30 mineral compound units and 20 energy units. One body part can be boosted only with one compound type.

Name Formula Body part Effect
Base compounds
hydroxide +
zynthium keanite +
utrium lemergite +
ghodium +
Tier 1 compounds
utrium hydride + ATTACK +100% attack effectiveness
utrium oxide + WORK +200% harvest effectiveness
keanium hydride + CARRY +50 capacity
keanium oxide + RANGED_ATTACK +100% rangedAttack and rangedMassAttack effectiveness
lemergium hydride + WORK +50% repair and build effectiveness without increasing the energy cost
lemergium oxide + HEAL +100% heal and rangedHeal effectiveness
zynthium hydride + WORK +100% dismantle effectiveness
zynthium oxide + MOVE +100% fatigue decrease speed
ghodium hydride + WORK +50% upgradeController effectiveness without increasing the energy cost
ghodium oxide + TOUGH -30% damage taken
Tier 2 compounds
utrium acid + ATTACK +200% attack effectiveness
utrium alkalide + WORK +400% harvest effectiveness
keanium acid + CARRY +100 capacity
keanium alkalide + RANGED_ATTACK +200% rangedAttack and rangedMassAttack effectiveness
lemergium acid + WORK +80% repair and build effectiveness without increasing the energy cost
lemergium alkalide + HEAL +200% heal and rangedHeal effectiveness
zynthium acid + WORK +200% dismantle effectiveness
zynthium alkalide + MOVE +200% fatigue decrease speed
ghodium acid + WORK +80% upgradeController effectiveness without increasing the energy cost
ghodium alkalide + TOUGH -50% damage taken
Tier 3 compounds
catalyzed utrium acid + ATTACK +300% attack effectiveness
catalyzed utrium alkalide + WORK +600% harvest effectiveness
catalyzed keanium acid + CARRY +150 capacity
catalyzed keanium alkalide + RANGED_ATTACK +300% rangedAttack and rangedMassAttack effectiveness
catalyzed lemergium acid + WORK +100% repair and build effectiveness without increasing the energy cost
catalyzed lemergium alkalide + HEAL +300% heal and rangedHeal effectiveness
catalyzed zynthium acid + WORK +300% dismantle effectiveness
catalyzed zynthium alkalide + MOVE +300% fatigue decrease speed
catalyzed ghodium acid + WORK +100% upgradeController effectiveness without increasing the energy cost
catalyzed ghodium alkalide + TOUGH -70% damage taken