Prototype/MiningTool: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Created page with "==basics== A tool to mine ore out of the ground, breaks rocks, and damage enemies. ==properites== ===type=== '''type''': Types/string Must be "mining-tool" ===action=== Te...")
 
mNo edit summary
Line 1: Line 1:
==basics==
==basics==
A tool to mine ore out of the ground, breaks rocks, and damage enemies.
A tool to mine ore out of the ground, break rocks, and damage enemies.
==properites==
==properites==
===type===
===type===

Revision as of 06:25, 15 July 2017

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"
         }
       }
     }
   },