MrGarretto's One-Command Creations

Giving the modded minecraft feeling to vanilla

Conveyor Belts command (1.10.2)
About this command
This command adds conveyor belts that can carry any entity in any direction! Watch the video below to learn how to craft and use the conveyor belts!
Show source commands

INIT:/scoreboard objectives add CB_Block dummy
INIT:/tellraw @a [{"color":"green","bold":true,"text":"The Conveyor Belts "},{"color":"light_gray","bold":true,"text":"command module "},{"color":"gold","bold":true,"text":"has been installed!"}]
INIT:/tellraw @a {"color":"red","text":"Command by MrGarretto"}
INIT:/tellraw @a {"color":"yellow","text":"Craft conveyor belts by throwing a stone pressure plate, and powered rails on the ground together!"}

/scoreboard players set @e[type=Item] CB_Block 1 {Item:{id:"minecraft:stone_pressure_plate"}}
/scoreboard players set @e[type=Item] CB_Block 2 {Item:{id:"minecraft:golden_rail"}}
/scoreboard players set @e[type=Item] CB_Block 3 {Item:{id:"minecraft:carpet"}}
/execute @e[score_CB_Block_min=1,score_CB_Block=1] ~ ~ ~ execute @e[score_CB_Block_min=2,score_CB_Block=2,r=1,c=1] ~ ~ ~ summon Item ~ ~ ~ {Item:{id:"minecraft:spawn_egg",Count:6,tag:{EntityTag:{id:Squid},display:{Name:"ConveyorBelt"}}}}
/execute @e[score_CB_Block_min=1,score_CB_Block=1] ~ ~ ~ execute @e[score_CB_Block_min=2,score_CB_Block=2,r=1] ~ ~ ~ kill @e[type=Item,score_CB_Block_min=1,score_CB_Block=2,r=3,c=2]
/execute @a[rym=46,ry=135] ~ ~ ~ execute @e[type=Squid,name=ConveyorBelt,c=3,r=12] ~ ~ ~ summon ArmorStand ~ ~ ~ {Marker:1,Invisible:1,NoGravity:1,CustomName:"CBWest",Tags:["CB_is"]}
/execute @a[rym=136,ry=-135] ~ ~ ~ execute @e[type=Squid,name=ConveyorBelt,c=3,r=12] ~ ~ ~ summon ArmorStand ~ ~ ~ {Marker:1,Invisible:1,NoGravity:1,CustomName:"CBNorth",Tags:["CB_is"]}
/execute @a[rym=-134,ry=-45] ~ ~ ~ execute @e[type=Squid,name=ConveyorBelt,c=3,r=12] ~ ~ ~ summon ArmorStand ~ ~ ~ {Marker:1,Invisible:1,NoGravity:1,CustomName:"CBEast",Tags:["CB_is"]}
/execute @a[rym=-44,ry=45] ~ ~ ~ execute @e[type=Squid,name=ConveyorBelt,c=3,r=12] ~ ~ ~ summon ArmorStand ~ ~ ~ {Marker:1,Invisible:1,NoGravity:1,CustomName:"CBSouth",Tags:["CB_is"]}
/execute @e[type=Squid,name=ConveyorBelt] ~ ~ ~ fill ~ ~ ~ ~ ~ ~ carpet 7 replace air
/tp @e[type=Squid,name=ConveyorBelt] ~ ~-500 ~

# Entity movement
/execute @e[type=ArmorStand,name=CBWest] ~ ~ ~ entitydata @e[type=Item,r=1] {Motion:[-0.1d,0.0d,0.0d]}
/execute @e[type=ArmorStand,name=CBNorth] ~ ~ ~ entitydata @e[type=Item,r=1] {Motion:[0.0d,0.0d,-0.1d]}
/execute @e[type=ArmorStand,name=CBEast] ~ ~ ~ entitydata @e[type=Item,r=1] {Motion:[0.1d,0.0d,0.0d]}
/execute @e[type=ArmorStand,name=CBSouth] ~ ~ ~ entitydata @e[type=Item,r=1] {Motion:[0.0d,0.0d,0.1d]}

# Player teleporting
/execute @e[type=ArmorStand,name=CBWest] ~ ~ ~ tp @e[type=!Item,r=1,tag=!CB_is] ~-0.1 ~ ~
/execute @e[type=ArmorStand,name=CBNorth] ~ ~ ~ tp @e[type=!Item,r=1,tag=!CB_is] ~ ~ ~-0.1
/execute @e[type=ArmorStand,name=CBEast] ~ ~ ~ tp @e[type=!Item,r=1,tag=!CB_is] ~0.1 ~ ~
/execute @e[type=ArmorStand,name=CBSouth] ~ ~ ~ tp @e[type=!Item,r=1,tag=!CB_is] ~ ~ ~0.1

# Detect if the conveyor belt is destroyed
/execute @e[tag=CB_is] ~ ~ ~ detect ~ ~ ~ air 0 kill @e[score_CB_Block_min=3,score_CB_Block=3,r=2]
/execute @e[tag=CB_is] ~ ~ ~ detect ~ ~ ~ air 0 summon Item ~ ~ ~ {Item:{id:"minecraft:spawn_egg",Count:1,tag:{EntityTag:{id:Squid},display:{Name:"ConveyorBelt"}}}}
/execute @e[tag=CB_is] ~ ~ ~ detect ~ ~ ~ air 0 kill @e[tag=CB_is,c=1,r=1]

For Minecraft version 1.10.2
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!