Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Commands/detect: Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Remove broken links to missing pages
SyncBot (talk | contribs)
Fix template calls: add MC/ prefix
 
Line 1: Line 1:
{{hatnote|Not to be confused with the <code>detect</code> sub-command of the [[Minecraft:Commands/execute (old)|former <code>/execute</code> command]].}}
{{MC/Hatnote|Not to be confused with the <code>detect</code> sub-command of the [[Minecraft:Commands/execute (old)|former <code>/execute</code> command]].}}
{{Outdated}}
{{Outdated}}
{{exclusive|bedrock|education}}
{{MC/Exclusive|bedrock|education}}
{{Infobox command
{{Infobox command
|name=detect
|name=detect
Line 34: Line 34:
== History ==
== History ==
{{HistoryTable
{{HistoryTable
|{{HistoryLine|education}}
|{{MC/HistoryLine|education}}
|{{HistoryLine||?|Added {{cd|/detect}}.}}
|{{HistoryLine||?|Added {{MC/Cd|/detect}}.}}


}}
}}


== Navigation ==
== Navigation ==
{{Navbox commands}}
{{MC/Navbox commands}}


de:Befehl/detect
de:Befehl/detect

Latest revision as of 20:09, 9 April 2026

Not to be confused with the detect sub-command of the former /execute command.

Template:Outdated Script error: No such module "Exclusive". Template:Infobox command

Lets your Minecraft:agent detect if there is a collidable block in the specified direction.

Syntax

detect <direction: string>

Arguments

direction: string

Specifies the direction of Agent to detect a collidable block.
Must be one of:
  • forward to detect the block on the front.
  • back to detect the block on the back.
  • left to detect the block on the left-hand side.
  • right to detect the block on the right-hand side.
  • up to detect the block on the top side.
  • down to detect the block on the bottom side.

Result

Fails if the arguments are not specified correctly.

On success, returns if there was a collidable block in the specified direction.

History

Template:HistoryTable

Navigation

All editions
Removed
Template:El only
Debug
Removed
Template:Els only
Template:El only
Removed
Template:El only
Removed
Template:Els only
Removed
Joke
Related

de:Befehl/detect lzh:令/detect pt:Comandos/detect ru:Команды консоли/detect zh:命令/detect