MOVE_ITEMS
Moves items from one inventory to another.
It moves up to count items and returns how many were moved. This needs allowInventoryChanges or an administrator as owner, otherwise PERMISSION_DENIED is raised. Blocks without inventory raise INVALID_ARGUMENT.
Parameters and results
fromSTRUCT c0de/minecraft/POSITION: the block to take items fromtoSTRUCT c0de/minecraft/POSITION: the block to put items intoidSTRING: the item ID, e.g. minecraft:wheatcountINTEGER: the most items to move- result
resultINTEGER: the number of moved items
Example
c0de
CALL c0de/minecraft/MOVE_ITEMS
PARAMETER from farmChest ;
PARAMETER to storage ;
PARAMETER id "minecraft:wheat" ;
PARAMETER count 64 ;
RESULT result moved