How to make Minecraft armorstand ungriptable?

El
1

I read a little bit into commands and made a thin and nicer column with armorstands. They are simply invisible armorstands with blocks on their heads.

How can I make sure that these blocks can no longer be removed from the heads with a right click?

El

I solved the problem with "DisableSlots"