Tellraw and execute command 1.15.2?

Cl
8

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

gl

When the player is on which block? If you say so, I will help.

Be

The command should go like this

/ execute as @a [x =, y =, z =] at @s run tellraw @s {}

Cl

On a dirt block in the case

Cl

Thank you I will try it right away 👍👍

gl

/ 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.

Cl

Thank you for your help

Cl

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?

Be

/ 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.