
# -> Get item
data modify entity 00000001-0000-002b-0000-00010000002b item set from block ~ ~ ~ Items[2]

# -> Modify item
item modify entity 00000001-0000-002b-0000-00010000002b contents overly_realistic:food/food_spoil

# -> Return item
data modify block ~ ~ ~ Items[2] set from entity 00000001-0000-002b-0000-00010000002b item
