Elevator
Elevator by SpartanSpark17592921    0
This is a command creation that will allow you to make elevators. It will
Minecraft 1.13
6775 characters
More by SpartanSpark
How to install
Comments
Show source commands
summon falling_block ~ ~1 ~ {BlockState:{Name:"oak_log"},Time:1,Passengers:[{id:falling_block,BlockState:{Name:"redstone_block"},Time:1,Passengers:[{id:falling_block,BlockState:{Name:"activator_rail"},Time:1,Passengers:[{id:command_block_minecart,Command:"kill @e[type=!player,tag=ccp_ToP9keC5]"},{id:command_block_minecart,Command:"kill @e[tag=ccp_ToP9keC5_r]"},{id:command_block_minecart,Command:"gamerule commandBlockOutput false"},{id:command_block_minecart,Command:"fill ~2 ~-3 ~-1 ~25 ~-1 ~1 red_terracotta hollow"},{id:command_block_minecart,Command:"fill ~2 ~-2 ~-1 ~25 ~-2 ~1 yellow_stained_glass replace red_terracotta"},{id:command_block_minecart,Command:"setblock ~1 ~-2 ~ wall_sign[facing=west]{Text1:\"{\\\"text\\\":\\\"\\\"}\",Text2:\"{\\\"text\\\":\\\"Destroy\\\",\\\"color\\\":\\\"dark_red\\\",\\\"bold\\\":true}\",Text3:\"{\\\"text\\\":\\\"Machine\\\",\\\"color\\\":\\\"dark_red\\\",\\\"bold\\\":true}\",Text4:\"{\\\"text\\\":\\\"\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"fill ~ ~-1 ~-1 ~24 ~1 ~1 air\\\"}}\"}"},{id:command_block_minecart,Command:"setblock ~1 ~-1 ~ wall_sign[facing=west]{Text1:\"{\\\"text\\\":\\\"\\\"}\",Text2:\"{\\\"text\\\":\\\"Give\\\",\\\"color\\\":\\\"green\\\",\\\"bold\\\":true}\",Text3:\"{\\\"text\\\":\\\"Item\\\",\\\"color\\\":\\\"green\\\",\\\"bold\\\":true}\",Text4:\"{\\\"text\\\":\\\"\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"give @p minecraft:pig_spawn_egg{display:{Name:\\\\\\\"{\\\\\\\\\\\\\\\"text\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"Elevator\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"bold\\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\\"italic\\\\\\\\\\\\\\\":false}\\\\\\\",Lore:[\\\\\\\"By: SpartanSpark\\\\\\\"]},EntityTag:{NoAI:1b,ActiveEffects:[{Id:14b,Amplifier:1b,Duration:10000,ShowParticles:0b}]}}\\\"}}\"}"},{id:command_block_minecart,Command:"setblock ~23 ~-2 ~0 chain_command_block[facing=east]{TrackOutput:0,auto:1,Command:\"execute as @e[tag=ElevatorUp] at @s if block ~ ~-3 ~ air run kill @s\"}"},{id:command_block_minecart,Command:"setblock ~23 ~-2 ~0 chain_command_block[facing=east]{TrackOutput:0,auto:1,Command:\"execute as @e[tag=ElevatorUp] at @s if block ~ ~1 ~ air run kill @s\"}"},{id:command_block_minecart,Command:"setblock ~22 ~-2 ~0 chain_command_block[facing=east]{TrackOutput:0,auto:1,Command:\"execute as @e[tag=ElevatorUp] at @s if block ~ ~1 ~ air run fill ~-1 ~-3 ~ ~ ~-3 ~ air\"}"},{id:command_block_minecart,Command:"setblock ~21 ~-2 ~0 chain_command_block[facing=east]{TrackOutput:0,auto:1,Command:\"execute as @e[tag=ElevatorUp] at @s if block ~ ~1 ~ air run kill @e[type=item,nbt={Item:{id:\\\"minecraft:stone_button\\\"}},distance=..3]\"}"},{id:command_block_minecart,Command:"setblock ~20 ~-2 ~0 chain_command_block[facing=east]{TrackOutput:0,auto:1,Command:\"execute as @e[tag=ElevatorDown] at @s if block ~ ~5 ~ air run kill @s\"}"},{id:command_block_minecart,Command:"setblock ~19 ~-2 ~0 chain_command_block[facing=east]{TrackOutput:0,auto:1,Command:\"execute as @e[tag=ElevatorDown] at @s if block ~ ~1 ~ air run kill @s\"}"},{id:command_block_minecart,Command:"setblock ~18 ~-2 ~0 chain_command_block[facing=east]{TrackOutput:0,auto:1,Command:\"execute as @e[tag=ElevatorDown] at @s if block ~ ~1 ~ air run fill ~-1 ~5 ~ ~ ~5 ~ air\"}"},{id:command_block_minecart,Command:"setblock ~17 ~-2 ~0 chain_command_block[facing=east]{TrackOutput:0,auto:1,Command:\"execute as @e[tag=ElevatorDown] at @s if block ~ ~1 ~ air run kill @e[type=item,nbt={Item:{id:\\\"minecraft:stone_button\\\"}},distance=..3]\"}"},{id:command_block_minecart,Command:"setblock ~16 ~-2 ~0 chain_command_block[facing=east]{TrackOutput:0,auto:1,Command:\"execute at @e[tag=ElevatorUp] if block ~-1 ~1 ~ stone_button[powered=true] run setblock ~-1 ~1 ~ stone_button[facing=west,powered=false]\"}"},{id:command_block_minecart,Command:"setblock ~15 ~-2 ~0 chain_command_block[facing=east]{TrackOutput:0,auto:1,Command:\"execute at @e[tag=ElevatorUp] if block ~-1 ~1 ~ stone_button[powered=true] run tp @p ~-2 ~-4 ~\"}"},{id:command_block_minecart,Command:"setblock ~14 ~-2 ~0 chain_command_block[facing=east]{TrackOutput:0,auto:1,Command:\"execute at @e[tag=ElevatorDown] if block ~-1 ~1 ~ stone_button[powered=true] run setblock ~-1 ~1 ~ stone_button[facing=west,powered=false]\"}"},{id:command_block_minecart,Command:"setblock ~13 ~-2 ~0 chain_command_block[facing=east]{TrackOutput:0,auto:1,Command:\"execute at @e[tag=ElevatorDown] if block ~-1 ~1 ~ stone_button[powered=true] run tp @p ~-2 ~4 ~\"}"},{id:command_block_minecart,Command:"setblock ~12 ~-2 ~0 chain_command_block[facing=east]{TrackOutput:0,auto:1,Command:\"kill @e[name=Elevator]\"}"},{id:command_block_minecart,Command:"setblock ~11 ~-2 ~0 chain_command_block[facing=east]{TrackOutput:0,auto:1,Command:\"tp @e[name=Elevator] ~ -1 ~\"}"},{id:command_block_minecart,Command:"setblock ~10 ~-2 ~0 chain_command_block[facing=east]{TrackOutput:0,auto:1,Command:\"execute at @e[name=Elevator] run setblock ~ ~5 ~ minecraft:stone_button[facing=west]\"}"},{id:command_block_minecart,Command:"setblock ~9 ~-2 ~0 chain_command_block[facing=east]{TrackOutput:0,auto:1,Command:\"execute at @e[name=Elevator] run setblock ~ ~1 ~ minecraft:stone_button[facing=west]\"}"},{id:command_block_minecart,Command:"setblock ~8 ~-2 ~0 chain_command_block[facing=east]{TrackOutput:0,auto:1,Command:\"execute at @e[name=Elevator] run setblock ~1 ~5 ~ iron_block\"}"},{id:command_block_minecart,Command:"setblock ~7 ~-2 ~0 chain_command_block[facing=east]{TrackOutput:0,auto:1,Command:\"execute at @e[name=Elevator] run setblock ~1 ~1 ~ iron_block\"}"},{id:command_block_minecart,Command:"setblock ~6 ~-2 ~0 chain_command_block[facing=east]{TrackOutput:0,auto:1,Command:\"execute at @e[name=Elevator] run tag @e[type=armor_stand,distance=4..5] add ElevatorUp\"}"},{id:command_block_minecart,Command:"setblock ~5 ~-2 ~0 chain_command_block[facing=east]{TrackOutput:0,auto:1,Command:\"execute at @e[name=Elevator] run summon minecraft:armor_stand ~1 ~4 ~ {Invisible:1,NoGravity:1,Invulnerable:1}\"}"},{id:command_block_minecart,Command:"setblock ~4 ~-2 ~0 chain_command_block[facing=east]{TrackOutput:0,auto:1,Command:\"execute at @e[name=Elevator] run tag @e[type=armor_stand,distance=..1] add ElevatorDown\"}"},{id:command_block_minecart,Command:"setblock ~3 ~-2 ~0 repeating_command_block[facing=east]{TrackOutput:0,auto:1,Command:\"execute at @e[name=Elevator] run summon minecraft:armor_stand ~1 ~ ~ {Invisible:1,NoGravity:1,Invulnerable:1}\"}"},{id:command_block_minecart,Command:"setblock ~ ~ ~1 command_block{Command:\"fill ~ ~-3 ~-1 ~ ~ ~ air\"}"},{id:command_block_minecart,Command:"setblock ~ ~-1 ~1 redstone_block"},{id:command_block_minecart,Command:"kill @e[type=command_block_minecart,distance=..1]"}]}]}]}