{"id":168753,"date":"2026-06-09T22:49:36","date_gmt":"2026-06-09T19:49:36","guid":{"rendered":"https:\/\/vpesports.com\/minecraft\/mods\/wasd-detection\/"},"modified":"2026-06-09T22:49:36","modified_gmt":"2026-06-09T19:49:36","slug":"wasd-detection","status":"publish","type":"mod","link":"https:\/\/vpesports.com\/minecraft\/mods\/wasd-detection\/","title":{"rendered":"WASD Detection"},"content":{"rendered":"<p># WASD Detection<br \/>\nAccurate WASD detection for Minecraft datapacks.<\/p>\n<p>### Latest Data Pack version<br \/>\n1.4<\/p>\n<p>### Compatible Minecraft Versions<br \/>\nJava Edition 1.20.2 &#8211; 1.21<br \/>\n*(Versions of the pack for 1.20.1 and 1.19.2 also available in versions)*<\/p>\n<p># How to Use the Data pack<\/p>\n<p>(Full video explaination https:\/\/www.youtube.com\/watch?v=DsjAlwNN2AQ)<\/p>\n<p>The WASD detection works as an in-game *predicate* that can be accessed through \/execute commands, and or player selectors.<\/p>\n<p>&#8220;`<br \/>\n\/execute as @a if predicate wasd:w run say pressed w<br \/>\n&#8220;`<\/p>\n<p>&#8220;`<br \/>\n\/execute as @a[predicate=wasd:w] run say pressed w<br \/>\n&#8220;`<br \/>\nEither of these will result in a message in chat saying &#8220;pressed w&#8221; when the player walks forward.<\/p>\n<p>### List of preciates<br \/>\n(All of these will have a prefix of `wasd:`)<\/p>\n<p>**wasd:w** = if the player walks forward<\/p>\n<p>**wasd:a** = if the player walks left<\/p>\n<p>**wasd:s** = if the player walks right<\/p>\n<p>**wasd:d** = if the player walks backward<\/p>\n<p>**wasd:moving** = if the player pressed any of the four directions<\/p>\n<p>**wasd:space** = if the player moves upward<\/p>\n<p>**wasd:falling** = if the player moves downward<\/p>\n<p>**wasd:shift** = if the player presses SHIFT<\/p>\n<p>### Lock the player&#8217;s movement<\/p>\n<p>If you want to lock the player from moving you will need to run this command:<br \/>\n&#8220;`<br \/>\n\/execute as @a run function wasd:lock<br \/>\n&#8220;`<br \/>\nThis will lock all players at their current positions.<\/p>\n<p>If you want to lock the player at a specific location, then run this command:<br \/>\n&#8220;`<br \/>\n\/execute as @a postitioned <XYZ> rotated <Y ROTATION> <X ROTATION> run function wasd:lock<br \/>\n&#8220;`<br \/>\n*Replacing `<XYZ>` with your desired coordinates, and `<Y ROTATION>` and `<X ROTATION>` with your desired rotations.<\/p>\n<p>To unlock the players, run:<br \/>\n&#8220;`<br \/>\n\/execute as @a run function wasd:unlock<br \/>\n&#8220;`<\/p>\n<p># Installation<\/p>\n<p>### Method 1 (Pre-made world)<br \/>\n1. Locate to your .minecraft\/saves\/<worldname>\/datapacks folder.<br \/>\n2. Paste the .zip file you installed into this folder.<br \/>\n3. Enter your Minecraft world and type \/reload.<br \/>\n4. A message should pop up that says &#8220;Datapack Installed&#8221;.<\/p>\n<p>### Method 2 (Create new world)<br \/>\n1. In the Create new world screen, click the &#8220;Datapacks&#8221; button<br \/>\n2. Drag and drop the .zip file you downloaded into the game window.<br \/>\n4. Apply the datapack.~~~~<br \/>\n5. Create new world.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Simple WASD Detection Predicates to use in command and Data Pack creations!<\/p>\n","protected":false},"featured_media":168754,"template":"","meta":{"_minecraft_slug":"wasd-detection","_minecraft_project_id":"qhJXxsja","_minecraft_author":"JDawgtor","_minecraft_license":"CC0-1.0","_minecraft_downloads":524,"_minecraft_follows":5,"_minecraft_client_side":"optional","_minecraft_server_side":"required","_minecraft_storage_type":"zip","_minecraft_archive_name":"wasd-detection.zip","_minecraft_size_bytes":638382,"_minecraft_version_count":10,"_minecraft_updated_at":"2026-05-16T07:24:29.470443Z","_minecraft_date_created":"2024-09-01T04:04:40.119560Z","_minecraft_date_modified":"2024-08-31T21:12:17.784001Z","_minecraft_project_url":"https:\/\/modrinth.com\/mod\/wasd-detection","_minecraft_icon_attachment_id":168754,"_minecraft_imported_at":"2026-06-09T19:49:36+00:00","_minecraft_import_hash":"6c9f61eeff3455def3634b53375591ee","_minecraft_versions":"","_minecraft_links":"","_minecraft_gallery":"","_minecraft_api_metadata":""},"mod_category":[84,89,123,92],"mod_loader":[86],"minecraft_version":[56,59,36,60,93,94,101,102,62,37],"class_list":["post-168753","mod","type-mod","status-publish","has-post-thumbnail","hentry","mod_category-datapack","mod_category-game-mechanics","mod_category-technology","mod_category-utility","mod_loader-datapack","minecraft_version-1-19-2","minecraft_version-1-20","minecraft_version-1-20-1","minecraft_version-1-20-2","minecraft_version-1-20-3","minecraft_version-1-20-4","minecraft_version-1-20-5","minecraft_version-1-20-6","minecraft_version-1-21","minecraft_version-1-21-1"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>WASD Detection - Minecraft<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vpesports.com\/minecraft\/mods\/wasd-detection\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WASD Detection - Minecraft\" \/>\n<meta property=\"og:description\" content=\"Simple WASD Detection Predicates to use in command and Data Pack creations!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vpesports.com\/minecraft\/mods\/wasd-detection\/\" \/>\n<meta property=\"og:site_name\" content=\"Minecraft\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/wasd-detection\\\/\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/wasd-detection\\\/\",\"name\":\"WASD Detection - Minecraft\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/wasd-detection\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/wasd-detection\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/wasd-detection-icon-edbd724f37e84b9cf36620e729edda2ae75c1d92.png\",\"datePublished\":\"2026-06-09T19:49:36+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/wasd-detection\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/wasd-detection\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/wasd-detection\\\/#primaryimage\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/wasd-detection-icon-edbd724f37e84b9cf36620e729edda2ae75c1d92.png\",\"contentUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/wasd-detection-icon-edbd724f37e84b9cf36620e729edda2ae75c1d92.png\",\"width\":64,\"height\":64},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/wasd-detection\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mods\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"WASD Detection\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\",\"name\":\"Minecraft\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"WASD Detection - Minecraft","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/vpesports.com\/minecraft\/mods\/wasd-detection\/","og_locale":"en_US","og_type":"article","og_title":"WASD Detection - Minecraft","og_description":"Simple WASD Detection Predicates to use in command and Data Pack creations!","og_url":"https:\/\/vpesports.com\/minecraft\/mods\/wasd-detection\/","og_site_name":"Minecraft","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/vpesports.com\/minecraft\/mods\/wasd-detection\/","url":"https:\/\/vpesports.com\/minecraft\/mods\/wasd-detection\/","name":"WASD Detection - Minecraft","isPartOf":{"@id":"https:\/\/vpesports.com\/minecraft\/#website"},"primaryImageOfPage":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/wasd-detection\/#primaryimage"},"image":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/wasd-detection\/#primaryimage"},"thumbnailUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/wasd-detection-icon-edbd724f37e84b9cf36620e729edda2ae75c1d92.png","datePublished":"2026-06-09T19:49:36+00:00","breadcrumb":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/wasd-detection\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vpesports.com\/minecraft\/mods\/wasd-detection\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vpesports.com\/minecraft\/mods\/wasd-detection\/#primaryimage","url":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/wasd-detection-icon-edbd724f37e84b9cf36620e729edda2ae75c1d92.png","contentUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/wasd-detection-icon-edbd724f37e84b9cf36620e729edda2ae75c1d92.png","width":64,"height":64},{"@type":"BreadcrumbList","@id":"https:\/\/vpesports.com\/minecraft\/mods\/wasd-detection\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vpesports.com\/minecraft\/"},{"@type":"ListItem","position":2,"name":"Mods","item":"https:\/\/vpesports.com\/minecraft\/mods\/"},{"@type":"ListItem","position":3,"name":"WASD Detection"}]},{"@type":"WebSite","@id":"https:\/\/vpesports.com\/minecraft\/#website","url":"https:\/\/vpesports.com\/minecraft\/","name":"Minecraft","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vpesports.com\/minecraft\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod\/168753","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod"}],"about":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/types\/mod"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media\/168754"}],"wp:attachment":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media?parent=168753"}],"wp:term":[{"taxonomy":"mod_category","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_category?post=168753"},{"taxonomy":"mod_loader","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_loader?post=168753"},{"taxonomy":"minecraft_version","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/minecraft_version?post=168753"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}