Skip to content

CloudWolfYT/WASD-Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WASD Detection

All Contributors Discord Tutorial Downloads

A Minecraft Datapack that detects WASD inputs while mounted or walking!

Mounted Case (1) relies on function structure using fake players
1. execute if predicate wasd:is_mounted run function wasd:mounted
Outputs:
1. execute if score .w wasd matches 1 run title @s {"text":"W"}
Mounted Case (2) can be run at any context using tags
1. scoreboard players set in wasd 1
2. execute as @a if predicate wasd:is_mounted run function wasd:mounted
Outputs:
1. execute as @a[tag=wasd.w] run title @s {"text":"W"}
Walking Case (1) relies on function structure using fake players
1. function wasd:walking
Outputs:
1. execute if score .w wasd matches 1 run title @s {"text":"W"}
Walking Case (2) can be run at any context using tags
1. scoreboard players set in wasd 1
2. execute as @a if predicate wasd:is_mounted run function wasd:walking
Outputs:
1. execute as @a[tag=wasd.w] run title @s {"text":"W"}

By Default a demo command is left in wasd:main which runs a function to show an example use-case in the function "wasd:demo/print_subtitle_mounted"

Contributors 🧱


Cloud Wolf

🔨

The Der Discohund

💡

About

Detect WASD inputs in minecraft!

Resources

License

Stars

Watchers

Forks

Packages

No packages published