About Amator Phasma's Library
From Factorio Mod PortalFirst of all: this is a resource and code library for my other mods. It self comes with extended functions for inserter: 1) make it possible that a inserter can handle the 'burnt result inventory' on all machines. 2) burner inserters can leech fuel from pickup and drop target. 3) burner inserters are capable to chain fuel through all burner type machines.
__Amator Phasma's Library__ ============= Source code on GitLab
__Languages:__
English, Deutsch
__About this mod:__
__First of all: this is a resource and code library for my other mods.__
It self comes with some functions: ##
Extended functions for inserter: ###
- make it possible that a inserter can handle the 'burnt_result_inventory' on all machines.
- burner inserter can leech fuel from pickup target and drop target.
- burner inserters are capable to chain fuel through all burner type machines.
The extended functions for inserter are enabled by default when you have installed Amator Phasma's Coal&Steam. Otherwise you can control it yourself, whether you need it or not. 'Mod settings' -> 'Map' its called: 'Advanced functions for inserter' to switch it on or off.
Radiation: ###
- Items can be declared as radioactive (They slightly damage the player if he has any in the inventory)
The radiation is enabled by default, you can control it yourself, whether you like it or not: 'Mod settings' -> 'Map' its called: 'Radiation damage'
Destroyed storage spit out items: ###
- If a storage container is destroyed, the contents are spewed out to the ground
The Storage protection is enabled by default, you can control it yourself, whether you like it or not: 'Mod settings' -> 'Map' its called: 'Destroyed storage spit out items'
Burner equipment: ###
- Support for equipment thats needs fuel.
- Equipment manager for equipment thats needs fuel:
If an equipment thats needs fuel is equipped in your armor, you can toggle the equipment manager on or off: default hotkey is ALT+W, or use the icon shortcut in your quickbar If the equipment manager is enabled it will automatic fuel up any burner equipment using your personal inventory to a maximum of 10 items, as long as there is at least one fuel item left in it's slot. It will also transfer any residues to your personal inventory (like ash).
__Future plans?__
- None
__Problems?__
- Report them on the forum thread or here on this site under disscussion.
__Dependencies:__
- None
__Known incompatibility:__
- None
__My other mods:__
- Amator Phasma's Modpack
- Amator Phasma's Coal&Steam
- Amator Phasma's Nuclear
- Amator Phasma's Recycling
- Amator Phasma's Starfall
- Amator Phasma's Energy Addon
FAQ
Remote interfaces in the data and control stage
Version 0.19.0 (online version: https://gitlab.com/AmatorPhasma/apm_factorio/blob/master/doc/interfaces.md)
__MOD: Amator Phasma's Library__
__Data stage__:
Define an item as radioactiv in the data stage generates the descripton for it.
*usage in any data stage type after this library's data stage with:
apm.lib.utils.item.add.radioactive_description(item_name :: string, level :: int)
level: (optional / default is 1)
- 1: low radioactive
- 2: medium radioactive
- 3: high radioactive
Examples:
apm.lib.utils.item.add.radioactive_description('apm_yellowcake')
apm.lib.utils.item.add.radioactive_description('apm_yellowcake', 1)
___ __Control stage__: Define an item as radioactiv in the control stage by using a remote interface to register or unregister it to give the player damge if he has one in his inventory.
Register an item:
remote.call('apm_radiation', 'add_item', item_name :: string, level :: int)
level: (optional / default is 1)
- 1: low radioactive
- 2: medium radioactive
- 3: high radioactive
Unregister an items:
remote.call('apm_radiation', 'remove_item', item_name :: string)
List all registered items:
remote.call('apm_radiation', 'list_items') -> returns a table
Examples:
remote.call('apm_radiation', 'add_item', 'uranium-ore', 1)
remote.call('apm_radiation', 'remove_item', 'uranium-ore')
remote.call('apm_radiation', 'list_items')
Define an equipment with the burner property.
Register an equipment:
remote.call('apm_equipment', 'add_burner_equipment', string :: LuaGeneratorEquipment.name)
Unregister an items:
remote.call('apm_equipment', 'del_burner_equipment', string :: LuaGeneratorEquipment.name)
Examples:
remote.call('apm_equipment', 'add_burner_equipment', 'fusion-reactor-equipment')
remote.call('apm_equipment', 'del_burner_equipment', 'fusion-reactor-equipment')
You can also register to the following events: they return event{player = LuaPlayer, LuqEquipment = equipment}
- event_on_burner_equipment_low_fuel
script.on_event(remote.call("apm_equipment", "event_on_burner_equipment_low_fuel"), function(event)
-- your stuff here
end)
- event_on_burner_equipment_burnt_result_inventory_full
script.on_event(remote.call("apm_equipment", "event_on_burner_equipment_burnt_result_inventory_full"), function(event)
-- your stuff here
end)
WARNING: this has to be done within on_init and on_load, otherwise the game will error about the remote.call
__MOD: Amator Phasma's Recycling__
__Data stage__:
You can easily add scrap metal to products in the data-updates phase with:
Highlights
From source dataFootprint
Rated a light load on a server.
License
Published under GPL-3.0.
Last update
Its author last shipped an update 6 yr ago.
Amator Phasma's Library on Nxeon
From our catalogue- One-click install
- Supported on Nxeon Factorio servers. We download it from Factorio Mod Portal, place it, and restart the server.
- Server side
- Required on the server
- Server load
- light
- Smallest plan we suggest
- Factorio — 2 GB (2 GB RAM). This follows our own load rating above, not a benchmark.
- Latest build
- 0.19.50, released 2020-05-23
Recent builds
| Build | Released | Game versions | Loaders |
|---|---|---|---|
| 0.19.50 | 2020-05-23 | 0.18 | n/a |
| 0.19.07 | 2020-02-14 | 0.18 | n/a |
| 0.19.06 | 2020-02-10 | 0.18 | n/a |
| 0.19.05 | 2020-02-06 | 0.18 | n/a |
| 0.19.04 | 2020-01-31 | 0.18 | n/a |
| 0.19.02 | 2020-01-26 | 0.18 | n/a |
Dependencies
- Incompatible with: Burner Leech
Declared by the newest build that lists any. Required ones are installed with it on one-click installs.
Run Amator Phasma's Library on a Factorio server
Pick a server or deploy a new one above; it is installed in one click.
What kind of mod it is
From the catalogLibraries & compatibility
Foundations and fixes other mods build on. Usually installed because something else needs it.
Runs on your server
From source side supportFactorio Mod Portal lists Amator Phasma's Library as required on the server. Check its Factorio Mod Portal page to see whether players need it too.
Compatibility
- Game
- Factorio
- Runs on
- Serverrequired on the server
Verified at the source
- ✓Factorio Mod PortalOfficial listing, checked 2026-10-09Open ↗
- ✓AuthorAmatorPhasma, as published on Factorio Mod Portal
- ✓LicenseGPL-3.0Free

