101: Detect start, hold, and stop key press [Minecraft 1.21 Datapack]

Subscribers:
3,590
Published on ● Video Link: https://www.youtube.com/watch?v=vBkd2c5QDvo



Duration: 0:00
232 views
17


Membership:
Ep101: An expansion on episode 100. This time we are detecting when the key is first pressed, when the key is held down, and when the key is released.

00:00 Intro
00:55 Create folders and files
01:35 Function load
02:05 Advancement using_item
03:30 Function using_item
05:45 Function start
05:55 Function ticking
06:25 Function stop_check
07:10 Function stop
07:40 Predicate is_sneaking
08:05 Function tick
09:20 How it works

Commands by: GalSergey

PlanetMinecraft Pack Download: https://www.planetminecraft.com/data-pack/101-detect-start-hold-and-stop-key-press-minecraft-1-21-datapack-tutorials/

Version: Java 1.21

Useful Links:
Episode 001:    • 001: Your first datapack. [Minecraft ...  
Misode: https://misode.github.io/
MCStacker: https://mcstacker.net/
VSCode: https://code.visualstudio.com/download

Commands, builds, hacks and ideas for people making their own Minecraft maps.

Check out my collabs on Coppit's channel:

The Discord server I am usually on: https://discord.gg/amU84KykEu