Factorio.com|Forums|Wiki|Mod Portal|API Docs Prototype|Runtime|Auxiliary

# Factorio Prototype Docs Version 2.0.7

## LootItem :: struct

The items generated when an EntityWithHealthPrototype is killed.

## Properties

- default
- sorted

item | :: ItemID | The item to spawn.
The item to spawn.
probability optional | :: double | `0` is 0% and `1` is 100%. [...]
`0` is 0% and `1` is 100%. [...]
count_min optional | :: double |
count_max optional | :: double | Must be `> 0`.
Must be `> 0`.

item | :: ItemID | The item to spawn.
The item to spawn.
count_max optional | :: double | Must be `> 0`.
Must be `> 0`.
count_min optional | :: double |
probability optional | :: double | `0` is 0% and `1` is 100%. [...]
`0` is 0% and `1` is 100%. [...]

## Properties

### item :: ItemID

The item to spawn.

### probability :: double optional

Default: `1`

`0` is 0% and `1` is 100%. Must be `> 0`.

### count_min :: double optional

Default: `1`

### count_max :: double optional

Default: `1`

Must be `> 0`.

Type used in

- EntityWithHealthPrototype::loot