SpawnMinerals (Harvest)
From OxeyeWiki
spawnMinerals(x, y, amount) | ||
Adds a new mineral patch containing 'amount' minerals. The function will attempt to stack minerals if possible, which means it will look for minerals nearby (x, y) and add 'amount' to them instead of creating a new one. The mineral's graphics will be chosen depending on the amount. | ||
Parameter | Expected Type | Description |
x | Number | The x coordinate for the mineral patch. |
y | Number | The y coordinate for the mineral patch. |
amount | Number | The amount of minerals in the mineral patch. |
Returns | ||
Returns nothing. |
Example
harvest.spawnMinerals(0, 0, 100)