KeyboardJS

Quick rating

Community listing page, reviews here may not be monitored by the author.

KeyboardJS

By LirxOwOOwner

No reviews yet

Allow you to listen keyboard operations more quickly and conveniently

Mod Loaders
Minecraft

About

Description

This is a mod that uses KubeJS to monitor keyboard input, allowing you to trigger certain functions when specific keys are pressed.

The latest version has been completely rewritten. Please visit the KeyboardJS Wiki for the latest usage instructions.

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