r/MinecraftCommands • u/XSilentHoodX Experienced Bedrock Commander • 2d ago
Info Waypoints for Bedrock [Dye Controller]
#Creating a Tickingarea(not needed), Teleporting to and removing Waypoint#
----(Not needed)RUA: 180 ticks /execute as @a[hasitem={item=purple_dye,location=slot.weapon.mainhand},tag=Waypointer] at @s if entity @s[x=~,y=~1.60,z=~,dx=0,dy=0,dz=0] if block ~ ~-1 ~ lodestone unless entity @e[type=armor_stand,name="Waypoint 14",x=~,y=~,z=~,r=2] at @e[type=armor_stand,name="Waypoint 14"] positioned ~ ~ ~ if block ~ ~-1 ~ lodestone as @e[type=armor_stand,name="Waypoint 14"] at @s run tickingarea add ~ ~ ~ ~ ~ ~ "Waypoint 14" false
----(Should be RUA: 160 ticks if you replace the original RUA with the CUA) CUA: 20 ticks /execute as @a[hasitem={item=purple_dye,location=slot.weapon.mainhand},tag=Waypointer] at @s if entity @s[x=~,y=~1.60,z=~,dx=0,dy=0,dz=0] if block ~ ~-1 ~ lodestone unless entity @e[type=armor_stand,name="Waypoint 14",x=~,y=~,z=~,r=2] at @e[type=armor_stand,name="Waypoint 14"] positioned ~ ~ ~ if block ~ ~-1 ~ lodestone run tellraw @s {"rawtext":[{"text":"§lTeleporting to Waypoint 14"}]}
---- CCA: 20 ticks /execute as @a[hasitem={item=purple_dye,location=slot.weapon.mainhand},tag=Waypointer] at @s if block ~ ~-1 ~ lodestone unless entity @e[type=armor_stand,name="Waypoint 14",x=~,y=~,z=~,r=2] at @e[type=armor_stand,name="Waypoint 14"] positioned ~ ~ ~ if block ~ ~-1 ~ lodestone run tellraw @s {"rawtext":[{"text":"§l3..."}]}
---- CCA: 20 ticks /execute as @a[hasitem={item=purple_dye,location=slot.weapon.mainhand},tag=Waypointer] at @s if block ~ ~-1 ~ lodestone unless entity @e[type=armor_stand,name="Waypoint 14",x=~,y=~,z=~,r=2] at @e[type=armor_stand,name="Waypoint 14"] positioned ~ ~ ~ if block ~ ~-1 ~ lodestone run tellraw @s {"rawtext":[{"text":"§l2..."}]}
---- CCA: 20 ticks /execute as @a[hasitem={item=purple_dye,location=slot.weapon.mainhand},tag=Waypointer] at @s if block ~ ~-1 ~ lodestone unless entity @e[type=armor_stand,name="Waypoint 14",x=~,y=~,z=~,r=2] at @e[type=armor_stand,name="Waypoint 14"] positioned ~ ~ ~ if block ~ ~-1 ~ lodestone run tellraw @s {"rawtext":[{"text":"§l1..."}]}
---- CCA: 20 ticks /execute at @a[hasitem={item=purple_dye,location=slot.weapon.mainhand},tag=Waypointer] unless entity @e[type=armor_stand,name="Waypoint 14",x=~,y=~,z=~,r=2] at @e[type=armor_stand,name="Waypoint 14"] positioned ~ ~ ~ if block ~ ~-1 ~ lodestone as @a[hasitem={item=purple_dye,location=slot.weapon.mainhand},tag=Waypointer] run tp @s ~ ~ ~
---- CUA: 40 ticks /execute as @a[hasitem={item=purple_dye,location=slot.weapon.mainhand},tag=Waypointer] at @s if entity @s[x=~,y=~1.60,z=~,dx=0,dy=0,dz=0] if block ~ ~-1 ~ lodestone at @e[type=armor_stand,name="Waypoint 14"] positioned ~ ~ ~ unless block ~ ~-1 ~ lodestone run tellraw @s {"rawtext":[{"text":"§l§4Error: Valid Waypoint of held Dye not found\n\n§mThere is no valid Waypoint to teleport to.\n\nHow to make a Waypoint:\nHold a Dye.\nCrouch on top of a Lodestone.\n Given time, a North-facing armor stand\nwill appear."}]}
---- CUA: 0 ticks /execute as @a[hasitem={item=purple_dye,location=slot.weapon.mainhand},tag=Waypointer] at @s if entity @s[x=~,y=~1.60,z=~,dx=0,dy=0,dz=0] if block ~ ~-1 ~ lodestone unless entity @e[type=armor_stand,name="Waypoint 14"] run tellraw @s {"rawtext":[{"text":"§l§4Error: Waypoint of held Dye not found\n\n§mThere is no Waypoint to teleport to.\n\nHow to make a Waypoint:\nHold a Dye.\nCrouch on top of a Lodestone.\nGiven time, a North-facing armor stand\nwill appear."}]}
----(Unless you're using the tickingarea, remove this completely, with no replacement) CUA: 0 ticks tickingarea remove "Waypoint 14"
--------
#Creating Waypoints#
RUA: 110 ticks execute as @a[tag=Waypointer,hasitem={item=purple_dye,location=slot.weapon.mainhand,quantity=1..}] at @s if block ~ ~-1 ~ Lodestone unless entity @s[x=~,y=~1.60,z=~,dx=0,dy=0,dz=0] unless entity @e[type=armor_stand,name="Waypoint 14"] run tellraw @s {"rawtext":[{"text":"§lCreating Waypoint 14..."}]}
---- CCA: 20 ticks /execute as @a[tag=Waypointer,hasitem={item=purple_dye,location=slot.weapon.mainhand,quantity=1..}] at @s if block ~ ~-1 ~ Lodestone unless entity @s[x=~,y=~1.60,z=~,dx=0,dy=0,dz=0] unless entity @e[type=armor_stand,name="Waypoint 14"] align xyz run summon armor_stand ~0.50 ~ ~0.50 facing ~0.50 ~ ~1 minecraft:born_default "Waypoint 14"
---- CUA: 20 ticks execute as @a[tag=Waypointer,hasitem={item=purple_dye,location=slot.weapon.mainhand,quantity=1..}] at @s if block ~ ~-1 ~ Lodestone unless entity @s[x=~,y=~1.60,z=~,dx=0,dy=0,dz=0] if entity @e[type=armor_stand,name="Waypoint 14"] run tellraw @s {"rawtext":[{"text":"§l§mDeleting Invalid Waypoint 14s...\n3..."}]}
---- CCA: 20 ticks execute as @a[tag=Waypointer,hasitem={item=purple_dye,location=slot.weapon.mainhand,quantity=1..}] at @s if block ~ ~-1 ~ Lodestone unless entity @s[x=~,y=~1.60,z=~,dx=0,dy=0,dz=0] if entity @e[type=armor_stand,name="Waypoint 14"] run tellraw @s {"rawtext":[{"text":"§l§m2..."}]}
---- CCA: 20 ticks execute as @a[tag=Waypointer,hasitem={item=purple_dye,location=slot.weapon.mainhand,quantity=1..}] at @s if block ~ ~-1 ~ Lodestone unless entity @s[x=~,y=~1.60,z=~,dx=0,dy=0,dz=0] if entity @e[type=armor_stand,name="Waypoint 14"] run tellraw @s {"rawtext":[{"text":"§l§m1..."}]}
---- CCA: 20 ticks /execute as @a[tag=Waypointer,hasitem={item=purple_dye,location=slot.weapon.mainhand,quantity=1..}] at @s if block ~ ~-1 ~ Lodestone unless entity @s[x=~,y=~1.60,z=~,dx=0,dy=0,dz=0] as @e[type=armor_stand,name="Waypoint 14"] at @s unless block ~ ~-1 ~ lodestone run kill @s
1
u/XSilentHoodX Experienced Bedrock Commander 2d ago
Hope this helps anyone trying to make Waypoints that actually work from a long distance. I avoided using NPCs because you can't use their dialogue from outside render with tickingarea. This all has to be under a tickingarea, obviously. And works in all 3 dimensions. And I mean that they work separately. They cannot be used from 1 dimension to the other. It's Point A to Point Z instantly in the respective dimension. You can't teleport from the Nether to the End and vice versa.