Community listing page, reviews here may not be monitored by the author.
WASD Detection
No reviews yet
Simple WASD Detection Predicates to use in command and Data Pack creations!
Community voices
Reviews
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
About
Description
WASD Detection
Accurate WASD detection for Minecraft datapacks.
Latest Data Pack version
1.4
Compatible Minecraft Versions
Java Edition 1.20.2 - 1.21 (Versions of the pack for 1.20.1 and 1.19.2 also available in versions)
How to Use the Data pack
(Full video explaination https://www.youtube.com/watch?v=DsjAlwNN2AQ)
The WASD detection works as an in-game predicate that can be accessed through /execute commands, and or player selectors.
/execute as @a if predicate wasd:w run say pressed w
/execute as @a[predicate=wasd:w] run say pressed w
Either of these will result in a message in chat saying "pressed w" when the player walks forward.
List of preciates
(All of these will have a prefix of wasd:)
wasd:w = if the player walks forward
wasd:a = if the player walks left
wasd:s = if the player walks right
wasd:d = if the player walks backward
wasd:moving = if the player pressed any of the four directions
wasd:space = if the player moves upward
wasd:falling = if the player moves downward
wasd:shift = if the player presses SHIFT
Lock the player's movement
If you want to lock the player from moving you will need to run this command:
/execute as @a run function wasd:lock
This will lock all players at their current positions.
If you want to lock the player at a specific location, then run this command:
/execute as @a postitioned <XYZ> rotated <Y ROTATION> <X ROTATION> run function wasd:lock
*Replacing <XYZ> with your desired coordinates, and <Y ROTATION> and <X ROTATION> with your desired rotations.
To unlock the players, run:
/execute as @a run function wasd:unlock
Installation
Method 1 (Pre-made world)
- Locate to your .minecraft/saves/<worldname>/datapacks folder.
- Paste the .zip file you installed into this folder.
- Enter your Minecraft world and type /reload.
- A message should pop up that says "Datapack Installed".
Method 2 (Create new world)
- In the Create new world screen, click the "Datapacks" button
- Drag and drop the .zip file you downloaded into the game window.
- Apply the datapack.~~~~
- Create new world.
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers