Factorio Runtime DocsVersion 2.1.12

OnRecipeCraftedData - Runtime Docs

OnRecipeCraftedData :: table new

Table fields

name :: defines.events

Identifier of the event.

Identifier of the event.

tick :: MapTick

Tick the event was generated.

Tick the event was generated.

entity :: LuaEntity

Entity that crafted recipe.

Entity that crafted recipe.

recipe :: string

Name of recipe that was crafted.

Name of recipe that was crafted.

recipe_quality :: string

Quality of the recipe crafted.

Quality of the recipe crafted.

quality_effect :: EffectValue?

Quality effect used when giving products. Not provided if value is 0. May be different than value obtained from LuaEntity::effects when quality modules were changed between craft starting and products being given.

Quality effect used when giving products. Not provided if value is 0. May be different than value obtained from LuaEntity::effects when quality modules were changed between craft starting and products being given.

quality_seed :: double?

Random value in range [0, 1) that was used when selecting product quality. Only provided when quality_effect is provided.

Random value in range [0, 1) that was used when selecting product quality. Only provided when quality_effect is provided.

product_quality :: string

Quality of products given. May be different than recipe quality if quality modules are present. Always provided even if quality_effect is zero because LuaEntity::result_quality may have been used. Only used by products without quality control.

Quality of products given. May be different than recipe quality if quality modules are present. Always provided even if quality_effect is zero because LuaEntity::result_quality may have been used. Only used by products without quality control.

bonus :: boolean

If crafted as part of bonus products.

If crafted as part of bonus products.

shared_roll :: double

Random value in range [0, 1) used as part of shared roll when giving products. Related to ProductPrototypeBase::shared_probability.

Random value in range [0, 1) used as part of shared roll when giving products. Related to ProductPrototypeBase::shared_probability.

Fulltext search

Classes

Concepts

Events

Defines

Fulltext search for