Well first off thanks to the handy dandy new 1.13 command system /execute has testfor built in so you can simplify all these commands to just two commands.
/execute at @e[tag=A] if blocks 1 2 3 1 2 3 ~ ~-1 ~ all run fill ~ ~-1 ~ ~ ~-1 ~ minecraft:glass
where 123 are the coordinates of a "sample block" that is the type you want to replace.
Alternatively, you could just use one armor stand and just put:
/execute at @e[tag=A] run fill ~ ~ ~ ~ ~94 ~ minecraft:glass replace minecraft:slime_block
Where slime block is whatever block you would like to replace with glass
No matter which way you use you will still have to teleport them forward somehow. You could compact it to a function but with only two or three command blocks it doesn't really matter much.
P.S. this for requests for like creations, gimmicks and other useful tools.
GENERATION 9006: The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment
If Facebook, Myspace, and Twitter were all destroyed, 90% of teens would
go insane. If you're one of the 10% that would be laughing at them,
copy & paste this into your signature and hope it happens.
Greetings to the Minecraft forum community. As you may have guessed from the title I am now taking requests. Anything that you have ever wanted just leave a reply and I will get back to you ASAP.
Please include the following in your posts:
Version: (yes I would be happy to do 1.13)
Main function: (what it actually is supposed to do)
Example: (an understandable example of how it could be applied)
I will try to make these as compact as possible and I will do my best!