Beta
Sets the storage of a specific type in a machine.
The machine block.
The type of storage to set.
The new value. Must be an 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.