All Mods Resource Packs Data Packs Shaders Modpacks Plugins
KeyboardJS

KeyboardJS

by LirxOwO • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

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

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
1.20.1
Forge
last yr. 1
KeyboardJS Icon
Download KeyboardJS
Select game version
Select platform