Refactoring
Add modding support
This commit is contained in:
parent
851ced08fb
commit
6bb5e14e4f
6 changed files with 94 additions and 45 deletions
16
README.md
16
README.md
|
@ -1,2 +1,16 @@
|
|||
# Hot metals
|
||||
A Factorio mod.
|
||||
Did you ever wonder how fast the metals in furnaces and foundries cool down ready to be used? Well, that's over now!
|
||||
All metal products from furnaces and foundries will be too hot to use initially. Wait for them to cool own first.
|
||||
|
||||
Good look with direct insertion setups :-)
|
||||
|
||||
## Modding support
|
||||
This mod adds a global variable named `HotMetals`. Add things to it to add support for your mod. Some mods have baked in support.
|
||||
|
||||
It has the following properties.
|
||||
|
||||
### `items`
|
||||
Add an item name as string or a table with `name` and optional `spoilTicks` and `iconFolder`. The icon file will be `iconFolder .. "hot-" .. itemName .. ".png"`.
|
||||
|
||||
### `craftingCategories`
|
||||
A table containing all supported crafting categories. This mod uses a white list to prevent unwanted categories by default. Only categories used by smelting buildings like the furnace and the foundry should be added.
|
Loading…
Add table
Add a link
Reference in a new issue