MrGarretto's One-Command Creations

Giving the modded minecraft feeling to vanilla

Gradual Player Trails command
About this command
This command will automatically create trails where players walk often! Trails will at first be dirt, then as they are walked on more often, will become gravel, stone, andesite, and cobblestone! It even works for sand, changing it from sand to end stone, to gravel, to dirt!
Show source commands

INIT:/scoreboard objectives add walk stat.walkOneCm
INIT:/scoreboard objectives add walkSmall stat.walkOneCm
/execute @a[score_walk_min=1000] ~ ~ ~ detect ~ ~-1 ~ stone 5 setblock ~ ~-1 ~ cobblestone 0
/execute @a[score_walk_min=1000] ~ ~ ~ detect ~ ~-1 ~ stone 0 setblock ~ ~-1 ~ stone 5
/execute @a[score_walk_min=1000] ~ ~ ~ detect ~ ~-1 ~ gravel 0 setblock ~ ~-1 ~ stone 0
/execute @a[score_walk_min=1000] ~ ~ ~ detect ~ ~-1 ~ dirt 1 setblock ~ ~-1 ~ gravel 0
/execute @a[score_walk_min=1000] ~ ~ ~ detect ~ ~-1 ~ dirt 0 setblock ~ ~-1 ~ dirt 1
/execute @a[score_walkSmall_min=700] ~ ~ ~ detect ~ ~-1 ~ grass 0 setblock ~ ~-1 ~ dirt 0
/execute @a[score_walk_min=1000] ~ ~ ~ detect ~ ~-1 ~ end_stone 0 setblock ~ ~-1 ~ gravel 0
/execute @a[score_walk_min=1000] ~ ~ ~ detect ~ ~-1 ~ sand 0 setblock ~ ~-1 ~ end_stone 0
/execute @a[score_walk_min=1000] ~ ~ ~ scoreboard players reset @a walk
/execute @a[score_walk_min=700] ~ ~ ~ scoreboard players reset @a walkSmall

## UPDATE 1 - Clears previous scores if they existed

INIT:/scoreboard players reset @a walk
INIT:/scoreboard players reset @a walkSmall
INIT:/scoreboard objectives add walk stat.walkOneCm
INIT:/scoreboard objectives add walkSmall stat.walkOneCm
/execute @a[score_walk_min=1000] ~ ~ ~ detect ~ ~-1 ~ stone 5 setblock ~ ~-1 ~ cobblestone 0
/execute @a[score_walk_min=1000] ~ ~ ~ detect ~ ~-1 ~ stone 0 setblock ~ ~-1 ~ stone 5
/execute @a[score_walk_min=1000] ~ ~ ~ detect ~ ~-1 ~ gravel 0 setblock ~ ~-1 ~ stone 0
/execute @a[score_walk_min=1000] ~ ~ ~ detect ~ ~-1 ~ dirt 1 setblock ~ ~-1 ~ gravel 0
/execute @a[score_walk_min=1000] ~ ~ ~ detect ~ ~-1 ~ dirt 0 setblock ~ ~-1 ~ dirt 1
/execute @a[score_walkSmall_min=700] ~ ~ ~ detect ~ ~-1 ~ grass 0 setblock ~ ~-1 ~ dirt 0
/execute @a[score_walk_min=1000] ~ ~ ~ detect ~ ~-1 ~ end_stone 0 setblock ~ ~-1 ~ gravel 0
/execute @a[score_walk_min=1000] ~ ~ ~ detect ~ ~-1 ~ sand 0 setblock ~ ~-1 ~ end_stone 0
/execute @a[score_walk_min=1000] ~ ~ ~ scoreboard players reset @a walk
/execute @a[score_walk_min=700] ~ ~ ~ scoreboard players reset @a walkSmall

For Minecraft version 1.8.3
Click here for other versions of this command!
How to use
Give yourself a command block with /give @p command_block. Place it then paste the command from below into it. One command creations are similar to Minecraft mods, but are much easier to add to your world!
Click here for other versions of this command!