promotional bannermobile promotional banner

KeyboardJS

Allow you to listen keyboard operations more quickly and conveniently

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

ItemEvents.rightClicked("emerald",event=>{
    event.player.tell(Keyboard.pressed(Keys.F3))
})

Released Event

PlayerEvents.tick(event=>{
    event.player.tell(Keyboard.released(Keys.X))
})

Mouse buttons are not supported. If you see methods for mouse buttons in the TS completion of "Keys", please do not use them. Only supports keyboard detection!

The KeyboardJS Team

profile avatar
Owner
  • 20
    Followers
  • 28
    Projects
  • 5.3M
    Downloads

More from LirxOwOView all