TransWikia.com

How to execute a command when a player is at a specific coordinate? (1.14+)

Arqade Asked by pwnda on August 8, 2021

How do i execute a command whenever a player is at a specific coordinate in 1.14+ Minecraft commands?

Im trying to execute a tellraw when they are at a specific coordinate

I tried doing this in a repeating/always active/unconditional command block

execute if entity @p positioned x y z

then i would put a comparator for power to the impulse/need redstone/unconditional command block with the command

tellraw @p "Example"

but nothing would happen.

I tried putting the tellraw with the execute command block but it would just repeat the tellraw, or making the command block not on repeat does nothing.

One Answer

execute if entity @p[x=87,y=77,z=20,dx=0,dy=0,dz=0] run tellraw @p "Example"

This will run if the player is in the 87, 77, 20 block.

Correct answer by sourrabbit on August 8, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP