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))
}) How to Install KeyboardJS (Mod)
KeyboardJS by LirxOwO is verified for Forge across Minecraft versions 1.20.1 (latest release: 1.0.0, file size: 227 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.20.1) and platform (Forge).
- Make sure you have the compatible loader or environment installed for Forge.
- Move the downloaded KeyboardJS file into your Minecraft
.minecraft/modsfolder and launch the game.