BetaThe 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 if the permutation has no network connection type
(if getBlockNetworkConnectionType returns undefined).
BetaCleans up machine data and updates networks.
The machine block OR its location (as a DimensionLocation).
OptionaldestroyedPermutation: BlockPermutationThe 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 if the permutation has no network connection type
(if getBlockNetworkConnectionType returns undefined).
Cleans up machine data and updates networks.