Uploaded June 2022 | Updated September 2026, 5 days ago
This week, we're making it easy to add custom portals to a Minecraft world with just 5 commands.
This video was more of a last minute idea I put together as I was setting up the demo area for (what will now be) next week's episode.
I'm planning on using these gateways in later episodes to create demo areas for each of the future five-block creations.
Here are the commands used in this video:
Command 1 - Place End Gateway:
execute as @e[type=item,nbt={Item:{id:"minecraft:compass"}}] at @s if data entity @s Item.tag.LodestonePos if block ~ ~-1 ~ minecraft:respawn_anchor if entity @e[type=item,nbt={Item:{id:"minecraft:ender_pearl",Count:16b}},distance=0..0.5] run setblock ~ ~-1 ~ minecraft:end_gateway{ExactTeleport:1b,Age:-9223372036854775808L}
Command 2 - Set Exit Coordinates:
execute as @e[type=item,nbt={Item:{id:"minecraft:compass"}}] at @s if data entity @s Item.tag.LodestonePos if block ~ ~-1 ~ minecraft:end_gateway if entity @e[type=item,nbt={Item:{id:"minecraft:ender_pearl",Count:16b}},distance=0..0.5] run data modify block ~ ~-1 ~ ExitPortal set from entity @s Item.tag.LodestonePos
Command 3 - Consume Ender Pearls:
execute as @e[type=item,nbt={Item:{id:"minecraft:compass"}}] at @s if data entity @s Item.tag.LodestonePos if block ~ ~-1 ~ minecraft:end_gateway run kill @e[type=item,nbt={Item:{id:"minecraft:ender_pearl",Count:16b}},distance=0..0.5,limit=1]
Command 4 - Destroy End Gateway
execute as @e[type=minecraft:falling_block,nbt={BlockState:{Name:"minecraft:anvil"}}] at @s if block ~ ~-1 ~ minecraft:end_gateway{ExactTeleport:1b} run setblock ~ ~-1 ~ air
Command 5 - Play Teleport Sound
execute as @a[nbt={PortalCooldown:9}] at @s unless block ~00 ~1 ~00 minecraft:nether_portal unless block ~-1 ~1 ~00 minecraft:nether_portal unless block ~01 ~1 ~00 minecraft:nether_portal unless block ~00 ~1 ~-1 minecraft:nether_portal unless block ~00 ~1 ~01 minecraft:nether_portal run playsound minecraft:entity.enderman.teleport player @a ~ ~ ~ 1 1 0
Chapters:
0:00 Preview
0:21 Overview and Demo
2:20 Command 1
4:34 Command 2
5:11 Command 3
5:55 Command 4
6:48 Command 5
8:24 Outro
This week, we're making it easy to add custom portals to a Minecraft world with just 5 commands.
This video was more of a last minute idea I put together as I was setting up the demo area for (what will now be) next week's episode.
I'm planning on using these gateways in later episodes to create demo areas for each of the future five-block creations.
Here are the commands used in this video:
Command 1 - Place End Gateway:
execute as @e[type=item,nbt={Item:{id:"minecraft:compass"}}] at @s if data entity @s Item.tag.LodestonePos if block ~ ~-1 ~ minecraft:respawn_anchor if entity @e[type=item,nbt={Item:{id:"minecraft:ender_pearl",Count:16b}},distance=0..0.5] run setblock ~ ~-1 ~ minecraft:end_gateway{ExactTeleport:1b,Age:-9223372036854775808L}
Command 2 - Set Exit Coordinates:
execute as @e[type=item,nbt={Item:{id:"minecraft:compass"}}] at @s if data entity @s Item.tag.LodestonePos if block ~ ~-1 ~ minecraft:end_gateway if entity @e[type=item,nbt={Item:{id:"minecraft:ender_pearl",Count:16b}},distance=0..0.5] run data modify block ~ ~-1 ~ ExitPortal set from entity @s Item.tag.LodestonePos
Command 3 - Consume Ender Pearls:
execute as @e[type=item,nbt={Item:{id:"minecraft:compass"}}] at @s if data entity @s Item.tag.LodestonePos if block ~ ~-1 ~ minecraft:end_gateway run kill @e[type=item,nbt={Item:{id:"minecraft:ender_pearl",Count:16b}},distance=0..0.5,limit=1]
Command 4 - Destroy End Gateway
execute as @e[type=minecraft:falling_block,nbt={BlockState:{Name:"minecraft:anvil"}}] at @s if block ~ ~-1 ~ minecraft:end_gateway{ExactTeleport:1b} run setblock ~ ~-1 ~ air
Command 5 - Play Teleport Sound
execute as @a[nbt={PortalCooldown:9}] at @s unless block ~00 ~1 ~00 minecraft:nether_portal unless block ~-1 ~1 ~00 minecraft:nether_portal unless block ~01 ~1 ~00 minecraft:nether_portal unless block ~00 ~1 ~-1 minecraft:nether_portal unless block ~00 ~1 ~01 minecraft:nether_portal run playsound minecraft:entity.enderman.teleport player @a ~ ~ ~ 1 1 0
Chapters:
0:00 Preview
0:21 Overview and Demo
2:20 Command 1
4:34 Command 2
5:11 Command 3
5:55 Command 4
6:48 Command 5
8:24 Outro




