Equivalent to Spawning a Wither

We are wanting to create an artifact that would kind of work like Spawning in the Wither. It would spawn-in/remove effects the first time, but would spawn in the Wither the second time it's placed down on a certain block. Is that possible with a Data Pack? Version 1.21.4
Continue to help post