SPAWN_ITEM
Spawns items on the ground at a position.
count must be 1 to 64. The result is the UUID of the new item entity. This needs allowSpawning or an administrator as owner, otherwise PERMISSION_DENIED is raised.
Parameters and results
positionSTRUCT c0de/minecraft/POSITION: where the items appearidSTRING: the item ID, e.g. minecraft:breadcountINTEGER: the number of items, 1 to 64- result
resultSTRING: the UUID of the item entity
Example
c0de
CALL c0de/minecraft/SPAWN_ITEM
PARAMETER position spot ;
PARAMETER id "minecraft:bread" ;
PARAMETER count 3 ;
RESULT result itemId