チェストに自動で中身を入れる方法
/setblock ~ ~2 ~ minecraft:chest
/data merge block ~ ~2 ~ {Items:[{id:"minecraft:arrow",Count:1,Slot:0},{id:"minecraft:arrow",Count:1,Slot:1},{id:"minecraft:arrow",Count:2,Slot:2},・・・{id:"minecraft:arrow",Count:4,Slot:26}]}
これは、矢を入れる例