Bedrock Energistics Core
    Preparing search index...

    Function removeMachineData

    • Beta

      Cleans up machine data and updates networks.

      Parameters

      • loc: DimensionLocation

        The machine block OR its location (as a DimensionLocation).

      • destroyedPermutation: BlockPermutation

        The permutation of the block that was destroyed. If the block hasn't been destroyed, pass the current permutation of the block. If loc is of type Block, this is optional and will default to loc.permutation, otherwise it is required.

      Returns Promise<void>

      This is automatically done by Bedrock Energistics Core when a machine block is broken. If you destroy a machine from script, make sure you call this function. This function will not remove the block or the entity, it only removes data. If you want to remove the block and entity as well, use destroyMachine instead.

      Throws if arguments are invalid.

      Throws if the permutation has no network connection type (if getBlockNetworkConnectionType returns undefined).

    • Beta

      Cleans up machine data and updates networks.

      Parameters

      • loc: Block

        The machine block OR its location (as a DimensionLocation).

      • OptionaldestroyedPermutation: BlockPermutation

        The permutation of the block that was destroyed. If the block hasn't been destroyed, pass the current permutation of the block. If loc is of type Block, this is optional and will default to loc.permutation, otherwise it is required.

      Returns Promise<void>

      This is automatically done by Bedrock Energistics Core when a machine block is broken. If you destroy a machine from script, make sure you call this function. This function will not remove the block or the entity, it only removes data. If you want to remove the block and entity as well, use destroyMachine instead.

      Throws if arguments are invalid.

      Throws if the permutation has no network connection type (if getBlockNetworkConnectionType returns undefined).