Beta
The machine block OR its location (as a DimensionLocation).
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.
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 a PublicError of type PublicErrorType.InvalidArgument if arguments are invalid, or if the permutation has no network connection type (if getBlockNetworkConnectionType returns undefined).
Throws a PublicError of type PublicErrorType.InvalidState if this package has not been initialized (see init).
Beta
Cleans up machine data and updates networks.
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.
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 a PublicError of type PublicErrorType.InvalidArgument if arguments are invalid, or if the permutation has no network connection type (if getBlockNetworkConnectionType returns undefined).
Throws a PublicError of type PublicErrorType.InvalidState if this package has not been initialized (see init).
Cleans up machine data and updates networks.