I'm currently building a minecraft adventure map in version 1.15.2.
My goal was that the player goes to a certain block, an execute command is activated and a text appears with a tellraw command.
I did everything as it is always prescribed.
Something like this: "Execute if entity @a [x =…, y =…, z =…] run tellraw…"
Can someone help me there?
Big thanks in advance
When the player is on which block? If you say so, I will help.
The command should go like this
/ execute as @a [x =, y =, z =] at @s run tellraw @s {}
On a dirt block in the case
Thank you I will try it right away 👍👍
/ execute as @a if block ~ ~ -1 ~ dirt run tellraw…
This is drawn with every dirt block.
What Wollfe2 wrote is fine, but then the player has to be ultra-precise on the coordinate you enter, so I don't recommend that. Try my solution. Maybe it won't work after all… But I think it works.
Thank you for your help
Thanks the thing is, I just want to do it so that you don't need a pressure plate to power it. Do you have a solution?
/ execute positioned ~ ~ 2 ~ as @a [distance = .1] run tellraw @s {}
Simply place this command in a repeating command block a block below the location where you were previously the pressure plate
Sorry for the late reply.