My goal is to use this zombie as a way of telling how far along a music track is. I have a clock going off every 0.4 seconds, and each time it is supposed to find the zombie at its current position, and then move it forwards by one block in x direction. The purpose of the Zombie is so that another command can find the zombie, and set down a playsound command block. I am trying to make a music recording device, and this zombie is my variable for the recording part. I need a variable, so I can do this:
X = Zombie's Position x= one block in positive x direction
Do tp Zombie to X+x every 0.4 seconds.
Then, when the player presses a button and sets off a command block, the recording itself for future playback and editing:
Y=Command block with /playsound note:example @p z=one block in z direction R=redstone wire
When a button is pressed, Y is set at X - 3z, and R is set at both X - 2z and X - z
If the button is not pressed in any period of 0.4 seconds while recording:
S=Repeater set to 4 ticks
S placed at X, and command tp Zombie to X + 1 is activated.
That is my idea for a music recording device in Minecraft.