Minecraft Mob chest Command 1.15.2?

Cl
2

I have a question, I'm currently building a map in version 1.15.2.

I would like to insert a kind of boss, if one is to be defeated, a chest containing loot should appear.

Sure I could make a command that the boss would drop something, but it becomes a phantom that flies around above, the loot would then only fly into nothing…

So I wanted to try that with the chest.

Ch

Do with the execute command and choose the boss Al's target and then make a clone that goes where you want it

Cl

Thank you, I just didn't understand your answer correctly 😅