I need help with a command. I want to have a launcher placed at a coordinate (via command block), which also contains certain items, namely 10 bone meal. So far so good, I found out, but unfortunately bone meal is defined in 1.8.9 as minecraft: dye with color 15, without this specification only ink bags come. For a / give command, I would just write the number 15 after it, but unfortunately that doesn't work here. Here is the command that comes out with 10 bags of ink:
/ setblock ~ 1 ~ ~ minecraft: dispenser 4 replace {Items: [{Count: 10, id: minecraft: dye}]}
In plain language I don't know how to add NBT data to an item within a placed block (box, thrower).
Okay, the solution was relatively easy. I checked a command generator website and apparently the NBT indication Damage stands for both the damage to items and the color / variant of blocks. That means that the command I used is like this:
/ setblock ~ 1 ~ ~ dispenser 4 replace {Items: [{id: dye, Damage: 15, Count: 10}]}