DELETE_ITEMS
Removes items from an inventory.
It removes up to count items and returns how many were removed. This needs allowInventoryChanges or an administrator as owner, otherwise PERMISSION_DENIED is raised.
Parameters and results
positionSTRUCT c0de/minecraft/POSITION: the block with the inventoryidSTRING: the item ID, e.g. minecraft:rotten_fleshcountINTEGER: the most items to remove- result
resultINTEGER: the number of removed items
Example
c0de
CALL c0de/minecraft/DELETE_ITEMS
PARAMETER position trashChest ;
PARAMETER id "minecraft:rotten_flesh" ;
PARAMETER count 64 ;
RESULT result removed