I saw this answer to a Minecraft Java edition question:
You can use
testForBlockcommand to search where the command block is placed (well, this command was then removed in Minecraft Java 1.13).
The syntax of the above commands:
/testForBlock <position: x y z> <tileName: Block> [dataValue: int]
Or you could use
gamerulecommand to disable command blocks in the map completely.
/gamerule commandBlocksEnabled false
To which the question asker replied with a comment saying:
I don't know where the command block is and I don't play on bedrock
As a person who has only primarily played vanilla Minecraft Java Edition, (well I played a good amount of Minecraft when it was on Xbox 360/One before it was replaced with Bedrock edition), and as a player who seldom used commands in any fashion, I for one cannot tell how the answer quoted above is specific to the Bedrock Edition of the game (as the comment from the OPer would suggest).
I've seen this happen a good amount - someone posts an answer valid to X version of the game when the question was about Y version and the answer isn't valid (i.e. a user asks a question about Java edition, but someone gives an answer that would only work in Bedrock). This often clouds my ability to be able to improve posts, recommend/vote on deletions, etc. if I can't tell if the post in question is valid for the edition of Minecraft.
What are some give aways that could denote if an answer to a Minecraft question is specific to that version of the game? Some things I thought of that could be give aways:
- Certain commands only found in certain versions of the game (as someone else commented later).
- Certain features only available in certain versions of the game.
- Certain content only available in certain versions of the game.
But what commands/features/content are specific to which versions?