0

I can't put /testfor because I'm in 1.17.1, and I try my best to use /execute.

execute if entity @p in minecraft:overworld positioned ~ ~2 ~ run title @p title "Welcome to the Lab!"

When I use this command, it will shove the "Welcome to the Lab!" title in my face, even if I'm not in that position.

How can I do the equivalent of /testfor in 1.17.1?

1