Magic Carpet
Magic Carpet by 42Richtofen4211814680    1
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.
Minecraft 1.9
9931 characters
More by 42Richtofen42
How to install
Comments
Show source commands
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}}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}