Who can help me. How can I find out if someone is in a specific area without a testfor command?

ba
7

I'm trying to build a game in 1.15.2 Minecraft Vaniller. And for that I need to know if someone is in a certain area.

Be

Execute if entity @a [distance = .5]

Simply replace the 5 with the desired radius.

ba

Thank you for your answer, but you know what I have to do so that the command block outputs an output when a player enters the radius.

Be

Simply place a comparator on the repeating command block

ba

I did but when I was in the distance there was no redstone signal.

Be

Did you set the command block to always active and to repeating (blue). Did you place the comparator correctly? Is the command written in red in the command block?

ba

Yes, I have many thanks now.

Be

No problem