How come some testfor commands don't return anything? [duplicate]

How come some testfor commands don't return anything? [duplicate] - April Calendar

If I run this command which looks for a player at specific coordinates, I don't get any output.

testfor @a[X,Y,Z,r=1]

(X, Y, and Z are certain coordinates in my world.) This is quite important, because if I don't have a output, comparators can't tell if the command found any players.

Please Help, I'm not that good with command blocks.






Pictures about "How come some testfor commands don't return anything? [duplicate]"

How come some testfor commands don't return anything? [duplicate] - Tax Documents on the Table
How come some testfor commands don't return anything? [duplicate] - Tax Documents on Black Table
How come some testfor commands don't return anything? [duplicate] - Tax Return Form and 2021 Planner on Pink Surface



What happened to Testfor Minecraft?

The /testfor command became obsolete in Minecraft 1.13, and has been replaced by the /execute command*. It will do the same as typing /testfor @e {SelectedItem:{id:"<item>"}} and then putting a comparator to the command block with the command, and then running the command which you wanna run.

What does the Testfor command do?

You can test for a certain target in the game using the /testfor command in Minecraft. TIP: Starting in Minecraft Java Edition (PC/Mac) 1.13, the /testfor command was removed from the Java Edition version of the game. Let's explore how to use this cheat (game command).

How do you get a command block to repeat mobs to spawn?

To get a repeating command block, players must use the /give command like so: /give @p minecraft:repeating_command_block <amount> . Players can also change a normal command block into a repeating command block by selecting the option in the command block GUI.



Minecraft Redstone Tutorial | How to use testfor commands in MCPE!




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Nataliya Vaitkevich, Nataliya Vaitkevich, Nataliya Vaitkevich, Nataliya Vaitkevich