-
Notifications
You must be signed in to change notification settings - Fork 7
Digitizer
SuperSpaceEye edited this page Jan 17, 2024
·
2 revisions
Digitizer is a block that is can "digitize" any item, and then rematerialize it in another digitizer, allowing for wireless item transfer.
Parameters:
- amount: Number (D Int.MAX_VALUE) - digitize that amount of items. If value is bigger than the amount of items present, then it will digitize all items in the digitizer.
Returns:
- If operation was successful:
- uuid: String - uuid of the digitized items.
- If an error has occurred:
- {"error"=error}
Parameters:
- uuid: String - id of digitized item
- amount: Number (D Int.MAX_VALUE) - rematerialize amount of items. If value is bigger than the amount of items id has, it will try to rematerialize all items. If digitizer already has some of the items of the same type, it will only partially rematerealize items until item stack gets full. If digitizer already has items of different type, it will return an error.
Returns:
- If operation was successful:
- true
- If an error has occurred:
- {"error"=error}
Item id's cannot be same. Item id's should exist. Items should have the same type. Items should be stackable. Number of items can exceed their default stack amount.
Parameters:
- intoUUID: String - uuid of digital item to transfer items from fromUUID into.
- fromUUID: String
- amount: Number (D Int.MAX_VALUE) - follows the same logic as in previous functions
Returns:
- If operation was successful:
- true
- If an error has occurred:
- {"error"=error}
Parameters:
- fromUUID: String
- amount: Number (D Int.MAX_VALUE) - amount should be ( 0 < amount < item amount )
Returns:
- If operation was successful:
- uuid: String - uuid of new digital item stack
- If an error has occurred:
- {"error"=error}
Returns:
- If operation was successful:
- true
- If an error has occurred:
- {"error"=error}
Parameters:
- uuid: String - id of digitized item
Returns:
- If operation was successful:
- A table with information about digitized item
- If an error has occurred:
- {"error"=error}
Returns a table - information about item in digitizer slot.
Returns a number - slot limit.