Prototype/MiningDrill: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Removed old prototype docs)
 
(26 intermediate revisions by 9 users not shown)
Line 1: Line 1:
== Basics ==
<div class="stub"><p>'''The prototype docs have moved to a new website with an improved format.''' This documentation page can now be found here: [https://lua-api.factorio.com/latest/prototypes/MiningDrillPrototype.html https://lua-api.factorio.com/latest/prototypes/MiningDrillPrototype.html]
A mining drill. Based on [[Prototype/EntityWithHealth]].


== Properties ==
</p><p>This wiki page is no longer updated and '''will be removed at some point in the future''', so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback [https://forums.factorio.com/viewforum.php?f=233 on the forums].</p></div>
 
This prototype inherits the properties of [[Prototype/EntityWithHealth]].
 
=== animations ===
Type: Map of [[Types/string]] -> [[Types/Animation]]
 
The animations to use. Should look like this:
 
<pre>
animations = {
  north = {
      ... animation goes here ...
  },
  south = {
      ... animation goes here ...
  },
  east = {
      ... animation goes here ...
  },
  west = {
      ... animation goes here ...
  }
}
</pre>
 
=== mining_speed ===
Type: [[Types/double]]
 
The speed of this drill. Electric mining drills have 0.5. Burner mining drills have 0.35.
 
=== energy_source ===
Type: [[Types/EnergySource]]
 
The energy source of this mining drill.
 
=== energy_usage ===
Type: [[Types/EnergyPower]]
 
The amount of energy used by the drill while mining.
 
=== mining_power ===
Type: [[Types/double]]
 
Unknown. Burner mining drills have 3.5. Electric mining drills have 3.
 
=== resource_searching_radius ===
Type: [[Types/double]]
 
The distance from the centre of the mining drill to search for resources in.
 
This is 2.49 for electric mining drills (a 5x5 area) and 0.99 for burner mining drills (a 2x2 area). There is presumably a reason that these are not 2.5 and 1.0.
 
(Dysoch) The reason is that it searches resource outside its natural boundary box, which is 0.01. (the middle of the entity) making it 2.5 and 1.0 gives it another block radius
 
=== vector_to_place_result ===
Type: [[Types/vector]]
 
The position where the result is placed, when the mining drill is facing south (?).
 
=== module_slots ===
Type: [[Types/unsigned]]
 
The number of module slots.
 
=== radius_visualization_picture ===
Type: [[Types/Sprite]]
 
The sprite used to show the range of the mining drill.

Latest revision as of 14:32, 25 October 2024

The prototype docs have moved to a new website with an improved format. This documentation page can now be found here: https://lua-api.factorio.com/latest/prototypes/MiningDrillPrototype.html

This wiki page is no longer updated and will be removed at some point in the future, so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback on the forums.