/WASD-Detection

Detect WASD inputs in minecraft!

Primary LanguagemcfunctionCreative Commons Zero v1.0 UniversalCC0-1.0

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

💡