Thread:Davidgumazon/@comment-33201952-20181109221733/@comment-33201952-20181111155552

/testfor @e[mob=ENTITY,r=20] this command would look for all ENTITY within a range of 20 blocks.

/testfor @e[mob=!ENTITY,r=20] this command checks if no ENTITY within a range of 20 blocks.