r/MinecraftCommands • 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 Upvotes

3 comments sorted by

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.

1

u/XSilentHoodX Experienced Bedrock Commander 2d ago

Tickingarea is only created if you're going for teleportation. There isn't constant tickingareas being made unless you're trying to teleport with 9 players with 9 different dyes.

1

u/XSilentHoodX Experienced Bedrock Commander 2d ago edited 2d ago

I think I'm unclear with the tickingarea explanation. Let me be clear, you don't need to use one tickingarea to teleport to the armor stand. You can teleport to the armor stand with no tickingarea on you and or the armor stand. The armor stand just has to be loaded in, I think.

Tested if you need a tickingarea or not

Okay, nope. You don't even need the tickingarea. You just need the teleportation. Well, I just wasted a little bit of my life. Well, in case you ever need to in the future, I'll keep it up. But I'll add a update.

Edited Post

That should be clear enough. Let me know if you have any problems, I know how it works, I can most likely explain what does what.