Take the 2-minute tour ×
Arqade is a question and answer site for passionate videogamers on all platforms. It's 100% free, no registration required.

So I am making a 'magic trail', which is essentially wherever you walk and jump, a block will be placed below you. Unfortunately, the trail will always stick around and never go away. After a while this means that there will be a giant trail of blocks through the sky that looks pretty ugly. What I want to do is make a block disappear after a certain period of time, say, 7 seconds. Here are the commands and the setup for this project:

Command block #1: /setblock ~ ~ ~-1 redstone_block 0 destroy
Command block #2: /execute @a ~ ~ ~ /fill ~ ~-1 ~ ~ ~-1 ~ wool 0 replace  air
Redstone block: []

Setup:   #1 []

Note: Please don't try a method using a FallingSandEntity and Age because I want to have the player be able to actually walk on the blocks. If you use a FallingSandEntity the player will fall right through the block. Anyways, all help is appreciated, thanks! Also, if you want to try doing this with the fill command, I would want a 7x7x7 hollow cube surrounding the player so that the trail can't go outside the blocks. I just don't know how to do this.

share|improve this question
Does the command to place a block output a signal? if so: run that redstone signal through a seven second long redstone circuit and then into a second command block. You'll still need to get the coordinates over to the second block somehow though. Since the player will have moved on... –  Arperum May 21 at 14:26
Well, progress. I've made it so it won't fill any block with wool, just air. –  DatEpicCoderGuyWhoPrograms May 22 at 12:09
I would set a bunch of command blocks to remove wool blocks at every space around ~ ~-1 ~, except the actual block. That way, as the player moves away, the previous wool block enters this zone of 20 blocks (9 above, 9 below, 8 around) and is destroyed. –  fredley May 22 at 12:13

1 Answer 1

up vote 2 down vote accepted

I did something very similar to this, using a fill clock, scoreboard commands, and wither skulls.

Two scoreboard objectives were added, walkonair and lifetime. The first objective controls the ability to walk on air, and the second objective controls the "lifetime" of the blocks below the player.

The setup: Mechanic for walking on air.

share|improve this answer
What are in the two command blocks with pressure plates? –  DatEpicCoderGuyWhoPrograms May 22 at 22:38
By the way, great answer! I like your method of getting rid of the blocks instead of my method where it uses fill replace commands to make a hollow cube around the player. –  DatEpicCoderGuyWhoPrograms May 22 at 22:39
The command on the right is scoreboard players reset * and the one on the left is scoreboard players set @a[r=1] walkonair 1. (They work as a toggle for the ability to walk on air.) –  AlfredPersonMc May 23 at 22:48
Sorry to pester, but how do I set up a fill clock with the two command blocks? I only know how to do the /setblock one. –  DatEpicCoderGuyWhoPrograms May 23 at 23:19
One block does /fill ~ ~1 ~ ~ ~1 ~ redstone_block and the other command block (two blocks above the first) does /fill ~ ~-1 ~ ~ ~-1 ~ stone. You'll probably have to adjust the orientation for the clock to actually start. –  AlfredPersonMc May 31 at 22:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.