<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.sasgaming.net/index.php?action=history&amp;feed=atom&amp;title=Minecraft%3ACommands%2Fdetect</id>
	<title>Minecraft:Commands/detect - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sasgaming.net/index.php?action=history&amp;feed=atom&amp;title=Minecraft%3ACommands%2Fdetect"/>
	<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Minecraft:Commands/detect&amp;action=history"/>
	<updated>2026-04-09T14:01:31Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.sasgaming.net/index.php?title=Minecraft:Commands/detect&amp;diff=49613&amp;oldid=prev</id>
		<title>imported&gt;Nixinova: distinguish</title>
		<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Minecraft:Commands/detect&amp;diff=49613&amp;oldid=prev"/>
		<updated>2025-11-16T07:46:02Z</updated>

		<summary type="html">&lt;p&gt;distinguish&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{hatnote|Not to be confused with the &amp;lt;code&amp;gt;detect&amp;lt;/code&amp;gt; sub-command of the [[Minecraft:Commands/execute (old)|former &amp;lt;code&amp;gt;/execute&amp;lt;/code&amp;gt; command]].}}&lt;br /&gt;
{{Outdated}}&lt;br /&gt;
{{exclusive|bedrock|education}}&lt;br /&gt;
{{Infobox command&lt;br /&gt;
|name=detect&lt;br /&gt;
|hidden=1&lt;br /&gt;
|oplevel=0&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Lets your [[Minecraft:agent]] detect if there is a collidable block in the specified direction.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;code&amp;gt;detect &amp;lt;direction: string&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;direction: string&amp;lt;/code&amp;gt;&lt;br /&gt;
: Specifies the direction of Agent to detect a collidable block.&lt;br /&gt;
: Must be one of:&lt;br /&gt;
:* &amp;lt;code&amp;gt;forward&amp;lt;/code&amp;gt; to detect the block on the front.&lt;br /&gt;
:* &amp;lt;code&amp;gt;back&amp;lt;/code&amp;gt; to detect the block on the back.&lt;br /&gt;
:* &amp;lt;code&amp;gt;left&amp;lt;/code&amp;gt; to detect the block on the left-hand side.&lt;br /&gt;
:* &amp;lt;code&amp;gt;right&amp;lt;/code&amp;gt; to detect the block on the right-hand side.&lt;br /&gt;
:* &amp;lt;code&amp;gt;up&amp;lt;/code&amp;gt; to detect the block on the top side.&lt;br /&gt;
:* &amp;lt;code&amp;gt;down&amp;lt;/code&amp;gt; to detect the block on the bottom side.&lt;br /&gt;
&lt;br /&gt;
==Result==&lt;br /&gt;
&lt;br /&gt;
Fails if the arguments are not specified correctly.&lt;br /&gt;
&lt;br /&gt;
On success, returns if there was a collidable block in the specified direction.&lt;br /&gt;
&lt;br /&gt;
== History ==&lt;br /&gt;
{{HistoryTable&lt;br /&gt;
|{{HistoryLine|education}}&lt;br /&gt;
|{{HistoryLine||?|Added {{cd|/detect}}.}}&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Navigation ==&lt;br /&gt;
{{Navbox commands}}&lt;br /&gt;
&lt;br /&gt;
[[Minecraft:de:Befehl/detect]]&lt;br /&gt;
[[Minecraft:lzh:令/detect]]&lt;br /&gt;
[[Minecraft:pt:Comandos/detect]]&lt;br /&gt;
[[Minecraft:ru:Команды консоли/detect]]&lt;br /&gt;
[[Minecraft:zh:命令/detect]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Nixinova</name></author>
	</entry>
</feed>