KeyboardJS
Allow you to listen keyboard operations more quickly and conveniently
Quick challenge
How far can you run before the mobs catch you?
Rotate your phone
Dino Mine is ready when your screen is landscape.
Minecraft check
Confirm your run
Complete the quick check to get your code.
Your code
Expires in 5 hours
KeyboardJS
Please do not install on your server!
Please do not install on your server!
Please do not install on your server!
This is a simplified mod that simplifies the keyboard operation of kubejs.
With this mod, you can monitor the operation of keys on the keyboard, including pressing and releasing.
Determine whether a key has been pressed or released by returning a Boolean value.
Pressed Event
```js ItemEvents.rightClicked("emerald",event=>{ event.player.tell(Keyboard.pressed(Keys.F3)) }) ```
Released Event
```js PlayerEvents.tick(event=>{ event.player.tell(Keyboard.released(Keys.X)) }) ```