how can i put this in a datapack

this is the command i want to put in, but its too big, so it wont work

Continue to help post