318: Entity that follows another entity. [Minecraft Map Making]

Subscribers:
3,590
Published on ● Video Link: https://www.youtube.com/watch?v=N9IyqUGLMa8



Minecraft
Game:
Minecraft (2011)
Duration: 9:54
838 views
17


Ep318: Giving an entity it's own follower. In this video I use an armour stand that follows a husk as an example.

Check the pinned comment from GalSergey for another way to do this using the teleport command instead of copying the Pos which would be better for performance. :)
There is now a video using the tp command to do this:    • 326: Alternate: Entity following enti...  


Version: 1.19.4

Request by: _beanoboy_shaq3631

Commands, builds and ideas for people making their own Minecraft maps.

Check out my collabs on Coppit's channel:    / coppitj  

Join the CoppitCraft server that I play on and the Discord where I hang out.
Server IP: 51.81.246.145:25588
Discord:   / discord  

The following commands are prefixed with three letters which represent the settings of the command block. E.g IUN: = Impulse Unconditional Needs_Redstone. These prefixes need to be removed if copying the commands.

Since angled brackets are not allowed in YouTube descriptions you will have to replace "greater than" with the appropriate angled bracket. Ascii code: 62

Commands used:

Setup:
IUN: scoreboard objectives add husk.id dummy
CUA: scoreboard objectives add follower dummy

Controller:
RUA: execute as @e[type=husk] unless score @s husk.id = @s husk.id store result score @s husk.id run scoreboard players add #id_holder husk.id 1
CCA: execute as @e[type=husk] at @s unless entity @e[type=armor_stand, scores={follower=1}, distance=..0.1] summon armor_stand store success score @s follower run scoreboard players operation @s husk.id = @e[type=husk, distance=...1,limit=1] husk.id
CUA: execute as @e[type=armor_stand,scores={follower=1}] positioned as @e[type=husk] if score @s husk.id = @e[type=husk, distance=...1, limit=1] husk.id run data modify entity @s Pos set from entity @e[type=husk, distance=...1,limit=1] Pos
CUA: execute as @e[type=armor_stand, scores={follower=1}] at @s unless entity @e[type=husk, distance=..0.1] run kill @s




Other Videos By Infernal Device


2024-05-23326: Alternate: Entity following entity. [Minecraft Map Making]
2024-05-23CoppitCraft Castle 049: Cannons and crenellations.
2024-05-23328: Command that has a random chance to run using a Predicate. [Minecraft Map Making]
2024-05-23325: Two quick tips for faster building. [Minecraft Map Making]
2024-05-22324: Will o the wisp that leads players to a POI. [Minecraft Map Making]
2024-05-21323: Playing with particles. [Minecraft Map Making]
2024-05-20322: Is the player sneaking and similar predicates: No datapack needed. [Minecraft Map Making]
2024-05-19321: Eat any item and right-click detection. [Minecraft Map Making]
2024-05-17320: More items means better buffs. [Minecraft Map Making]
2024-05-17319: Villager processing. Bones in, villagers out. [Minecraft Map Making]
2024-05-16318: Entity that follows another entity. [Minecraft Map Making]
2024-05-15317: Grow crops faster with a sprinkler. [Minecraft Map Making]
2024-05-15CoppitCraft Castle 048: Castle roof... Well, it's on top of the castle.
2024-05-14316: First attempt at a Wandering Beekeeper. [Minecraft Map Making]
2024-05-13315: Experiments with accelerated crop growth. [Minecraft Map Making]
2024-05-12314: Floo powder from Harry Potter. [Minecraft Map Making]
2024-05-09312: Infinite or reusable ender pearl. [Minecraft Map Making]
2024-05-09313: Teleport friends with ender pearls. [Minecraft Map Making]
2024-05-09311: Controlling a wandering trader. [Minecraft Map Making]
2024-05-01300: Playing fetch with a fox. Experiment. [Minecraft Map Making]
2024-04-30299: Jetpack on a stick. [Minecraft Map Making]



Tags:
minecraft
adventure map
map making
commands
command blocks
1.18
custom commands
redstone
map ideas
map suggesstions
custom maps
1.19



Other Statistics

Minecraft Statistics For Infernal Device

At present, Infernal Device has 181,722 views spread across 860 videos for Minecraft, accounting for over 10 days of watchable video on his channel. This is 94.82% of the total watchable video for Minecraft on Infernal Device's YouTube channel.