Command Block Tutorial #154: Allay Teleportation Commands in Minecraft (1.19+)

Subscribers:
8,160
Published on ● Video Link: https://www.youtube.com/watch?v=P_f_LYPkLbQ



Minecraft
Game:
Minecraft (2011)
Category:
Tutorial
Duration: 9:47
605 views
13


In this video I will show how you can give the new mob Allays the ability to teleport to you if you end up too far away from them.

Commands:

* To get the Allay Summoning Bottle (x2) (Impulse Command Block):
/give @p minecraft:experience_bottle{Enchantments:[{id:infinity,lvl:1,}],display:{Name:"{\"text\":\"Allay Summoning Bottle\"}"}} 2

* To add or remove the Allay team:

1. Impulse Command Block: /team add Allay

2. Impulse Command Block: /team remove Allay

* To activate the Allay Summoning Bottle:

1. Repeater Command Block: /execute if entity @a[nbt={SelectedItem:{id:"minecraft:experience_bottle",tag:{display:{Name:'{"text":"Allay Summoning Bottle"}'}}}}] run execute as @e[type=minecraft:experience_bottle] at @s run summon minecraft:area_effect_cloud ~ ~ ~ {Duration:2s,Tags:["Allay_TP"]}

2. Repeater Command Block: /execute if entity @a[nbt={SelectedItem:{id:"minecraft:experience_bottle",tag:{display:{Name:'{"text":"Allay Summoning Bottle"}'}}}}] run execute as @e[type=minecraft:area_effect_cloud,tag=Allay_TP] at @s unless entity @e[type=minecraft:experience_bottle,distance=..3] run tp @e[team=Allay] RedstoneKnightX

3. Repeater Command Block: /execute if entity @a[nbt={SelectedItem:{id:"minecraft:experience_bottle",tag:{display:{Name:'{"text":"Allay Summoning Bottle"}'}}}}] run execute as @e[type=minecraft:area_effect_cloud,tag=Allay_TP] at @s unless entity @e[type=minecraft:experience_bottle,distance=..3] run give @p minecraft:experience_bottle{Enchantments:[{id:infinity,lvl:1,}],display:{Name:"{\"text\":\"Allay Summoning Bottle\"}"}} 1

* To activate the Allay Teleportation:

1. Repeater Command Block (Always Active): /execute if entity @e[type=minecraft:allay,nbt={HandItems:[{id:"minecraft:diamond"}]}]
------------------------------------
Redstone Comparator
------------------------------------

2. Repeater Command Block: /team join Allay @e[type=minecraft:allay,nbt={HandItems:[{id:"minecraft:diamond"}]}]

* To Deactivate the Allay Teleportation:

1. Repeater Command Block (Always Active): /execute if entity @e[type=minecraft:allay,nbt={HandItems:[{id:"minecraft:fermented_spider_eye"}]}]
------------------------------------
Redstone Comparator
------------------------------------

2. Repeater Command Block: /team leave @e[type=minecraft:allay,nbt={HandItems:[{id:"minecraft:fermented_spider_eye"}]}]

Music:

1. Gaming Sound FX:

* Monkeys Spinning Monkeys (Kevin MacLeod) - Gaming Background Music (HD):
https://www.youtube.com/watch?v=pr42a...




Other Videos By RedstoneKnightX


2022-10-16Command Block Tutorial #164: Flying Boat Commands in Minecraft (1.19+)
2022-10-09Command Block Tutorial #163: Potion Bed Commands in Minecraft (1.19+)
2022-10-02Command Block Tutorial #162: Item Gravity/Gravity Gun Commands in Minecraft (1.19+)
2022-09-25Command Block Tutorial #161: Vibration Proof Boots Commands in Minecraft (1.19+)
2022-09-18Command Block Tutorial #160: Potion Milk Commands in Minecraft (1.19+)
2022-09-11Command Block Tutorial #159: Time Manipulation Commands in Minecraft (1.19+)
2022-09-04Command Block Tutorial #158: Mob Freeze Ray Commands in Minecraft (1.19+)
2022-08-28Command Block Tutorial #157: 3x3 Hoe Commands in Minecraft (1.19+)
2022-08-21Command Block Tutorial #156: Deadly Sculk Commands in Minecraft (1.19+)
2022-08-14Command Block Tutorial #155: Special Recovery Compass Commands in Minecraft (1.19+)
2022-08-07Command Block Tutorial #154: Allay Teleportation Commands in Minecraft (1.19+)
2022-07-31Command Block Tutorial #153: Tree Chopper Commands in Minecraft (1.19+)
2022-07-24Command Block Tutorial #152: Sculk Armor & Weapon Commands in Minecraft (1.19+)
2022-07-17Command Block Tutorial #151: Warden Disguise Commands in Minecraft (1.19+)
2022-07-10Command Block Tutorial #150: Fire Bomb Commands in Minecraft (1.19+)
2022-07-03Command Block Tutorial #149: Sticky Mud Commands in Minecraft (1.19+)
2022-06-26Command Block Tutorial #148: Frog Power Commands in Minecraft (1.19+)
2022-06-19Mod Showcase #43: Pirates and Looters Mod (Minecraft 1.16.5)
2022-06-12Mod Showcase #42: Elementary Staffs Mod (New Update)(Minecraft 1.16.5)
2022-06-12Minecraft 1.19 Showcase: The Wild Update
2022-06-05Mod Showcase #41: Upgraded Netherite Mod (Minecraft 1.16.5)



Tags:
Minecraft
Gaming
GamePlay
Tutorials



Other Statistics

Minecraft Statistics For RedstoneKnightX

RedstoneKnightX presently has 1,527,317 views for Minecraft across 384 videos, with His channel uploaded over 2 days worth of Minecraft videos. This is 85.45% of the total watchable video on RedstoneKnightX's YouTube channel.