I want to create an inverted pyramid hole in the ground down to bedrock, using the
/fill command. For this, I would like to know how to use command blocks in a for loop. I would basically like to use command blocks to do this:
for(i=100; i>0; i--) /fill -i i -i i i i air
While I am sure some external programs might help me do this, I am doing this to learn how command blocks work, and would like to do this using them only.
I am familiar with basic command blocks, the different types of command blocks, etc. I have also searched Google, YouTube to no avail.
I thought of a possible solution that requires the use of variables, but I could not think of a way to work with them. I could use the scoreboard, but one important requirement then would be to append a number to a string in a command block command.