This command adds the bukkit Magic Carpet feature to your world. To activate, paste command into an impulse (normal) command block. Turn it on with a BUTTON. Once it's done, you can turn it on and off with the lever it places. After you turn it on, hold a clock to get a Magic Carpet! The clock can be in either hand. Wherever you walk or jump, it will stay under you so you don't fall. To go down with the carpet, tap crouch. Remember: This is made for 16w06a and up. It supports multiplayer. It works with other commands by me. It might cause lag. It needs a nearly-zero laggy world to work perfectly. When using high levels of speed effects, it might not work. If you have a scoreboard objective named 'Shift' (before you summoned the machine) it won't work until you delete it and re-summon the machine.
How to install
How to import this command into your world
First, you must give yourself a command block (If you are on a server, you must be 'OP'ed, and have access to /gamemode 1)
To get a command block, type
/give @p command_block in the chat.
Once you have a command block, right click it to open it's GUI.
Now, you must copy and paste the command from your browser into the game. Select the entire command from below, then right click and press 'copy'.
Next, go back to your minecraft world, and paste the command you just copied into the command block. There are a few different keys that may be used to do this, depending on your keyboard. The most common ones are 'CTRL + V', 'COMMAND + V', or 'STRG + V'
Finally, you can press done to exit the GUI, and execute the command block by powering it with a redstone block, a lever, or any thing you can get your grubby hands on. Just make sure you don't place it on top of the command block, or the machine will not be installed!
Show source commands
Link to command: http://pastebin.com/WC0DchUU
summon FallingSand ~ ~1 ~ {Block:command_block,Time:1,Data:1,TileEntityData:{Command:"scoreboard objectives add mc dummy",auto:1},Passengers:[{id:FallingSand,Block:command_block,Time:1,Data:1,TileEntityData:{Command:"scoreboard objectives add shift stat.sneakTime",auto:1},Passengers:[{id:FallingSand,Block:command_block,Time:1,Data:1,TileEntityData:{Command:"gamerule commandBlockOutput false",auto:1},Passengers:[{id:FallingSand,Block:repeating_command_block,Time:1,Data:1,TileEntityData:{Command:"scoreboard players set @a mc 0"},Passengers:[{id:FallingSand,Block:chain_command_block,Time:1,Data:1,TileEntityData:{Command:"scoreboard players set @a mc 1 {SelectedItem:{id:minecraft:clock}}",auto:1},Passengers:[{id:FallingSand,Block:chain_command_block,Time:1,Data:1,TileEntityData:{Command:"scoreboard players set @a mc 1 {Inventory:[{id:minecraft:clock,Slot:-106b}]}",auto:1},Passengers:[{id:FallingSand,Block:chain_command_block,Time:1,Data:1,TileEntityData:{Command:"execute @e[type=ArmorStand,name=MagicCarpet] ~ ~ ~ setblock ~ ~ ~ air",auto:1},Passengers:[{id:FallingSand,Block:chain_command_block,Time:1,Data:1,TileEntityData:{Command:"execute @e[type=ArmorStand,name=MagicCarpett] ~ ~ ~ setblock ~ ~ ~ air",auto:1},Passengers:[{id:FallingSand,Block:chain_command_block,Time:1,Data:1,TileEntityData:{Command:"kill @e[type=ArmorStand,name=MagicCarpet]",auto:1},Passengers:[{id:FallingSand,Block:chain_command_block,Time:1,Data:1,TileEntityData:{Command:"kill @e[type=ArmorStand,name=MagicCarpett]",auto:1},Passengers:[{id:FallingSand,Block:chain_command_block,Time:1,Data:1,TileEntityData:{Command:"execute @a[score_mc_min=1] ~ ~ ~ summon ArmorStand ~-2 ~-1 ~-2 {NoGravity:1,Small:1,NoBasePlate:1,Invisible:1,Invulnerable:1,CustomName:MagicCarpet}",auto:1},Passengers:[{id:FallingSand,Block:chain_command_block,Time:1,Data:1,TileEntityData:{Command:"execute @a[score_mc_min=1] ~ ~ ~ summon ArmorStand ~-2 ~-1 ~-1 {NoGravity:1,Small:1,NoBasePlate:1,Invisible:1,Invulnerable:1,CustomName:MagicCarpet}",auto:1},Passengers:[{id:FallingSand,Block:chain_command_block,Time:1,Data:1,TileEntityData:{Command:"execute @a[score_mc_min=1] ~ ~ ~ summon ArmorStand ~-2 ~-1 ~ {NoGravity:1,Small:1,NoBasePlate:1,Invisible:1,Invulnerable:1,CustomName:MagicCarpet}",auto:1},Passengers:[{id:FallingSand,Block:chain_command_block,Time:1,Data:1,TileEntityData:{Command:"execute @a[score_mc_min=1] ~ ~ ~ summon ArmorStand ~-2 ~-1 ~1 {NoGravity:1,Small:1,NoBasePlate:1,Invisible:1,Invulnerable:1,CustomName:MagicCarpet}",auto:1},Passengers:[{id:FallingSand,Block:chain_command_block,Time:1,Data:1,TileEntityData:{Command:"execute @a[score_mc_min=1] ~ ~ ~ summon ArmorStand ~-2 ~-1 ~2 {NoGravity:1,Small:1,NoBasePlate:1,Invisible:1,Invulnerable:1,CustomName:MagicCarpet}",auto:1},Passengers:[{id:FallingSand,Block:chain_command_block,Time:1,Data:1,TileEntityData:{Command:"execute @a[score_mc_min=1] ~ ~ ~ summon ArmorStand ~-1 ~-1 ~-2 {NoGravity:1,Small:1,NoBasePlate:1,Invisible:1,Invulnerable:1,CustomName:MagicCarpet}",auto:1},Passengers:[{id:FallingSand,Block:chain_command_block,Time:1,Data:1,TileEntityData:{Command:"execute @a[score_mc_min=1] ~ ~ ~ summon ArmorStand ~-1 ~-1 ~-1 {NoGravity:1,Small:1,NoBasePlate:1,Invisible:1,Invulnerable:1,CustomName:MagicCarpet}",auto:1},Passengers:[{id:FallingSand,Block:chain_command_block,Time:1,Data:1,TileEntityData:{Command:"execute @a[score_mc_min=1] ~ ~ ~ summon ArmorStand ~-1 ~-1 ~ {NoGravity:1,Small:1,NoBasePlate:1,Invisible:1,Invulnerable:1,CustomName:MagicCarpet}",auto:1},Passengers:[{id:FallingSand,Block:chain_command_block,Time:1,Data:1,TileEntityData:{Command:"execute @a[score_mc_min=1] ~ ~ ~ summon ArmorStand ~-1 ~-1 ~1 {NoGravity:1,Small:1,NoBasePlate:1,Invisible:1,Invulnerable:1,CustomName:MagicCarpet}",auto:1},Passengers:[{id:FallingSand,Block:chain_command_block,Time:1,Data:1,TileEntityData:{Command:"execute @a[score_mc_min=1] ~ ~ ~ summon ArmorStand ~-1 ~-1 ~2 {NoGravity:1,Small:1,NoBasePlate:1,Invisible:1,Invulnerable:1,CustomName:MagicCarpet}",auto:1},Passengers:[{id:FallingSand,Block:chain_command_block,Time:1,Data:1,TileEntityData:{Command:"execute @a[score_mc_min=1] ~ ~ ~ summon ArmorStand ~ ~-1 ~-2 {NoGravity:1,Small:1,NoBasePlate:1,Invisible:1,Invulnerable:1,CustomName:MagicCarpet}",auto:1},Passengers:[{id:FallingSand,Block:chain_command_block,Time:1,Data:1,TileEntityData:{Command:"execute @a[score_mc_min=1] ~ ~ ~ summon ArmorStand ~ ~-1 ~-1 {NoGravity:1,Small:1,NoBasePlate:1,Invisible:1,Invulnerable:1,CustomName:MagicCarpet}",auto:1},Passengers:[{id:FallingSand,Block:chain_command_block,Time:1,Data:1,TileEntityData:{Command:"execute @a[score_mc_min=1] ~ ~ ~ summon ArmorStand ~ ~-1 ~ {NoGravity:1,Small:1,NoBasePlate:1,Invisible:1,Invulnerable:1,CustomName:MagicCarpett}",auto:1},Passengers:[{id:FallingSand,Block:chain_command_block,Time:1,Data:1,TileEntityData:{Command:"execute @a[score_mc_min=1] ~ ~ ~ summon ArmorStand ~ ~-1 ~1 {NoGravity:1,Small:1,NoBasePlate:1,Invisible:1,Invulnerable:1,CustomName:MagicCarpet}",auto:1},Passengers:[{id:FallingSand,Block:chain_command_block,Time:1,Data:1,TileEntityData:{Command:"execute @a[score_mc_min=1] ~ ~ ~ summon ArmorStand ~ ~-1 ~2 {NoGravity:1,Small:1,NoBasePlate:1,Invisible:1,Invulnerable:1,CustomName:MagicCarpet}",auto:1},Passengers:[{id:FallingSand,Block:chain_command_block,Time:1,Data:1,TileEntityData:{Command:"execute @a[score_mc_min=1] ~ ~ ~ summon ArmorStand ~1 ~-1 ~-2 {NoGravity:1,Small:1,NoBasePlate:1,Invisible:1,Invulnerable:1,CustomName:MagicCarpet}",auto:1},Passengers:[{id:FallingSand,Block:chain_command_block,Time:1,Data:1,TileEntityData:{Command:"execute @a[score_mc_min=1] ~ ~ ~ summon ArmorStand ~1 ~-1 ~-1 {NoGravity:1,Small:1,NoBasePlate:1,Invisible:1,Invulnerable:1,CustomName:MagicCarpet}",auto:1},Passengers:[{id:FallingSand,Block:chain_command_block,Time:1,Data:1,TileEntityData:{Command:"execute @a[score_mc_min=1] ~ ~ ~ summon ArmorStand ~1 ~-1 ~ {NoGravity:1,Small:1,NoBasePlate:1,Invisible:1,Invulnerable:1,CustomName:MagicCarpet}",auto:1},Passengers:[{id:FallingSand,Block:chain_command_block,Time:1,Data:1,TileEntityData:{Command:"execute @a[score_mc_min=1] ~ ~ ~ summon ArmorStand ~1 ~-1 ~1 {NoGravity:1,Small:1,NoBasePlate:1,Invisible:1,Invulnerable:1,CustomName:MagicCarpet}",auto:1},Passengers:[{id:FallingSand,Block:chain_command_block,Time:1,Data:1,TileEntityData:{Command:"execute @a[score_mc_min=1] ~ ~ ~ summon ArmorStand ~1 ~-1 ~2 {NoGravity:1,Small:1,NoBasePlate:1,Invisible:1,Invulnerable:1,CustomName:MagicCarpet}",auto:1},Passengers:[{id:FallingSand,Block:chain_command_block,Time:1,Data:1,TileEntityData:{Command:"execute @a[score_mc_min=1] ~ ~ ~ summon ArmorStand ~2 ~-1 ~-2 {NoGravity:1,Small:1,NoBasePlate:1,Invisible:1,Invulnerable:1,CustomName:MagicCarpet}",auto:1},Passengers:[{id:FallingSand,Block:chain_command_block,Time:1,Data:1,TileEntityData:{Command:"execute @a[score_mc_min=1] ~ ~ ~ summon ArmorStand ~2 ~-1 ~-1 {NoGravity:1,Small:1,NoBasePlate:1,Invisible:1,Invulnerable:1,CustomName:MagicCarpet}",auto:1},Passengers:[{id:FallingSand,Block:chain_command_block,Time:1,Data:1,TileEntityData:{Command:"execute @a[score_mc_min=1] ~ ~ ~ summon ArmorStand ~2 ~-1 ~ {NoGravity:1,Small:1,NoBasePlate:1,Invisible:1,Invulnerable:1,CustomName:MagicCarpet}",auto:1},Passengers:[{id:FallingSand,Block:chain_command_block,Time:1,Data:1,TileEntityData:{Command:"execute @a[score_mc_min=1] ~ ~ ~ summon ArmorStand ~2 ~-1 ~1 {NoGravity:1,Small:1,NoBasePlate:1,Invisible:1,Invulnerable:1,CustomName:MagicCarpet}",auto:1},Passengers:[{id:FallingSand,Block:chain_command_block,Time:1,Data:1,TileEntityData:{Command:"execute @a[score_mc_min=1] ~ ~ ~ summon ArmorStand ~2 ~-1 ~2 {NoGravity:1,Small:1,NoBasePlate:1,Invisible:1,Invulnerable:1,CustomName:MagicCarpet}",auto:1},Passengers:[{id:FallingSand,Block:chain_command_block,Time:1,Data:1,TileEntityData:{Command:"scoreboard players set @e[type=ArmorStand] shift 0",auto:1},Passengers:[{id:FallingSand,Block:chain_command_block,Time:1,Data:1,TileEntityData:{Command:"execute @e[type=ArmorStand,name=MagicCarpet] ~ ~ ~ detect ~ ~ ~ air 0 scoreboard players set @e[c=1,type=ArmorStand,name=MagicCarpet] shift 1",auto:1},Passengers:[{id:FallingSand,Block:chain_command_block,Time:1,Data:1,TileEntityData:{Command:"execute @e[type=ArmorStand,name=MagicCarpett] ~ ~ ~ detect ~ ~ ~ air 0 scoreboard players set @e[c=1,type=ArmorStand,name=MagicCarpett] shift 1",auto:1},Passengers:[{id:FallingSand,Block:chain_command_block,Time:1,Data:1,TileEntityData:{Command:"kill @e[type=ArmorStand,name=MagicCarpet,score_shift=0]",auto:1},Passengers:[{id:FallingSand,Block:chain_command_block,Time:1,Data:1,TileEntityData:{Command:"kill @e[type=ArmorStand,name=MagicCarpett,score_shift=0]",auto:1},Passengers:[{id:FallingSand,Block:chain_command_block,Time:1,Data:1,TileEntityData:{Command:"execute @e[type=ArmorStand,name=MagicCarpet] ~ ~ ~ setblock ~ ~ ~ glass 0 replace",auto:1},Passengers:[{id:FallingSand,Block:chain_command_block,Time:1,Data:1,TileEntityData:{Command:"execute @e[type=ArmorStand,name=MagicCarpett] ~ ~ ~ setblock ~ ~ ~ glowstone 0 replace",auto:1},Passengers:[{id:FallingSand,Block:chain_command_block,Time:1,Data:1,TileEntityData:{Command:"execute @a[score_shift_min=1,score_mc_min=1] ~ ~ ~ detect ~ ~-1 ~ glowstone 0 tp @a[score_shift_min=1,score_mc_min=1] ~ ~-.125 ~",auto:1},Passengers:[{id:FallingSand,Block:chain_command_block,Time:1,Data:1,TileEntityData:{Command:"scoreboard players set @a shift 0",auto:1},Passengers:[{id:FallingSand,Block:command_block,Time:1,Data:1,TileEntityData:{Command:"setblock ~-1 ~-41 ~ lever 2",auto:1},Passengers:[{id:FallingSand,Block:command_block,Time:1,Data:1,TileEntityData:{Command:"clone ~-1 ~-2 ~ ~ ~-42 ~ ~-1 ~-46 ~ replace move",auto:1},Passengers:[{id:FallingSand,Block:command_block,Time:1,Data:1,TileEntityData:{Command:"fill ~ ~ ~ ~ ~-2 ~ air",auto:1}}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}