Prototype/MiningTool

From Official Factorio Wiki
Revision as of 06:25, 15 July 2017 by LazyFridge (talk | contribs)
Jump to navigation Jump to search

basics

A tool to mine ore out of the ground, break rocks, and damage enemies.

properites

type

type: Types/string Must be "mining-tool"

action

Tells the mining tool what to do when the player uses it.

example

   {
     type="direct",
     action_delivery =
     {
       type = "instant",
       target_effects =
       {
         type = "damage",
         damage =
         {
           amount = 8,
           type = "physical"
         }
       }
     }
   },