Portals
Portals by Iconic18104860    2
Makes portals in Minecraft. Not done yet planning on add custom model and sound effects. To make it work place a command block and put an activator rail on top of it then paste the command in after that run the command block.
Minecraft 1.16.4
11513 characters
More by Iconic
How to install
Comments
Show source commands
summon falling_block ~ ~1 ~ {BlockState:{Name:stone},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:"gamerule commandBlockOutput false"},{id:command_block_minecart,Command:"fill ~2 ~-3 ~-2 ~8 ~1 ~2 blue_terracotta hollow"},{id:command_block_minecart,Command:"fill ~2 ~-2 ~-2 ~8 ~ ~2 gray_stained_glass replace blue_terracotta"},{id:command_block_minecart,Command:"/give @a minecraft:bow"},{id:command_block_minecart,Command:"/give @a minecraft:tipped_arrow{CustomPotionColor:204}"},{id:command_block_minecart,Command:"/give @a minecraft:tipped_arrow{CustomPotionColor:16753920}"},{id:command_block_minecart,Command:"/give @p written_book{pages:['[\"\",{\"text\":\" \\\\u0020 \\\\u0020 Insturctions\",\"bold\":true,\"italic\":true,\"color\":\"dark_red\"},{\"text\":\"\\\\n\\\\u2550\\\\u2550\\\\u2550\\\\u2550\\\\u2550\\\\u2550\\\\u2550\\\\u2550\\\\u2550\\\\u2550\\\\u2550\\\\u2550\\\\n\\\\n\\\\nPortals only work on \",\"color\":\"reset\"},{\"text\":\"Quartz Blocks.\",\"bold\":true,\"italic\":true},{\"text\":\"\\\\n\\\\nTo switch arrow put on in your offhand.\",\"color\":\"reset\"}]'],title:Instructions,author:Iconic,display:{Lore:[\"Nice you have tooltips on cool\"]}}"},{id:command_block_minecart,Command:"fill ~3 ~-2 ~-1 ~7 ~ ~1 chain_command_block[facing=east]"},{id:command_block_minecart,Command:"fill ~4 ~ ~-1 ~5 ~ ~-1 repeating_command_block[facing=east]"},{id:command_block_minecart,Command:"setblock ~3 ~-1 ~-1 repeating_command_block[facing=up]"},{id:command_block_minecart,Command:"setblock ~4 ~-1 ~-1 chain_command_block[facing=west]"},{id:command_block_minecart,Command:"setblock ~5 ~-1 ~-1 repeating_command_block[facing=west]"},{id:command_block_minecart,Command:"setblock ~6 ~-1 ~-1 chain_command_block[facing=west]"},{id:command_block_minecart,Command:"setblock ~7 ~-1 ~-1 repeating_command_block[facing=west]"},{id:command_block_minecart,Command:"setblock ~7 ~-1 ~ chain_command_block[facing=north]"},{id:command_block_minecart,Command:"setblock ~6 ~-1 ~ repeating_command_block[facing=east]"},{id:command_block_minecart,Command:"setblock ~4 ~-1 ~ repeating_command_block[facing=east]"},{id:command_block_minecart,Command:"setblock ~3 ~-1 ~1 repeating_command_block[facing=north]"},{id:command_block_minecart,Command:"setblock ~4 ~-1 ~1 chain_command_block[facing=west]"},{id:command_block_minecart,Command:"setblock ~5 ~-1 ~1 repeating_command_block[facing=west]"},{id:command_block_minecart,Command:"setblock ~6 ~-1 ~1 chain_command_block[facing=west]"},{id:command_block_minecart,Command:"setblock ~7 ~-1 ~1 repeating_command_block[facing=west]"},{id:command_block_minecart,Command:"setblock ~7 ~-2 ~1 chain_command_block[facing=up]"},{id:command_block_minecart,Command:"setblock ~6 ~-2 ~1 repeating_command_block[facing=east]"},{id:command_block_minecart,Command:"fill ~3 ~-2 ~1 ~4 ~-2 ~1 repeating_command_block[facing=east]"},{id:command_block_minecart,Command:"setblock ~3 ~-2 ~ chain_command_block[facing=south]"},{id:command_block_minecart,Command:"fill ~6 ~-2 ~ ~4 ~-2 ~ repeating_command_block[facing=west]"},{id:command_block_minecart,Command:"setblock ~7 ~-2 ~ chain_command_block[facing=west]"},{id:command_block_minecart,Command:"setblock ~7 ~-2 ~-1 repeating_command_block[facing=south]"},{id:command_block_minecart,Command:"setblock ~5 ~-2 ~-1 repeating_command_block[facing=east]"},{id:command_block_minecart,Command:"setblock ~3 ~-2 ~-1 repeating_command_block[facing=east]"},{id:command_block_minecart,Command:"data merge block ~6 ~ ~-1 {auto:1,Command:\"/execute at @e[type=minecraft:command_block_minecart] run summon minecraft:lightning_bolt ~ ~ ~\"}"},{id:command_block_minecart,Command:"data merge block ~5 ~ ~-1 {auto:1,Command:\"execute if entity @e[type=arrow, nbt={Color:204}] run give @a minecraft:tipped_arrow{CustomPotionColor:204}\"}"},{id:command_block_minecart,Command:"data merge block ~4 ~ ~-1 {auto:1,Command:\"execute if entity @e[type=arrow, nbt={Color:16753920}] run give @a minecraft:tipped_arrow{CustomPotionColor:16753920}\"}"},{id:command_block_minecart,Command:"data merge block ~3 ~ ~-1 {auto:1,Command:\"execute at @e[type=arrow] if block ~1 ~ ~ minecraft:quartz_block run kill @e[type=arrow, nbt={Color:16753920}]\"}"},{id:command_block_minecart,Command:"data merge block ~3 ~-1 ~-1 {auto:1,Command:\"execute at @e[type=arrow, nbt={Color:16753920}] if block ~1 ~ ~ minecraft:quartz_block run summon minecraft:armor_stand ~ ~ ~ {CustomName:\\\"\\\\\\\"Portal2\\\\\\\"\\\", NoGravity:1b}\"}"},{id:command_block_minecart,Command:"data merge block ~4 ~-1 ~-1 {auto:1,Command:\"execute at @e[type=arrow] if block ~1 ~ ~ minecraft:quartz_block run kill @e[type=arrow, nbt={Color:204}]\"}"},{id:command_block_minecart,Command:"data merge block ~5 ~-1 ~-1 {auto:1,Command:\"execute at @e[type=arrow, nbt={Color:204}] if block ~1 ~ ~ minecraft:quartz_block run summon minecraft:armor_stand ~ ~ ~ {CustomName:\\\"\\\\\\\"Portal1\\\\\\\"\\\", NoGravity:1b}\"}"},{id:command_block_minecart,Command:"data merge block ~6 ~-1 ~-1 {auto:1,Command:\"execute at @e[type=arrow] if block ~ ~1 ~ minecraft:quartz_block run kill @e[type=arrow, nbt={Color:16753920}]\"}"},{id:command_block_minecart,Command:"data merge block ~7 ~-1 ~-1 {auto:1,Command:\"execute at @e[type=arrow, nbt={Color:16753920}] if block ~ ~1 ~ minecraft:quartz_block run summon minecraft:armor_stand ~ ~ ~ {CustomName:\\\"\\\\\\\"Portal2\\\\\\\"\\\", NoGravity:1b}\"}"},{id:command_block_minecart,Command:"data merge block ~7 ~-1 ~ {auto:1,Command:\"execute at @e[type=arrow] if block ~ ~ ~-1 minecraft:quartz_block run kill @e[type=arrow, nbt={Color:204}]\"}"},{id:command_block_minecart,Command:"data merge block ~6 ~-1 ~ {auto:1,Command:\"execute at @e[type=arrow, nbt={Color:204}] if block ~ ~1 ~ minecraft:quartz_block run summon minecraft:armor_stand ~ ~ ~ {CustomName:\\\"\\\\\\\"Portal1\\\\\\\"\\\", NoGravity:1b}\"}"},{id:command_block_minecart,Command:"data merge block ~5 ~-1 ~ {auto:1,Command:\"execute at @e[type=arrow] if block ~ ~ ~1 minecraft:quartz_block run kill @e[type=arrow, nbt={Color:16753920}]\"}"},{id:command_block_minecart,Command:"data merge block ~4 ~-1 ~ {auto:1,Command:\"execute at @e[type=arrow, nbt={Color:16753920}] if block ~ ~ ~1 minecraft:quartz_block run summon minecraft:armor_stand ~ ~ ~ {CustomName:\\\"\\\\\\\"Portal2\\\\\\\"\\\", NoGravity:1b}\"}"},{id:command_block_minecart,Command:"data merge block ~3 ~-1 ~ {auto:1,Command:\"execute at @e[type=arrow] if block ~ ~ ~1 minecraft:quartz_block run kill @e[type=arrow, nbt={Color:204}]\"}"},{id:command_block_minecart,Command:"data merge block ~3 ~-1 ~1 {auto:1,Command:\"execute at @e[type=arrow, nbt={Color:204}] if block ~ ~ ~1 minecraft:quartz_block run summon minecraft:armor_stand ~ ~ ~ {CustomName:\\\"\\\\\\\"Portal1\\\\\\\"\\\", NoGravity:1b}\"}"},{id:command_block_minecart,Command:"data merge block ~4 ~-1 ~1 {auto:1,Command:\"execute at @e[type=arrow] if block ~ ~-1 ~ minecraft:quartz_block run kill @e[type=arrow, nbt={Color:16753920}]\"}"},{id:command_block_minecart,Command:"data merge block ~5 ~-1 ~1 {auto:1,Command:\"execute at @e[type=arrow, nbt={Color:16753920}] if block ~ ~-1 ~ minecraft:quartz_block run summon minecraft:armor_stand ~ ~ ~ {CustomName:\\\"\\\\\\\"Portal2\\\\\\\"\\\", NoGravity:1b}\"}"},{id:command_block_minecart,Command:"data merge block ~6 ~-1 ~1 {auto:1,Command:\"execute at @e[type=arrow] if block ~ ~-1 ~ minecraft:quartz_block run kill @e[type=arrow, nbt={Color:204}]\"}"},{id:command_block_minecart,Command:"data merge block ~7 ~-1 ~1 {auto:1,Command:\"execute at @e[type=arrow, nbt={Color:204}] if block ~ ~-1 ~ minecraft:quartz_block run summon minecraft:armor_stand ~ ~ ~ {CustomName:\\\"\\\\\\\"Portal1\\\\\\\"\\\", NoGravity:1b}\"}"},{id:command_block_minecart,Command:"data merge block ~7 ~-2 ~1 {auto:1,Command:\"execute at @e[type=arrow] if block ~-1 ~ ~ minecraft:quartz_block run kill @e[type=arrow, nbt={Color:16753920}]\"}"},{id:command_block_minecart,Command:"data merge block ~6 ~-2 ~1 {auto:1,Command:\" execute at @e[type=arrow, nbt={Color:16753920}] if block ~-1 ~ ~ minecraft:quartz_block run summon minecraft:armor_stand ~ ~ ~ {CustomName:\\\"\\\\\\\"Portal2\\\\\\\"\\\", NoGravity:1b}\"}"},{id:command_block_minecart,Command:"data merge block ~5 ~-2 ~1 {auto:1,Command:\"execute at @e[type=arrow] if block ~-1 ~ ~ minecraft:quartz_block run kill @e[type=arrow, nbt={Color:204}]\"}"},{id:command_block_minecart,Command:"data merge block ~4 ~-2 ~1 {auto:1,Command:\"execute at @e[type=arrow, nbt={Color:204}] if block ~-1 ~ ~ minecraft:quartz_block run summon minecraft:armor_stand ~ ~ ~ {CustomName:\\\"\\\\\\\"Portal1\\\\\\\"\\\", NoGravity:1b}\"}"},{id:command_block_minecart,Command:"data merge block ~3 ~-2 ~1 {auto:1,Command:\"/execute as @a at @s if entity @e[type=minecraft:armor_stand,name=Portal2,distance=..0.3] run execute at @e[type=minecraft:armor_stand,name=Portal1] run tp @a ~ ~ ~1.1\"}"},{id:command_block_minecart,Command:"data merge block ~3 ~-2 ~ {auto:1,Command:\"execute at @e[type=arrow] if block ~ ~ ~-1 minecraft:quartz_block run kill @e[type=arrow, nbt={Color:16753920}]\"}"},{id:command_block_minecart,Command:"data merge block ~4 ~-2 ~ {auto:1,Command:\"execute at @e[type=arrow, nbt={Color:16753920}] if block ~ ~ ~-1 minecraft:quartz_block run summon minecraft:armor_stand ~ ~ ~ {CustomName:\\\"\\\\\\\"Portal2\\\\\\\"\\\", NoGravity:1b}\"}"},{id:command_block_minecart,Command:"data merge block ~5 ~-2 ~ {auto:1,Command:\"execute at @e[type=arrow, nbt={Color:16753920}] if block ~ ~ ~-1 minecraft:quartz_block run summon minecraft:armor_stand ~ ~ ~ {CustomName:\\\"\\\\\\\"Portal2\\\\\\\"\\\", NoGravity:1b}\"}"},{id:command_block_minecart,Command:"data merge block ~6 ~-2 ~ {auto:1,Command:\"/execute as @a at @s if entity @e[type=minecraft:armor_stand,name=Portal1,distance=..0.3] run execute at @e[type=minecraft:armor_stand,name=Portal2] run tp @a ~ ~ ~1.1\"}"},{id:command_block_minecart,Command:"data merge block ~7 ~-2 ~ {auto:1,Command:\"execute at @e[type=arrow] if block ~ ~ ~-1 minecraft:quartz_block run kill @e[type=arrow, nbt={Color:204}]\"}"},{id:command_block_minecart,Command:"data merge block ~7 ~-2 ~-1 {auto:1,Command:\"execute at @e[type=arrow, nbt={Color:204}] if block ~ ~ ~-1 minecraft:quartz_block run summon minecraft:armor_stand ~ ~ ~ {CustomName:\\\"\\\\\\\"Portal1\\\\\\\"\\\", NoGravity:1b}\"}"},{id:command_block_minecart,Command:"data merge block ~6 ~-2 ~-1 {auto:1,Command:\"execute if score armorstands Portal1 matches 2.. run kill @e[type=minecraft:armor_stand, name=Portal1]\"}"},{id:command_block_minecart,Command:"data merge block ~5 ~-2 ~-1 {auto:1,Command:\"/execute store result score armorstands Portal1 if entity @e[type=minecraft:armor_stand,name=Portal1]\"}"},{id:command_block_minecart,Command:"data merge block ~4 ~-2 ~-1 {auto:1,Command:\"execute if score armorstands Portal2 matches 2.. run kill @e[type=minecraft:armor_stand, name=Portal2]\"}"},{id:command_block_minecart,Command:"data merge block ~3 ~-2 ~-1 {auto:1,Command:\"execute store result score armorstands Portal2 if entity @e[type=minecraft:armor_stand,name=Portal2]\"}"},{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]"}]}]}]}