📄️ Entity Fields
* [[EntityPrototype]]::placeableby. This field only affects pipette behavior, and does not make this entity placeable by the entity's pipette result. A wrapper for PlanetsLib.constants.pipetteresult. In data-final-fixes, manipulate this mod-data table directly.
📄️ Entity Replacement System
PlanetsLib allows you to quickly generate planet-exclusive variants of entities. On placing an entity on a planet with a planet-exclusive variant, PlanetsLib will replace the original entity with your variant. The difference between entity variants and the original entity are invisible to the user, and variants can not be seen in the Factoriopedia. Every variant must be associated with a boolean startup setting that can be disabled to ease in uninstallation. Once an entity variant has been created, any attempt to create a variant for the same entity for the same planet will throw an error. This is a limitation of the current system that may change in the future. Currently, entity variants that are the same type as their origin entity are well-tested, but changing entity types is untested.
📄️ Event Handler
Planetslib provides an alternative to the event handler library found in factorio's core mod,
📄️ Orbit Graphics
Moon orbit graphics
📄️ Special Planet Properties
PlanetsLib allows the addition of "special properties", values which can be displayed as surface properties, but are not intended to be used as surface properties. These properties are used during data-final-fixes and in control scripts to execute certain behavior.
📄️ Recipe Events
PlanetsLib includes one event that recipes can hook into using RecipePrototype::PlanetsLibrecipeeffects. This event adds items to the machine's ingredient inventory on craft. Additional events may be added in the future.
📄️ Remote Interfaces
Storage extraction and transfer
📄️ Rocket Part Recipes
You can use the library to assign unique rocket part recipes to rocket silos placed on a specified planet to increase or decrease the difficulty of launching rockets on the planet. Rocket silos with their recipe fixed to the vanilla rocket-part recipe are targeted by PlanetsLib. To implement:
📄️ Science & Technologies
* PlanetsLib.getchildtechnologies(techname) — Returns a list of the names of all technologies that have techname as a prerequisite.