196: Track players and entities with a compass. [Minecraft Map Making]
Ep196: Tracking target entities using a compass.
Java Version: 1.19
Commands, builds and ideas for people making their own Minecraft maps.
Check out my collabs on Coppit's channel: https://www.youtube.com/c/CoppitJ
Join the CoppitCraft server that I play on and the Discord where I hang out.
Server IP: 51.81.246.145:25588
Discord: https://discord.gg/amU84KykEu
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.
Commands used:
Setup:
IUN: scoreboard objectives add timer dummy
Timer:
RUA: scoreboard players add #compass timer 1
CUA: execute if score #compass timer matches 100 run scoreboard players reset #compass timer
CCA: setblock -20 56 305 redstone_block replace
Controller:
IUN: clear @a[tag=hunter] compass{hunterCompass:true}
CUA: data modify storage target:data type.Pos set from entity @e[tag=mySpider,limit=1] Pos
CUA: data modify storage target:data type.LodestonePos.X set from storage target:data type.Pos[0]
CUA: data modify storage target:data type.LodestonePos.Y set from storage target:data type.Pos[1]
CUA: data modify storage target:data type.LodestonePos.Z set from storage target:data type.Pos[2]
CUA: execute at @a[tag=hunter] run summon item ~ ~ ~ {Tags:["myCompass"],Item:{id:"minecraft:compass",Count:1b,tag:{hunterCompass:true,LodestoneDimension:"minecraft:overworld",LodestoneTracked:false}}}
CUA: execute as @e[type=item,tag=myCompass] run data modify entity @s Item.tag.LodestonePos set from storage target:data type.LodestonePos
Other Videos By Infernal Device
Other Statistics
Minecraft Statistics For Infernal Device
At present, Infernal Device has 182,939 views spread across 869 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.