Prototype/Tool: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(0.17)
(Set prototype parent)
Line 1: Line 1:
{{Prototype parent|Prototype/Item}}
== Basics ==
== Basics ==
Prototype type: '''tool'''
Prototype type: '''tool'''

Revision as of 15:26, 24 July 2019

Prototype definitions » PrototypeBase » Prototype/Item » Prototype/Tool


Basics

Prototype type: tool

Items with a "durability". Used for science packs. Extends Prototype/Item.

Extensions

Optional properties

This prototype inherits all the properties from Prototype/Item.

durability

Type: Types/double

Must be positive. Mandatory if infinite is false.

durability_description_key

Type: Types/string

Default: "description.durability-key"

durability_description_value

Type: Types/string

Default: "description.durability-value"

infinite

Type: Types/bool

Default: true