Bedrock Energistics Core
    Preparing search index...

    Function generate

    • Beta

      Sends a storage type over a machine network. Includes reserve storage as well.

      Parameters

      • blockLocation: DimensionLocation

        The location of the machine that is generating.

      • type: string

        The storage type to generate.

      • amount: number

        The amount to generate.

      Returns void

      This function should be called every block tick for generators even if the generation is 0 because it sends reserve storage. Automatically sets the machine's reserve storage to the amount that was not received. This function is a wrapper around MachineNetwork.queueSend.