Multi-spoil


An API for working with items that spoil into multiple items

Internal
11 days ago
2.0
127
Owner:
LambdaLemon
Source:
N/A
Homepage:
N/A
License:
MIT
Created:
2 months ago
Latest Version:
0.1.4 (11 days ago)
Factorio version:
2.0
Downloaded by:
127 users

API for making spoiling items into multiple things.

Example:

local multispoil = require("__multispoil__.api")

data.raw["item"]["iron-plate"].spoil_ticks = 30 * 60 -- 30 sec spoil time
data.raw["item"]["iron-plate"].spoil_to_trigger_result = multispoil.create_spoil_trigger({"iron-ore", "copper-ore", "copper-plate"}) -- spoils into iron ore or copper or or copper plates