KeyboardJS

KeyboardJS

Mod

Allow you to listen keyboard operations more quickly and conveniently

Client and server Game MechanicsManagementUtility

7 downloads
0 followers
Follow Save
90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!

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))
})

Project members

xiaoliziawa

Member

Details

Licensed MIT
Published 7 days ago
Updated 10 days ago