![Double Jump Enchantment in 5 Commands
Questions about this episode or want help on your own Minecraft creations? Join the Command Block Cove on Discord: https://discord.gg/Vr9vfP6EqH
This week, were adding a custom Double Jump enchantment for Elytra!
Trying something a bit different this week. Be on the look out for the regular, in depth explanation of the commands in a few days. In the meantime, heres a shorter, snappier overview of the creation.
Here are the commands used in this creation:
Command 1- Modify Elytra:
execute as @e[type=minecraft:item,nbt={Item:{tag:{BlockEntityTag:{Items:[{Slot:4b,id:minecraft:lapis_lazuli,Count:3b},{Slot:12b,tag:{Potion:minecraft:leaping},Count:1b},{Slot:13b,id:minecraft:elytra,Count:1b},{Slot:14b,tag:{Potion:minecraft:leaping},Count:1b},{Slot:22b,id:minecraft:experience_bottle,Count:48b}]}}}},nbt=!{Item:{tag:{BlockEntityTag:{Items:[{Slot:13b,tag:{DoubleJump:1b}}]}}}}] at @s if block ~ ~ ~ minecraft:enchanting_table store success entity @s Item.tag.BlockEntityTag.Items[{Slot:13b}].tag.DoubleJump byte 1 run data modify entity @s Item.tag.BlockEntityTag.Items[{Slot:13b}].tag.display.Lore append value {text:Double Jump,italic:false,color:gray}
Command 2 - Replace Shulker Chest with Elytra:
execute as @e[type=minecraft:item,nbt={Item:{tag:{BlockEntityTag:{Items:[{Slot:4b,id:minecraft:lapis_lazuli,Count:3b},{Slot:12b,tag:{Potion:minecraft:leaping},Count:1b},{Slot:13b,id:minecraft:elytra,Count:1b},{Slot:14b,tag:{Potion:minecraft:leaping},Count:1b},{Slot:22b,id:minecraft:experience_bottle,Count:48b}]}}}}] at @s if block ~ ~ ~ minecraft:enchanting_table store result entity @s Item.tag.Enchantments[{id:fbf:double_jump}].lvl short 1 run data modify entity @s Item set from entity @s Item.tag.BlockEntityTag.Items[{Slot:13b}]
Command 3 - Create Scoreboard:
scoreboard objectives add double_jump_tracker minecraft.custom:minecraft.jump
Command 4 - Add Levitation:
execute as @a[nbt={Inventory:[{Slot:102b,id:minecraft:elytra,tag:{DoubleJump:1b}}],FallFlying:1b},scores={double_jump_tracker=2..}] store result score @s double_jump_tracker run effect give @s minecraft:levitation 1 16 true
Command 5 - Remove Levitation:
effect clear @a[nbt={ActiveEffects:[{Id:25,Duration:16,Amplifier:16b}]}] minecraft:levitation
Chapters:
0:00 - Introduction
1:19 - Demo
2:40 - Command Overview
4:30 - Outro Double Jump Enchantment in 5 Commands](https://i.ytimg.com/vi/x87YrS_TCOQ/mqdefault.jpg)



