Beta
Sets the storage of a specific type in a machine.
The machine block.
The storage type ID.
The new value. Must be a non-negative integer.
Whether to call the onStorageSet event on the machine, if applicable.
onStorageSet
Throws if the storage type does not exist.
Throws if the new value isn't a non-negative integer.
Throws if the block is not valid.
Throws if the block is not registered as a machine.
Sets the storage of a specific type in a machine.