Source-checkedLibraries & compatibility

Amator Phasma's Library

by AmatorPhasma · for Factorio

First 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.

40Downloads
6 yr agoLast updated
GPL-3.0License
Factorio Mod PortalSource

About Amator Phasma's Library

From Factorio Mod Portal

First 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:__


My thread in the forum.

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:

Read the full description on Factorio Mod Portal →

Highlights

From source data

Footprint

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

BuildReleasedGame versionsLoaders
0.19.502020-05-230.18n/a
0.19.072020-02-140.18n/a
0.19.062020-02-100.18n/a
0.19.052020-02-060.18n/a
0.19.042020-01-310.18n/a
0.19.022020-01-260.18n/a

Dependencies

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 catalog
Listed on Factorio Mod Portal as “Mods”

Libraries & compatibility

Foundations and fixes other mods build on. Usually installed because something else needs it.

Runs on your server

From source side support

Factorio 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

Amator Phasma's Library, answered

Generated from the mod’s own source data.

Do my players need to install Amator Phasma's Library?

Factorio 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.

Is it free?

Yes. Amator Phasma's Library is free to download from Factorio Mod Portal. Its license is GPL-3.0.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run Amator Phasma's Library on a Factorio server.

Deploy in about a minute from $2.99 a month, then add Amator Phasma's Library in one click.