Factorio.com|Forums|Wiki|Mod Portal|API Docs

# Factorio Prototype Docs Version 2.0.77

# GiveItemModifier - Prototype Docs

## GiveItemModifier :: struct

Note that when any technology prototype changes (regardless of which mod it belongs to), the game re-applies all researched technology effects, including `"give-item"` modifiers. This means that players will receive the item again, even if they already received it previously. This can be undesirable.

Inherits from BaseModifier

## Properties

- default
- sorted

type | :: `"give-item"` |
use_icon_overlay_constant optional | :: boolean | If `false`, do not draw the small "constant" icon over the technology effect icon.
If `false`, do not draw the small "constant" icon over the technology effect icon.
item | :: ItemID |
quality optional | :: QualityID |
count optional | :: ItemCountType | Must be >= `1`.
Must be >= `1`.

Inherited from BaseModifier

icons optional | :: array[IconData] | Can't be an empty array.
Can't be an empty array.
icon optional | :: FileName | Path to the icon file. [...]
Path to the icon file. [...]
icon_size optional | :: SpriteSizeType | The size of the square icon, in pixels. [...]
The size of the square icon, in pixels. [...]
hidden optional | :: boolean |

item | :: ItemID |
type | :: `"give-item"` |
count optional | :: ItemCountType | Must be >= `1`.
Must be >= `1`.
quality optional | :: QualityID |
use_icon_overlay_constant optional | :: boolean | If `false`, do not draw the small "constant" icon over the technology effect icon.
If `false`, do not draw the small "constant" icon over the technology effect icon.

Inherited from BaseModifier

hidden optional | :: boolean |
icon optional | :: FileName | Path to the icon file. [...]
Path to the icon file. [...]
icon_size optional | :: SpriteSizeType | The size of the square icon, in pixels. [...]
The size of the square icon, in pixels. [...]
icons optional | :: array[IconData] | Can't be an empty array.
Can't be an empty array.

## Properties

### type :: `"give-item"`

### use_icon_overlay_constant :: boolean optional

Default: `false`

If `false`, do not draw the small "constant" icon over the technology effect icon.

### item :: ItemID

### quality :: QualityID optional

Default: `"normal"`

### count :: ItemCountType optional

Default: `1`

Must be >= `1`.

Type used in

- Modifier