I want to put a command into a command block that will spawn an invulnerable end crystal directly on top of the command block relative to the command block's location in world.
This is the current command I am putting in the command block minus any tag for offset since the offset is what I am trying to figure out.
/summon minecraft:end_crystal ~ ~1 ~ {PersistenceRequired:1b,Attributes:[{Name:"generic.knockbackResistance",Base:1f}],Invulnerable:1}
Specific question: How do I put an offset in the command block command in order to get my desired result above?