Download KeyboardJS — Minecraft Mods — MetaMods
KeyboardJS

KeyboardJS

Active

Downloads

0

Last update

10 months ago

Versions

1.20.1
Client and server
Forge
Game mechanics
Addons

KeyboardJS

A simplified Minecraft mod that provides convenient keyboard operation functionality through KubeJS. This modification allows you to monitor various keyboard key operations from the user.

Key Features

With KeyboardJS, you can monitor keyboard key states in real-time - tracking both key press and release moments. The system operates through returning boolean values (true/false), making integration with KubeJS extremely simple and efficient.

Usage Examples

Press Event

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

Release Event

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

These examples demonstrate how easily you can integrate key tracking functionality into your KubeJS scripts, creating more responsive and interactive game mechanics.

Project members
xiaoliziawa

xiaoliziawa

Developer

LirxOwO

LirxOwO

Developer

Created: 22 Dec 2024

ID: 68577